Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,25 @@ jobs:
run: ${{ inputs.script }}
timeout-minutes: 60

- name: Summarize flaky tests
if: ${{ hashFiles('**/TEST-*.xml') != '' }}
shell: bash
run: |
# Count flaky failures recursively
flaky_count=$(grep -R "<flakyFailure" . | wc -l)

echo "### Flaky Tests: $flaky_count found"

if [ "$flaky_count" -gt 0 ]; then
echo "#### Flaky Test Details"
grep -R "<flakyFailure" . | sed -E 's#.*/TEST-(.*)\.xml.*message="([^"]*)".*#- \1: \2#'
fi

- name: Normalize flaky failures
if: ${{ hashFiles('**/TEST-*.xml') != '' }}
run: |
find . -name "TEST-*.xml" -exec sed -i 's/flakyFailure/failure/g' {} +

- name: Publish Test Report
if: ${{ hashFiles('**/TEST-*.xml') != '' }}
uses: mikepenz/action-junit-report@v5
Expand Down
Loading