Skip to content

Commit

Permalink
Cleanup coverage versions earlier in the process
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Dec 16, 2023
1 parent 413304f commit 20a3192
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ jobs:
genhtml --output-directory coverage coverage.info
# Can use any of the removeHtmlDates.sh scripts here, so the linux0 job's version will do.
/usr/bin/env bash ./artifacts/test-results-*-cov/removeHtmlDates.sh
# Remove build numbers from pre-releases, and remove extra build info (such as ".linux.x86-64.gcc-cov")
# from all releases, since this coverage report is an aggregation of many build hosts.
sed -i -Ee 's/(headerValue">([0-9]+\.){2}[0-9]+)(((-pre)\+[0-9]+)|(\+[0-9]+))\..*</\1\5\6</' coverage/**/*.html
working-directory: ${{ runner.temp }}
- name: Upload HTML coverage report
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -460,12 +463,6 @@ jobs:
with:
name: coverage-report
path: main/cov
- name: Cleanup coverage versions
run: |
shopt -s globstar
# Remove build numbers from pre-releases, and remove extra build info (such as ".linux.x86-64.gcc-cov")
# from all releases, since this coverage report is an aggregation of many build hosts.
sed -i -Ee 's/(headerValue">([0-9]+\.){2}[0-9]+)(((-pre)\+[0-9]+)|(\+[0-9]+))\..*</\1\5\6</' main/cov/**/*.html
- name: Inspect changes # for diagnostics only.
run: git status && git diff
- name: Push updates
Expand Down

0 comments on commit 20a3192

Please sign in to comment.