Repository navigation
Conversation
## Summary Each fallback subtest in `tests/test_hub_fetch_run.py` now asserts the last fetched URL ends with `/main/` followed by the prose gate path. A mutation that fetches from an unresolved ref now fails every fallback subtest. Addresses #2339 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <[email protected]>
## Summary - `gh_graphql` reads the JSON `gh api graphql` leaves on stdout when it exits non-zero, and tolerates an error set made only of errors whose `path` ends in `workflowRun`. Any other error, an empty or missing path, a non-zero exit with no JSON errors, or null `data` still aborts the digest. - A tolerated response carries a degraded marker to `check_nodes`, which then keys each Actions run by its own suite and drops none, and the digest says so (`CHECKS DEDUPED WITHOUT WORKFLOW KEYS`). A warning goes to stderr. - Tests cover a tolerated workflowRun-only error, a mixed or other-path error aborting, null data aborting, the same-named jobs of two workflows both tallying, and a third-party app rerun still deduping by app slug. ## Deliberate deviation from #2338 "Done When" The issue asked for the dedupe to fall back to the app slug. While degraded, that collapses same-named jobs of two workflows into one group and keeps only the highest suite id, which reads a failure as green. So Actions runs are keyed by suite instead (a superseded failure may show, which reads red rather than hiding a failing check), and other apps keep the app-slug key. ## Not reproduced The error path was never reproduced against a live token. The tolerance matches on `path` only, with no error type filter. A denial reported on `workflowRun.workflow` rather than `workflowRun` would still abort, as before. Addresses #2338 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
## Summary The `comments` label was computed from `github.event.pull_request.labels`, a snapshot taken when the event fires. `gh pr create --label` applies its labels after the `opened` event, so that run saw no label, and a rerun reused the same snapshot. - `validate-task.yml`: a new `Read comments label step` in the lint job reads the pull request's labels through the API (`gh api --paginate --jq '.[].name' repos/<repo>/issues/<n>/labels`) with the job's `GITHUB_TOKEN`, matching `comments` case-insensitively as `contains()` does. It writes a step output that `allow-comments` reads, beside the unchanged promotion clause. A failed read falls back to the payload value and says so in the log rather than turning into a silent false. - No permission is added. Every caller grants the validate job `contents: read` only, and a reusable workflow cannot raise that, so the live read works on public repositories and a private repository falls back to the payload. That is public-only by decision. Granting `pull-requests: read` fleet-wide is the follow-up in #2354. - `comment-and-doc-style`, `drive-pr`, and `scripts/README.md` now say the label is read live where the lint log shows "Read the pull request's labels live", so a rerun picks up a label added since, and otherwise (a private repository, or a fallback) the label applies to the next push. `drive-pr` says to add the label after creating the pull request. - `tests/test_prose_lint.py` runs the step's own `run:` body against a stub `gh` and covers live-wins-both-ways, case-insensitive matching, the exact-line match, the call's path, `--paginate` and `.[].name` projection, and the payload fallback. Each of those was mutation-checked against the step. This PR's own lint log is the first real-API check of the live read under `contents: read`. Addresses #1703 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Summary The repo gate's `composite-actions` check read action files with PyYAML and fell back to `yq`, which nothing provisions, so a host with neither reported every action as unreadable. - Where PyYAML is not importable, the check resolves an interpreter that has it through one `uvx --with pyyaml` probe per run. `uv` is already a declared host tool and runs the schema half. The parser is therefore PyYAML on every host. - Each action file is read by that interpreter as a direct child, so a timeout kills it. The reader emits only the fields the check uses (each step's `run`, `shell`, and `name`), so aliases elsewhere in a file are never expanded. - A failure of uvx itself, the probe timing out or exiting, uvx missing, or the resolved interpreter not launching, is one host-level finding, and the schema half still runs. A file problem stays one single-line finding for that file. - Child stdio is UTF-8 and is decoded leniently. - `scripts/README.md` states the tools each half needs. Tests cover the probe-once path, each host-level failure, the direct-child timeout, alias and non-UTF-8 inputs, and label parity. Each fix was reverted once to confirm its test fails. Follow-ups: #2357 (the in-process path can hang on an alias-expanded step name or shell, pre-existing) and #2358 (under `UV_NO_CACHE` the host finding names the vanished temp path rather than the cause). Addresses #2348 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2360 +/- ##
==========================================
+ Coverage 57.70% 57.86% +0.15%
==========================================
Files 16 16
Lines 7919 7944 +25
==========================================
+ Hits 4570 4597 +27
+ Misses 3349 3347 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The promotion spans multiple workflow, tooling, test, and generated-guidance changes, warranting final human review.
Review effort: Lite
Findings: None
What changed in this PR
Promotes develop to main with fixes for live label reads, isolated YAML parsing, review digest tolerance, and fallback-fetch coverage.
Changes:
- Adds regression tests for fetch fallback, label handling, YAML parsing, and workflow errors.
- Uses
uvxwith PyYAML for isolated composite-action parsing. - Updates documentation and distributed skill guidance.
| File | Description |
|---|---|
tests/test_repo_gate.py |
Tests uvx YAML reading and failures. |
tests/test_prose_lint.py |
Tests live label handling. |
tests/test_pr_review.py |
Tests workflow error tolerance. |
tests/test_hub_fetch_run.py |
Verifies fallback fetches use main. |
scripts/README.md |
Documents updated gate behavior. |
scripts/pr_review.py |
Implements tolerant GraphQL handling. |
.github/workflows/validate-task.yml |
Reads labels through the API. |
.github/skills/drive-pr/SKILL.md |
Updates workflow guidance. |
.github/skills/comment-and-doc-style/SKILL.md |
Updates label-read guidance. |
.github/actions/repo-gate/repo_gate.py |
Adds isolated uvx YAML parsing. |
.claude-plugin/fleet-skills/skills/drive-pr/SKILL.md |
Updates generated guidance. |
.claude-plugin/fleet-skills/skills/comment-and-doc-style/SKILL.md |
Updates generated guidance. |
.claude-plugin/fleet-skills/.source-digests/drive-pr |
Refreshes source digest. |
.claude-plugin/fleet-skills/.source-digests/comment-and-doc-style |
Refreshes source digest. |
.agents/skills/drive-pr/SKILL.md |
Updates canonical guidance. |
.agents/skills/comment-and-doc-style/SKILL.md |
Updates canonical guidance. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Summary
Promotes
developtomainwith four pull requests, each already reviewed and merged intodevelop:hub-fetch-run.py's fallback fetch uses themainpath.workflowRunerror inpr_review.py, keying unreadable Actions runs per suite so no failure is hidden.commentslabel live in the validate task's lint job rather than off the event payload, on public repositories, with private repositories following in Grant pull-requests: read So the Live comments Label Read Reaches Private Repositories #2354.uvx, in isolated mode, where PyYAML is not importable, replacing the unprovisionedyqfallback.Closes #2339
Closes #2338
Closes #1703
Closes #2348
🤖 Generated with Claude Code