diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-08-19 15:51:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 15:51:08 +0100 |
| commit | 41c9b0427b123041b0df5a2739468befb2f4e2db (patch) | |
| tree | bc3a4e7ac80930ffe7fc0216c221c7a9a3de81b4 | |
| parent | 9ce4479cdc9b31b66b8641d0e4259f92b14fc8f6 (diff) | |
| parent | 5132313cb7fd63143dce7baadac45df9d16bf713 (diff) | |
| download | vyos-1x-41c9b0427b123041b0df5a2739468befb2f4e2db.tar.gz vyos-1x-41c9b0427b123041b0df5a2739468befb2f4e2db.zip | |
Merge pull request #4662 from vyos/sever-sever-vpp-split-tests
T7719: Add VPP tests per PR before merging
| -rw-r--r-- | .github/workflows/package-smoketest.yml | 68 |
1 files changed, 67 insertions, 1 deletions
diff --git a/.github/workflows/package-smoketest.yml b/.github/workflows/package-smoketest.yml index 8bdcc598d..a0e3156d1 100644 --- a/.github/workflows/package-smoketest.yml +++ b/.github/workflows/package-smoketest.yml @@ -95,7 +95,38 @@ jobs: shell: bash run: | set -e - sudo make test-no-interfaces + sudo make test-no-interfaces-no-vpp + if [[ $? == 0 ]]; then + echo "exit_code=success" >> $GITHUB_OUTPUT + else + echo "exit_code=fail" >> $GITHUB_OUTPUT + fi + + test_smoketest_cli_vpp: + needs: build_iso + runs-on: ubuntu-24.04 + timeout-minutes: 90 + container: + image: vyos/vyos-build:current + options: --sysctl net.ipv6.conf.lo.disable_ipv6=0 --privileged + outputs: + exit_code: ${{ steps.test.outputs.exit_code }} + 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 }} + path: build + - name: VyOS CLI smoketests VPP + id: test + shell: bash + run: | + set -e + sudo make test-vpp if [[ $? == 0 ]]; then echo "exit_code=success" >> $GITHUB_OUTPUT else @@ -164,6 +195,37 @@ jobs: echo "exit_code=fail" >> $GITHUB_OUTPUT fi + test_config_load_vpp: + needs: build_iso + runs-on: ubuntu-24.04 + timeout-minutes: 90 + container: + image: vyos/vyos-build:current + options: --sysctl net.ipv6.conf.lo.disable_ipv6=0 --privileged + outputs: + exit_code: ${{ steps.test.outputs.exit_code }} + 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 }} + path: build + - name: VyOS config load tests VPP + id: test + shell: bash + run: | + set -e + sudo make testcvpp + if [[ $? == 0 ]]; then + echo "exit_code=success" >> $GITHUB_OUTPUT + else + echo "exit_code=fail" >> $GITHUB_OUTPUT + fi + test_raid1_install: needs: build_iso runs-on: ubuntu-24.04 @@ -229,8 +291,10 @@ jobs: result: needs: - test_smoketest_cli + - test_smoketest_cli_vpp - test_interfaces_cli - test_config_load + - test_config_load_vpp - test_raid1_install - test_encrypted_config_tpm runs-on: ubuntu-24.04 @@ -249,8 +313,10 @@ jobs: [CI logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) * CLI Smoketests (no interfaces) ${{ needs.test_smoketest_cli.outputs.exit_code == 'success' && '👍 passed' || '❌ failed' }} + * CLI Smoketests VPP ${{ needs.test_smoketest_cli_vpp.outputs.exit_code == 'success' && '👍 passed' || '❌ failed' }} * CLI Smoketests (interfaces only) ${{ needs.test_interfaces_cli.outputs.exit_code == 'success' && '👍 passed' || '❌ failed' }} * Config tests ${{ needs.test_config_load.outputs.exit_code == 'success' && '👍 passed' || '❌ failed' }} + * Config tests VPP ${{ needs.test_config_load_vpp.outputs.exit_code == 'success' && '👍 passed' || '❌ failed' }} * RAID1 tests ${{ needs.test_raid1_install.outputs.exit_code == 'success' && '👍 passed' || '❌ failed' }} * TPM tests ${{ needs.test_encrypted_config_tpm.outputs.exit_code == 'success' && '👍 passed' || '❌ failed' }} |
