Skip to content

Commit

Permalink
Updates flakeguard for better data reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra committed Feb 6, 2025
1 parent e420274 commit 38214b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/flakeguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
- name: Install flakeguard
if: ${{ inputs.runAllTests == false }}
shell: bash
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@051b483f1e9e99b0219d1ccea4d8f7bf3be203b7 # [email protected]
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@6d6c1b28224c181f0925bf0d5ce169a830d3dad7 # [email protected]

- name: Find new or updated test packages
if: ${{ inputs.runAllTests == false && env.RUN_CUSTOM_TEST_PACKAGES == '' }}
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:

- name: Install flakeguard
shell: bash
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@051b483f1e9e99b0219d1ccea4d8f7bf3be203b7 # [email protected]
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@6d6c1b28224c181f0925bf0d5ce169a830d3dad7 # [email protected]

- name: Run tests with flakeguard
shell: bash
Expand Down Expand Up @@ -411,7 +411,7 @@ jobs:

- name: Install flakeguard
shell: bash
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@051b483f1e9e99b0219d1ccea4d8f7bf3be203b7 # [email protected]
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@6d6c1b28224c181f0925bf0d5ce169a830d3dad7 # [email protected]

- name: Aggregate Flakeguard Results
id: results
Expand Down Expand Up @@ -454,10 +454,10 @@ jobs:

# Print out the summary file
echo -e "\nFlakeguard Summary:"
jq . ./flakeguard-report/all-test-summary.json
jq .summary_data ./flakeguard-report/all-test-results.json

# Read the summary from the generated report
summary=$(jq -c '.' ./flakeguard-report/all-test-summary.json)
summary=$(jq -c '.summary_data' ./flakeguard-report/all-test-summary.json)
echo "summary=$summary" >> $GITHUB_OUTPUT

- name: Upload All Test Results as Artifact
Expand Down Expand Up @@ -503,7 +503,6 @@ jobs:
if [ "$GH_EVENT_NAME" = "pull_request" ]; then
flakeguard generate-report \
--aggregated-results-path ./flakeguard-report/all-test-results.json \
--summary-path ./flakeguard-report/all-test-summary.json \
--output-path ./flakeguard-report \
--github-repository "${{ github.repository }}" \
--github-run-id "${{ github.run_id }}" \
Expand All @@ -518,7 +517,6 @@ jobs:
else
flakeguard generate-report \
--aggregated-results-path ./flakeguard-report/all-test-results.json \
--summary-path ./flakeguard-report/all-test-summary.json \
--output-path ./flakeguard-report \
--github-repository "${{ github.repository }}" \
--github-run-id "${{ github.run_id }}" \
Expand Down

0 comments on commit 38214b8

Please sign in to comment.