Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6494: add parallel step to run interface based smoketests #7

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,48 @@ jobs:
with:
name: vyos-${{ needs.build_iso.outputs.build_version }}-generic-amd64
path: build
- name: VyOS CLI smoketests
- name: VyOS CLI smoketests (no interfaces)
id: test
shell: bash
run: |
set -e
ln -s vyos-${{ needs.build_iso.outputs.build_version }}-generic-amd64.iso build/live-image-amd64.hybrid.iso
sudo make test | tee smoketest_make_test.log
sudo make test-no-interfaces | tee smoketest_make_test_no_interfaces.log
- uses: actions/upload-artifact@v4
with:
name: smoketest_make_test
path: smoketest_make_test.log
name: smoketest_make_test_no_interfaces
path: smoketest_make_test_no_interfaces.log
retention-days: 30
if-no-files-found: error

test_interfaces_cli:
needs: build_iso
runs-on: ubuntu-24.04
if: ${{ !inputs.SKIP_SMOKETEST_SYSTEM }}
container:
image: vyos/vyos-build:current
options: --sysctl net.ipv6.conf.lo.disable_ipv6=0 --privileged
steps:
# We need the test script from vyos-build repo
- name: Clone vyos-build source code
uses: actions/checkout@v4
with:
repository: vyos/vyos-build
- uses: actions/download-artifact@v4
with:
name: vyos-${{ needs.build_iso.outputs.build_version }}-generic-amd64
path: build
- name: VyOS CLI smoketests (interfaces only)
id: test
shell: bash
run: |
set -e
ln -s vyos-${{ needs.build_iso.outputs.build_version }}-generic-amd64.iso build/live-image-amd64.hybrid.iso
sudo make test-interfaces | tee smoketest_make_test_interfaces.log
- uses: actions/upload-artifact@v4
with:
name: smoketest_make_test_interfaces
path: smoketest_make_test_interfaces.log
retention-days: 30
if-no-files-found: error

Expand Down Expand Up @@ -258,6 +289,7 @@ jobs:
- test_config_load
- test_raid1_install
- test_smoketest_cli
- test_interfaces_cli
- test_encrypted_config_tpm
- build_iso
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -338,6 +370,7 @@ jobs:
- test_config_load
- test_raid1_install
- test_smoketest_cli
- test_interfaces_cli
- test_encrypted_config_tpm
- build_iso
runs-on: ubuntu-24.04
Expand Down