Repository navigation
ci: report coverage once every job has uploaded, and tolerate timing noise #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -110,3 +110,22 @@ jobs: | |||||||||||||||
| with: | ||||||||||||||||
| flags: integration | ||||||||||||||||
| token: ${{ secrets.CODECOV_TOKEN }} | ||||||||||||||||
|
|
||||||||||||||||
| coverage-notify: | ||||||||||||||||
| needs: test | ||||||||||||||||
| permissions: | ||||||||||||||||
| contents: read | ||||||||||||||||
| # A failed matrix job still gets a report from what did upload. | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Disable matrix fail-fast before reporting coverage as complete. If one 🧰 Tools🪛 zizmor (1.30.1)[warning] 1-130: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) [warning] 114-130: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) |
||||||||||||||||
| if: ${{ !cancelled() }} | ||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
| steps: | ||||||||||||||||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||||||||||||||||
| with: | ||||||||||||||||
| persist-credentials: false | ||||||||||||||||
|
|
||||||||||||||||
| - name: Codecov | ||||||||||||||||
| uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 | ||||||||||||||||
| with: | ||||||||||||||||
| run_command: send-notifications | ||||||||||||||||
|
Comment on lines
+127
to
+129
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '105,140p' .github/workflows/test.yml
cat codecov.ymlRepository: webpack/watchpack Length of output: 1520 🌐 Web query:
💡 Result: 🌐 Web query:
💡 Result: 🌐 Web query:
💡 Result: Fail the notification job when
Suggested change with:
run_command: send-notifications
+ fail_ci_if_error: true📝 Committable suggestion
Suggested change
🧰 Tools🪛 zizmor (1.30.1)[warning] 1-130: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) [warning] 114-130: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) |
||||||||||||||||
| env: | ||||||||||||||||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| codecov: | ||
| branch: main | ||
| notify: | ||
| # Statuses and the comment wait for `coverage-notify` in test.yml, which | ||
| # runs once every matrix job has uploaded, not after the first few. | ||
| manual_trigger: true | ||
| coverage: | ||
| precision: 2 | ||
| round: down | ||
| range: "70...100" | ||
| status: | ||
| project: | ||
| default: | ||
| target: auto | ||
| # Which branch of a race a watcher test takes depends on the runner's | ||
| # timing, so the same code covers a few lines more or less run to run. | ||
| threshold: 0.5% | ||
| patch: | ||
| default: | ||
| target: auto |
Uh oh!
There was an error while loading. Please reload this page.