Repository navigation
ci(upstream-drift): run all drift checks from one weekly workflow - #16397
Conversation
scripts/upstream-drift-vendored-report.sh runs each vendored skill's own check script from a seven-row table (D6) and writes one report `page` line per row with `pin=unknown head=unknown` (Q63), in the form the one filer reads. Exit 0, 1 and 2 map to clean, drift and untracked; a timeout (--row-timeout, default 120 s) is untracked with a warning (D19); any other exit is untracked with an error and the row id in the broken-contract file (D15). Each check's output goes only to the job summary (D14), rows run with no token (D5), and the adapter exits 0 or 2, never 1, writing no report on 2 (D16). Refs: #14211 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ored-copy hash check-good-css-drift.sh now only checks, offline, that the two vendored good-css copies still hash to their pinned blob SHAs (Q60). The upstream side of the pin is read by scripts/check-upstream-drift.sh from the standard-form record, so the script drops PIN, the upstream compare, fetch_blob_sha and curl. Its test keeps cases 1, 4, 5 and 6, drops the upstream cases 2, 3 and 3b, and adds a case that runs the check with no curl on PATH. The curl prerequisite goes with its only reader. Refs: #14211 Co-Authored-By: Claude Opus 5.5 <[email protected]>
maintenance-file-upstream-drift-issues.yml now runs weekly at the deleted maintenance-check-upstream-drift.yml's slot, 29 10 * * 1 (D4), in two jobs (D5): `report` (contents: read, 30-minute timeout) runs the pinned check with the token on that step alone and the vendored-skill adapter with none, and uploads the reports with a 1-day retention only on success; `file` (issues: write, needs: report) files every issue, then fails on an unreachable upstream or a non-empty broken-contract list (D15). The monitoring lane reads the filer workflow in place of the deleted one, and its audit finding no longer says a failed run reported findings. The upstream-drift contract retitles its section "Weekly drift issues" and covers the adapter (6.1.0, the next minor after 6.0.0); the docs that named the old workflow or a monthly run now name the weekly one. Refs: #14211 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
Lane run report
Failed GitHub API calls
|
|
claude-security-review reviewed Security review (incremental, blocking only): PR #16397No security issues found. Scope. I read every hunk of all 4 files that changed since What changed.
Trust controls and instructions. None of the four files matches a trusted-path glob. The change touches no trust control, merge hold, token scope, kill switch, plugin manifest or standing instruction. Prior and settled items. My earlier review left no inline finding on this pull request, so nothing is re-posted. critical-findings: 0 |
|
claude-review reviewed Code review, incremental (c185057 → e286dbf)No findings. This round reported blocking findings only, because this lane already reviewed an earlier head. I read every hunk of all 4 files changed since then:
The prior finding is fixed. My earlier advisory finding said signal 6's summary claimed a failed drift-workflow run had always filed every issue first. That finding (resolved thread on
New test: the assertion in Not verified by me: the PR author reports the test failed first (49 pass, 1 fail) and passes now (50 pass, 0 fail). That is the author's claim; I did not run it. Manifests: no Spend: nothing in this increment changes how much the workflows spend. Verifier dropped 0 of 0 candidates. |
…tream-drift-workflow
A drift check that could not finish fails the workflow's report job, so the file job never runs and nothing is filed (D15). The signal-6 summary, the pr-pipeline README's row 6 and the pr-pipeline fragment said every filer failure came after filing every issue; each now names that case. Refs: #14211 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Refs: #14211
Summary
Problem: an upstream change reached nobody unless a person noticed a failed workflow run, and the vendored skills' drift was checked by a separate weekly workflow that never opened an issue. Intent: "to ensure what we build is what I want".
One weekly workflow now runs every drift check and keeps one issue per upstream, vendored skills included. While an upstream's issue is open, the run updates it and files no second one. A run passes once its issues are written and fails only after filing everything it can.
Fix
scripts/upstream-drift-vendored-report.sh: seven rows (the six vendored-skill update scripts and good-css's hash check), onepageline per row withpin=unknown head=unknown. A timed-out row or an exit other than 0, 1 or 2 maps tountracked; an out-of-contract exit is also written to a broken-contract file. Check output goes only to the job summary, rows run with no token, and the adapter exits 0 or 2, writing no report on 2.plugins/user-interface/scripts/check-good-css-drift.shnow only hashes the vendored copies, offline; thecurlprerequisite is gone..github/workflows/maintenance-file-upstream-drift-issues.ymlruns on cron29 10 * * 1with two jobs:report(contents: read, 30 minutes, token on the docs/upstream step only) uploads the reports as a one-day artifact only when both producers finished;file(issues: write,needs: report) files every issue, then fails when the broken-contract file is not empty..github/workflows/maintenance-check-upstream-drift.ymlis deleted.Three things that differ from the issue's wording, each from what main holds now:
filejob also holdscontents: read, because it checks the repository out to run the filer.issues: writeis still its only write grant.Verification
scripts/upstream-drift-vendored-report.test.sh:PASS=49 FAIL=0(it failed 39 cases before the script existed);plugins/user-interface/tests/check-good-css-drift.test.sh: all checks pass. Both run again by the session that opened this PR.bash scripts/upstream-drift-issues.sh --dry-run <report>prints oneaction=line per id and makes no write;grep -c "fetch_blob_sha\|curl" plugins/user-interface/scripts/check-good-css-drift.shreturns 0.--dry-runagainst the live issue list: 16 ids, 17 page lines (7 from the adapter), no broken-contract row; create 6, edit 2, reopen 0, close 0, none 8.Left out:
scripts/check-artifact-retention.shand 4 of 31 cases in the monitor's test file did not run locally, because the packages they need (yaml,ajv) are not installed in this checkout and installing them was refused by the building session's permission system; CI runs both. No workflow was dispatched.Related
vocabulary.jsonstill listscheck-upstream-driftas in use; that file is synced from the standards repository, so its fix belongs there.Remaining
reportwith nothing filed; the dispatched report holds the seven adapter lines; each new issue carriesneeds-human; the dry run is repeated at the merge commit. feat(upstream-drift): run all drift checks from one weekly workflow #14211 closes when those are recorded.🤖 Generated with Claude Code
https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd