Skip to content

Commit

Permalink
Combine diagnostic file upload in smoke tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
  • Loading branch information
twz123 committed Jun 27, 2024
1 parent f603759 commit c1fcedf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ jobs:
strategy:
fail-fast: false
matrix:
smoke-suite: ${{ fromJson(needs.prepare.outputs.smoketest-matrix) }}

smoke-suite:
- singlenode
- network-conformance-kuberouter
name: "Smoke test :: ${{ matrix.smoke-suite }}"
needs: [prepare, build-k0s, build-airgap-image-bundle]

Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/smoketest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,12 @@ jobs:
SMOKETEST_NAME: check-${{ inputs.name }}
run: make -C inttest "$SMOKETEST_NAME"

- name: Collect k0s logs and support bundle
if: failure()
- name: Collect k0s logs, support bundle and conformance test results
# if: failure()
uses: actions/upload-artifact@v4
with:
name: smoketest-${{ inputs.name }}-files
path: |
/tmp/*.log
/tmp/support-bundle.tar.gz
- name: Collect sonobuoy results
if: failure() && contains(inputs.name, 'conformance')
uses: actions/upload-artifact@v4
with:
name: smoketest-${{ inputs.name }}-sonobuoy-results
path: /tmp/*_sonobuoy_*.tar.gz
/tmp/*_sonobuoy_*.tar.gz

0 comments on commit c1fcedf

Please sign in to comment.