Skip to content

Commit

Permalink
Clear stale test output xml (#1785)
Browse files Browse the repository at this point in the history
Summary: The XML testlogs aren't always cleaned between runs.
This ensures that we don't fail due to stale test output.

Relevant Issues: N/A

Type of change: /kind infra

Test Plan: Check github actions runs on this PR.

Signed-off-by: Vihang Mehta <[email protected]>
  • Loading branch information
vihangm authored Nov 29, 2023
1 parent 3fbdf5f commit 56cc19e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ jobs:
with:
dev: ${{ github.event_name == 'push' && 'false' || 'true' }}
BB_API_KEY: ${{ secrets.BB_IO_API_KEY }}
- name: Clear stale test.xml
shell: bash
run: rm -rf "$(bazel info ${{ matrix.args }} bazel-testlogs --noshow_progress 2>/dev/null)"
- name: Build ${{ matrix.name }}
shell: bash
# yamllint disable rule:indentation
Expand Down

0 comments on commit 56cc19e

Please sign in to comment.