Repository navigation
Conversation
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Untrusted coverage archives are decompressed in a privileged workflow without bounded extraction.
Review effort: Balanced
Findings: 1
What changed in this PR
Adds backend and frontend coverage collection, summaries, artifacts, and sticky pull-request reporting.
Changes:
- Adds MTP Cobertura coverage to all backend test projects.
- Adds Vitest V8 coverage with LCOV and JSON reports.
- Adds CI summaries, artifacts, and a default-branch PR comment workflow.
| File | Description |
|---|---|
.github/scripts/coverage-comment.py |
Builds coverage comments from reports. |
.github/workflows/coverage-report.yml |
Downloads artifacts and updates PR comments. |
.github/workflows/main.yml |
Collects and publishes CI coverage. |
.gitignore |
Ignores backend coverage outputs. |
backend/MenuApi.Integration.Tests/MenuApi.Integration.Tests.csproj |
Adds MTP coverage dependency. |
backend/MenuApi.Tests/MenuApi.Tests.csproj |
Adds MTP coverage dependency. |
backend/MenuDB.Tests/MenuDB.Tests.csproj |
Adds MTP coverage dependency. |
docs/ci-path-filters.md |
Documents coverage reporting and workflow filters. |
ui/menu-website/.gitignore |
Ignores frontend coverage outputs. |
ui/menu-website/package.json |
Adds the frontend coverage command. |
ui/menu-website/vitest.config.ts |
Configures V8 coverage reports. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eba4920e63
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| number=$(gh api "repos/$GITHUB_REPOSITORY/pulls?state=open&per_page=100" --paginate | | ||
| jq -sr --arg sha "$HEAD_SHA" --arg repo "$HEAD_REPOSITORY" \ | ||
| '[.[][] | select(.head.sha == $sha and .head.repo.full_name == $repo) | .number] | first // empty') |
There was a problem hiding this comment.
Disambiguate PRs that share a head commit
🤖 This comment was written by Codex.
When two open PRs share the same commit—such as separate branches pointing at one SHA or one head targeting different accepted base branches—this query matches both and arbitrarily selects first. Both completed runs can consequently update the same sticky comment while the other PR receives none. Resolve from workflow_run.pull_requests when available and make the fork fallback reject or disambiguate multiple matches.
Useful? React with 👍 / 👎.




Summary
Collect backend and frontend test coverage in CI, publish Actions step summaries, and update one coverage comment on pull requests, including fork and Dependabot PRs.
Closes #1158
Changes
workflow_runreporter that reads coverage data without executing PR code and posts a sticky PR comment using the built-in GitHub token.Verification
main: frozen pnpm install, OpenAPI type generation, production build and typecheck passed.git diff --checkpassed.eba4920e, the Build workflow passed: both backend jobs, frontend validation, all three E2E shards, and the merged E2E report. The backend unit, backend integration, and frontend coverage artifacts were uploaded.workflow_runreporter can run only after its workflow exists on the default branch, so the PR comment path is locally verified but not yet exercised by GitHub Actions.