Repository navigation
ci(smoke): let a Dependabot run skip Smoke quietly - #458
Conversation
Dependabot's weekly action-pin pull requests could not go green. The Smoke job failed on purpose when its plan step emitted `reason=dependabot`, so every pin rotation stalled on a red required check that no commit on the Dependabot branch could clear. `dependabot` now takes the quiet-skip branch `fork` and `queue` already take: annotated, stated, exit 0. What that gives up is a preview read on such a pull request, and it costs nothing while `.github/dependabot.yml` updates `github-actions` only — the loop owns npm updates — so no pull request from it can change the deployed bundle. An npm entry added there would make this wrong, and the comment beside the reason says so. Decided as option A by Ardnived on #455. Entering the five secrets under Dependabot stays an open option; it is no longer the price of merging a pin bump. Closes #457 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDUdFJYwi8UWBnozU
Nothing in the gate job reads `steps.browser-cache.outputs.cache-hit`: the install step beside it carries no `if:` and runs on a hit deliberately, because `--with-deps` installs system libraries outside the cached directory. The browser-lane job's step shares the id and is read, twice, so only the gate job's copy was dead. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDUdFJYwi8UWBnozU
…arning The Actions-secrets section claimed every same-repo pull request fails its Smoke check until all five exist. A run Dependabot triggered is same-repo and never reads them, so after the quiet skip that claim overstates the red by one case. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDUdFJYwi8UWBnozU
The quiet skip costs a Dependabot pull request its preview read, and what makes that safe is `.github/dependabot.yml` updating actions alone: such a pull request cannot change the deployed bundle. Nothing enforced it, so an npm entry there would have made every dependency bump — the pull requests that do change the bundle — collect a green Smoke check that read nothing, with no red anywhere. `.github/dependabot.yml` was pinned by no spec at all. It is now pinned by the spec that already holds the shallower half, the heading the advice cites. Also compress the reason's prose, which stated the same safety argument on five surfaces, and narrow the `no-credentials` advice: a Dependabot run is same-repo and no longer fails there. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDUdFJYwi8UWBnozU
…updates Two consequences of the skip that the premise beside it did not cover. `.github/dependabot.yml` governs version updates. A Dependabot *security* update answers to a repository setting instead, so an alert against a runtime npm dependency would open a lockfile pull request with no entry in that file — one that does change the deployed bundle and now skips quietly. No tool here reads that setting, so it is recorded rather than asserted. One Dependabot pull request has ever been opened in this repo, an action pin, so the exposure is unmeasured rather than observed. And this job is the only place the repo runs `cloudflare/wrangler-action`, so the red check that used to force a reader to re-read its outputs before merging a bump no longer does. Also loosen the ecosystem pin to match any spacing, quoting or flow style, so a second entry cannot hide behind the first match. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYDUdFJYwi8UWBnozU
sydevs-bot
left a comment
There was a problem hiding this comment.
1 question for the reviewer, one per thread.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Holistic. The diff is the ticket and no larger: one case arm, its prose copies, the dead id, and a spec pinning the premise the change rests on. Neither unlisted change is smuggled — both are the same fact in one more place, so the join rule holds them, and #455 settled the skip itself. No contract surface moves, correctly. What the diff gets wrong is prose: one new claim narrows to the wrong pull requests, two added clauses are mechanism, and the body asks a reader to verify two states at once.
Findings
should-fix—docs/environment.md:54:a person pushedexcludes the wrong pull requests, and the sentence below already states the exception.should-fix—docs/rules/deployment.md:180: an MCP tool name and a pull-request count are mechanism. Cut both.should-fix— body, Manual verification 1: it demands the ⚠ summary line and a warning annotation, then says the run should reachpublish. Only one can happen, and the log showspublish.consider—.github/workflows/ci.yml:238: the premise is argued in full 20 lines below. The job comment needs the reason only.- Second opinion: A on the one question thread, matching the built option. Resolved.
What was checked. All five of #457's acceptance criteria hold. Read whole on the branch: the smoke job's plan and report steps, scripts/ci-workflows.test.ts, .github/dependabot.yml, the three docs. new-pieces.mjs answered NONE, so no streamliner ran; the one new piece is a spec, where the ladder raises no test point. Both cited headings exist. A grep of the branch for a surviving "two states" or "fails Smoke" claim found only the one flagged. .claude/workflow.json on main has no fixture block, so No preview surface needs no data check. This PR's Smoke log reached publish and ran 22 specs.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The job header gave the Dependabot skip two reason clauses where fork and merge_group each give one, and the second is the premise argued in full in the plan step 20 lines below. Naming the reason is enough here. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZHs62eHv92BG6PePC
Which tool can read the repository setting is how the prose was gathered, and the count of Dependabot pull requests here changes with the next one. The risk and the branch that handles a vulnerability both survive the cuts. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZHs62eHv92BG6PePC
`a person pushed` excluded the wrong pull requests: every loop pull request is same-repo, pushed by a bot, and still goes red here. What decides is the trigger actor, which is the wording `ci.yml`'s own no-credentials hint uses. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZHs62eHv92BG6PePC
|
Three critic threads adopted, the base merged, the one review-body point answered.
Manual verification 1 asked for the ⚠ skip line and for
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 21c4d29 | Nov 22 2026, 08:38 PM |
Splitting it into install-on-miss and install-deps-on-hit bought nothing and cost the guarantee. `playwright install --with-deps chromium` skips a browser whose marker file the restore brought back and installs the system libraries either way, so one unconditional step is both cheaper to read and self-healing: a partial or shell-less entry costs a download instead of handing `test:a11y` a browser it cannot launch. The key still names its payload, so the warmed entry gains the headless shell on the next push to `main` rather than at the next Playwright bump. With the hit path gone the gate reads no `cache-hit` output, so the step needs no `id` — which is also what #458 removes from it as dead. The spec gains the pins that shape leaves load-bearing: the install step has no `if:`, and the warm job's install carries no `--no-shell` while its key says `with-shell`. Three duplicated extractions become one each — `jobIn` bounds a job at the next column-2 line, so a renamed job throws instead of widening the slice over its neighbour's steps, and `steps`, `cacheActions` and `expectRestoresWarmedCache` are shared by both consumers' describes. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYvuWj4hRz8gbf7Qii
#458 landed the dead `id: browser-cache` removal from the gate job's Chromium step, which this branch had already dropped while rewriting the same step restore-only. Both sides wanted the id gone, so this branch's step is kept whole: it carries that removal plus `actions/cache/restore` on the key `browser-cache.yml` warms. Nothing else conflicted. #458's smoke-lane work — the quiet `dependabot` skip, its prose and its two spec pins — merges in untouched. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVzQXK8AUgWvU7J9kp
Summary
reason=dependabotnow takes the quiet-skip branchforkandqueuealready took, so a pin rotation no longer stalls on a redSmokenothing on the branch can clear.id: browser-cache(joined: same file, same review).docs/environment.md's five-secret warning no longer claims every same-repo PR goes red.Change outline
Behaviour — the report step's loud/quiet split
reasonis unchanged; only which arm exits 0 moves.Contract — what a green
Smokecheck now promisesParaphrased from
docs/testing.md§ "The smoke lane's three invariants", one rule per line.Files — where the premise is enforced
scripts/ci-workflows.test.ts ├── reports every state … and makes only three of them quiet # ['dependabot','fork','queue'] ├── gives a run Dependabot triggered its own reason # pins the cited §, unchanged +└── keeps the quiet skip safe by updating actions alone # pins .github/dependabot.ymlPreview
No preview surface — the diff changes CI configuration, a spec and docs. Nothing a host or a deploy can observe.
Test results
test:run(2357 unit tests, 188 files)scripts/ci-workflows.test.ts30 passedpnpm sizeon the PRBoth new assertions were watched failing against their defect before being kept:
quiet.sort()is the three reasonsFATAL=falsefrom the arm['fork','queue']deployment.mdheading exists'Deploy-side gates'dependabot.ymlupdates actions alonenpmentry, bare and quotedThe report step's own shell was extracted and run once per reason, which is the first acceptance criterion directly:
Each wrote the
### Smokesummary with the⚠️ … NO smoke specs ran.line.Manual verification
Smokecheck. It must be green having run the specs — reasonpublish, 22 specs in the log. The failure mode here is the opposite one: this PR is same-repo and not Dependabot-triggered, so nothing should take the new quiet arm. The ⚠ summary line and the warning annotation belong to item 2.Smokecheck. ⚠ The ticket's checklist names ci: bump actions/cache from 4.3.0 to 6.1.0 #455 as "open and red for exactly this reason", but ci: bump actions/cache from 4.3.0 to 6.1.0 #455 merged at 18:25:23Z, about five seconds before this run fired, so it cannot serve as that verification. The next action bump is the first observation.mcp__github__*tool reads that setting, so the risk below is recorded rather than measured. See the question thread onci.yml.Notes for reviewer
docs/rules/deployment.md§ "Deploy-side CI gates" and raised as one question thread, because narrowing the skip is a decision rather than a fact:.github/dependabot.yml, so it could open apnpm-lock.yamlPR that does change the deployed bundle and now skips quietly. Measured: exactly one Dependabot PR has ever been opened in this repo (ci: bump actions/cache from 4.3.0 to 6.1.0 #455, an action pin), so this is unmeasured rather than observed, andaudit-depsfixes vulnerabilities onclaude/fix-deps-branches instead.cloudflare/wrangler-action, so the red check that used to force a reader to re-read its outputs before merging a bump no longer does.docs/rules/deployment.md, 'Deploy-side CI gates'pointer as residue. Rejected:ci-workflows.test.tsreads that quoted heading out of the advice and asserts it exists, and acceptance criterion 4 requires it. Cutting it fails both.FATAL=false. Rejected on the source: the step endsecho "::warning::$MSG $HINT", and the extracted run above shows the warning carrying it.fork|queue|dependabot). Rejected: the vocabulary pin parses arm labels as text and requiresFATAL=falseon the line after each label, so an alternation arm would read as one reason namedfork|queue|dependabotand fail the set equality. The flat shape is the data the pin reads.actions/cache(save and restore) whileci.ymltriggers only onpull_request/merge_group, so no run ever writes a key a merge-queue entry can read — its comment counts a hit that cannot happen, at ~170 MB per first PR run and per queue entry. Keys and payloads differ frombrowser-cache.yml's warmed cache (playwright-vsplaywright-chromium-; headless shell vs--no-shell), so fixing it is a behaviour change and its own ticket.Detail
The red-table row moved up.
docs/testing.md's cause table is ordered, and the sentence under it reads "Only the first three exit 0". The Dependabot row sat belowa missing Actions secret on a same-repo PR, so it is now above it, grouping the three exit-0 rows.Prose was compressed, not just edited. The reviews found the "
github-actionsonly → cannot change the bundle → a preview read would cover nothing" argument written on five surfaces after the first draft. It now sits in full beside the code (ci.yml, with its ⚠ trigger) and indocs/rules/deployment.md, which owns the decision;docs/testing.mdand the HINT name the reason only.docs/environment.mdwas not on the ticket's list. Its § "GitHub Actions secrets" asserted that until all five exist, every same-repo PR fails itsSmokecheck. A Dependabot run is same-repo and never reads those secrets, so that overstated the red by one case after this change. The same clause inci.yml'sno-credentialsHINT is narrowed the same way.Why no
CHANGELOG.mdentry. That file is written for embedding sites and states that CI and documentation are deliberately left out. Nothing here is host-observable, sodocs/embedding.mdis untouched too.Reviews that ran.
/simplify(four angles, in this repo's absence ofpr-review-toolkit) and/code-review high. The comment lint reported no banned comment added.Closes #457
🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjYDUdFJYwi8UWBnozU