Conversation
cf2596c to
e29f705
Compare
e29f705 to
c1c0662
Compare
e4b7b7a to
603f8e2
Compare
603f8e2 to
94b8a3e
Compare
| @@ -0,0 +1,33 @@ | |||
| --- | |||
There was a problem hiding this comment.
Is there any specific thing that is supposed to read this? Copilot will grab it when it searches for files, but from what I can tell, it doesn't match any filename format that copilot cli inherently reads, so I'm not sure it will get reliably run.
Is there something I'm missing here?
There was a problem hiding this comment.
I see! Thanks for taking a look at this :) The template isn't auto-applied by GitHub or Copilot, it has to be explicitly referenced. The coding agent is instructed to use it in .github/instructions/copilot-test-coverage.instructions.md, but relying on the agent consistently reading and following that is fragile. I'll either rename it to PULL_REQUEST_TEMPLATE.md so it becomes the default single template, or add an explicit instruction in the issue body itself directing the agent to use the ?template=coverage.md URL when opening the PR. Leaning toward the latter since the first would affect all PRs.
| const belowThreshold = []; | ||
| const repoRoot = resolve('.'); | ||
|
|
||
| for (const [file, metrics] of Object.entries(summary)) { |
There was a problem hiding this comment.
Have we tested this locally to validate that it works?
f38c7f1 to
a402a11
Compare
|
@hanniavalera Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
2 similar comments
|
@hanniavalera Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
|
@hanniavalera Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
|
@hanniavalera Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
1 similar comment
|
@hanniavalera Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
Agent-Logs-Url: https://github.com/microsoft/vscode-cmake-tools/sessions/2ef2460f-de0e-4cf1-bca3-cc67940ee648 Co-authored-by: hanniavalera <90047725+hanniavalera@users.noreply.github.com>
…nces Rename .github/copilot-test-coverage.md to .github/instructions/copilot-test-coverage.instructions.md so Copilot picks it up as an instructions file. Update the two references in copilot-instructions.md and check-coverage-and-open-issue.mjs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address review feedback: - Add '### PR template' section in generated issue body directing the agent to use ?template=coverage.md or copy template contents - Update copilot-test-coverage.instructions.md PR requirements with explicit template usage instructions - Validated script locally with mock data: below-threshold, above- threshold, and absolute-path normalization all pass correctly Agent-Logs-Url: https://github.com/microsoft/vscode-cmake-tools/sessions/cb96c55e-0fc9-4e59-b0a8-a1fc704e2182 Co-authored-by: hanniavalera <90047725+hanniavalera@users.noreply.github.com>
8e0fbe3 to
9f84254
Compare
This pull request introduces a comprehensive automated test coverage tracking system for the repository. It adds a scheduled GitHub Actions workflow that measures backend test coverage, creates or updates issues when coverage falls below a configurable threshold, and standardizes the process for contributors to improve test coverage. The changes include new workflow automation, scripts, contributor instructions, templates, and a new dev dependency.
Coverage automation and workflow:
.github/workflows/coverage-agent.yml) that runs weekly or on demand, measures backend test coverage usingc8, uploads coverage reports, and triggers a script to open or update an issue if coverage is below a threshold..github/scripts/check-coverage-and-open-issue.mjs) that parses coverage results, identifies files below the threshold, ensures the appropriate GitHub label exists, and creates or updates a detailed coverage issue with actionable instructions for contributors.Contributor guidance and templates:
.github/instructions/copilot-test-coverage.instructions.md..github/PULL_REQUEST_TEMPLATE/coverage.md) specifically for coverage improvement PRs, including a table for coverage deltas and a checklist to enforce quality and process..github/copilot-instructions.md) to reference the new coverage protocol and instructions fortest-coverageissues.Tooling:
c8as a development dependency inpackage.jsonto enable V8-native code coverage collection.