Skip to content

Commit

Permalink
fix: Update artifact names in Flakeguard workflow (#16642)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl authored Mar 2, 2025
1 parent 499283e commit 2f32f9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/flakeguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -466,23 +466,23 @@ jobs:
uses: actions/upload-artifact@v4
with:
path: ./flakeguard-report/all-test-results.json
name: all-test-results.json
name: all-test-results-${{ needs.get-tests.outputs.workflow_id }}.json
retention-days: 90

- name: Upload Failed Test Results as Artifact
if: ${{ (success() || failure()) && fromJSON(steps.results.outputs.summary).failed_runs > 0 }}
uses: actions/upload-artifact@v4
with:
path: ./flakeguard-report/failed-test-results.json
name: failed-test-results.json
name: failed-test-results-${{ needs.get-tests.outputs.workflow_id }}.json
retention-days: 90

- name: Upload Failed Test Results With Logs as Artifact
if: ${{ (success() || failure()) && fromJSON(steps.results.outputs.summary).failed_runs > 0 }}
uses: actions/upload-artifact@v4
with:
path: ./flakeguard-report/failed-test-results-with-logs.json
name: failed-test-results-with-logs.json
name: failed-test-results-with-logs-${{ needs.get-tests.outputs.workflow_id }}.json
retention-days: 90

- name: Generate Flakeguard Reports
Expand All @@ -507,7 +507,7 @@ jobs:
--output-path ./flakeguard-report \
--github-repository "${{ github.repository }}" \
--github-run-id "${{ github.run_id }}" \
--failed-tests-artifact-name "failed-test-results-with-logs.json" \
--failed-tests-artifact-name "failed-test-results-with-logs-${{ needs.get-tests.outputs.workflow_id }}.json" \
--generate-pr-comment \
--base-branch "$GH_EVENT_PULL_REQUEST_BASE_REF" \
--current-branch "${{ github.head_ref }}" \
Expand All @@ -521,7 +521,7 @@ jobs:
--output-path ./flakeguard-report \
--github-repository "${{ github.repository }}" \
--github-run-id "${{ github.run_id }}" \
--failed-tests-artifact-name "failed-test-results-with-logs.json" \
--failed-tests-artifact-name "failed-test-results-with-logs-${{ needs.get-tests.outputs.workflow_id }}.json" \
--base-branch "$GH_EVENT_PULL_REQUEST_BASE_REF" \
--current-branch "${{ github.head_ref }}" \
--current-commit-sha "$GH_EVENT_PULL_REQUEST_HEAD_SHA" \
Expand Down

0 comments on commit 2f32f9f

Please sign in to comment.