Skip to content

Track 30 coverage runs with cumulative artifacts - #8500

Merged
Amaury Chamayou (achamayou) merged 4 commits into
mainfrom
copilot/adjust-coverage-workflow
Oct 5, 2026
Merged

Amaury Chamayou (achamayou) merged 4 commits into
mainfrom
copilot/adjust-coverage-workflow

Conversation

Copilot AI commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Coverage currently fetches prior job logs to build a short trend and lacks the bencher workflow’s concurrency policy. This change uses artifacts to reduce GitHub API calls and extends the trend to 30 runs.

  • Concurrency: Queue runs per ref, matching bencher.
  • History: Restore the latest artifact for the exact branch, append the current coverage report, retain 30 reports, and re-upload the history.
  • Summary: Read stored reports for coverage trends and per-area comparisons instead of fetching logs.

Copilot AI and others added 2 commits October 2, 2026 20:22
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Comment thread scripts/tests/coverage_summary_test.py Outdated
@achamayou
Amaury Chamayou (achamayou) marked this pull request as ready for review October 2, 2026 20:35
@achamayou
Amaury Chamayou (achamayou) requested a review from a team as a code owner October 2, 2026 20:35
Copilot AI balanced review requested due to automatic review settings October 2, 2026 20:35
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 2 High severity · 1 Medium severity

Open (3)
What changed in this PR

Updates coverage trend generation to use per-branch artifacts (instead of scraping previous run logs), extends history retention to 30 runs, and adds workflow-level concurrency to serialize runs per ref.

Changes:

  • Switch coverage history source from previous run logs to stored artifacts and update parsing expectations to .txt reports.
  • Increase retained history/trend window to 30 runs and trim uploaded history accordingly.
  • Add concurrency grouping per workflow/ref and upload an updated cumulative history artifact each successful run.
File Description
scripts/​coverage_summary.py Update history parsing/loading to consume stored report files and keep a 30-run trend window.
.github/​workflows/​coverage.yml Add concurrency, restore prior history from artifacts, append current report, trim to 30, and re-upload.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/coverage.yml
Comment thread scripts/coverage_summary.py
Comment thread .github/workflows/coverage.yml
@achamayou
Amaury Chamayou (achamayou) merged commit 521b602 into main Oct 5, 2026
14 checks passed
@achamayou
Amaury Chamayou (achamayou) deleted the copilot/adjust-coverage-workflow branch October 5, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants