Skip to content

ci(smoke): let a Dependabot run skip Smoke quietly - #458

Merged
sydevs-bot merged 9 commits into
mainfrom
claude/ci-457-smoke-dependabot-quiet
Nov 22, 2026
Merged

sydevs-bot merged 9 commits into
mainfrom
claude/ci-457-smoke-dependabot-quiet

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • reason=dependabot now takes the quiet-skip branch fork and queue already took, so a pin rotation no longer stalls on a red Smoke nothing on the branch can clear.
  • Drops the gate job's dead id: browser-cache (joined: same file, same review).
  • Joined, unlisted: the safety premise is now pinned by a spec, and 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

reason is unchanged; only which arm exits 0 moves.

 Report a smoke run that read nothing          .github/workflows/ci.yml
   fork)            FATAL=false  ::warning  exit 0
   queue)           FATAL=false  ::warning  exit 0
-  dependabot)                   ::error    exit 1   # "decide before entering them"
+  dependabot)      FATAL=false  ::warning  exit 0   # states the skip
   no-credentials)               ::error    exit 1
   publish)                      ::error    exit 1
   *)                            ::error    exit 1   # unrecognised stays loud

Contract — what a green Smoke check now promises

Paraphrased from docs/testing.md § "The smoke lane's three invariants", one rule per line.

-Exactly two states skip quietly: fork, merge_group.
+Exactly three states skip quietly: fork, merge_group, a Dependabot-triggered run.
 Every other route to no preview fails the job.
 An unrecognised reason takes the loud branch.
+A Dependabot VERSION update changes no deployed bundle, so the read covers nothing.
+A Dependabot SECURITY update answers to a repository setting, not dependabot.yml, and skips too.

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.yml

Preview

No preview surface — the diff changes CI configuration, a spec and docs. Nothing a host or a deploy can observe.

Test results

  • Lean gate: ✓ lint + typecheck + test:run (2357 unit tests, 188 files)
  • Targeted specs: scripts/ci-workflows.test.ts 30 passed
  • Build: N/A — no source file changed; CI runs build + pnpm size on the PR

Both new assertions were watched failing against their defect before being kept:

assertion reintroduced defect result
quiet.sort() is the three reasons removed FATAL=false from the arm red: ['fork','queue']
the cited deployment.md heading exists renamed it to 'Deploy-side gates' red
dependabot.yml updates actions alone appended an npm entry, bare and quoted red both ways

The report step's own shell was extracted and run once per reason, which is the first acceptance criterion directly:

dependabot     exit 0  ::warning     fork    exit 0  ::warning     queue   exit 0  ::warning
no-credentials exit 1  ::error       publish exit 1  ::error       mystery exit 1  ::error

Each wrote the ### Smoke summary with the ⚠️ … NO smoke specs ran. line.

Manual verification

  1. Read this PR's own Smoke check. It must be green having run the specs — reason publish, 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.
  2. Read the next weekly Dependabot pin PR's Smoke check. ⚠ 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.
  3. Confirm whether Dependabot security updates are enabled (Settings → Advanced Security). No mcp__github__* tool reads that setting, so the risk below is recorded rather than measured. See the question thread on ci.yml.

Notes for reviewer

  • Two gaps this skip opens that the ticket did not cover. Both are recorded in 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:
    • A Dependabot security update is governed by a repository setting, not .github/dependabot.yml, so it could open a pnpm-lock.yaml PR 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, and audit-deps fixes vulnerabilities on claude/fix-deps- branches instead.
    • This job is the repo's only use of 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.
  • Dismissed, with reasons:
    • Cut the HINT's docs/rules/deployment.md, 'Deploy-side CI gates' pointer as residue. Rejected: ci-workflows.test.ts reads that quoted heading out of the advice and asserts it exists, and acceptance criterion 4 requires it. Cutting it fails both.
    • The HINT is never printed under FATAL=false. Rejected on the source: the step ends echo "::warning::$MSG $HINT", and the extracted run above shows the warning carrying it.
    • Collapse the three quiet arms into one fork|queue|dependabot). Rejected: the vocabulary pin parses arm labels as text and requires FATAL=false on the line after each label, so an alternation arm would read as one reason named fork|queue|dependabot and fail the set equality. The flat shape is the data the pin reads.
  • Filed as ci(gate): the gate job's Chromium cache is written where nothing can read it #459: the gate job's Chromium cache uses actions/cache (save and restore) while ci.yml triggers only on pull_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 from browser-cache.yml's warmed cache (playwright- vs playwright-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 below a 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-actions only → 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 in docs/rules/deployment.md, which owns the decision; docs/testing.md and the HINT name the reason only.

docs/environment.md was not on the ticket's list. Its § "GitHub Actions secrets" asserted that until all five exist, every same-repo PR fails its Smoke check. 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 in ci.yml's no-credentials HINT is narrowed the same way.

Why no CHANGELOG.md entry. That file is written for embedding sites and states that CI and documentation are deliberately left out. Nothing here is host-observable, so docs/embedding.md is untouched too.

Reviews that ran. /simplify (four angles, in this repo's absence of pr-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

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 sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 question for the reviewer, one per thread.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread .github/workflows/ci.yml Resolved
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot

sydevs-bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 20:31Z address-review · attempt 1 · session · done
  • 20:31Z address-review · attempt 1 · session
  • 20:23Z review-pr · attempt 1 · session · done
  • 20:23Z review-pr · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 22, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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 pushed excludes 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 reach publish. Only one can happen, and the log shows publish.
  • 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

Comment thread docs/environment.md Resolved
Comment thread docs/rules/deployment.md Resolved
Comment thread .github/workflows/ci.yml Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 22, 2026
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
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Three critic threads adopted, the base merged, the one review-body point answered.

Manual verification 1 asked for the ⚠ skip line and for publish at once. It now asks for a green check that RAN them; the ⚠ line belongs to item 2. The Contract block dropped recorded, not asserted with the prose it paraphrased.

origin/main merged clean (e491074). Lean gate green: lint, typecheck, 2357 tests in 188 files.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 22, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review November 22, 2026 20:40
@sydevs-bot
sydevs-bot requested a review from Ardnived November 22, 2026 20:40
@sydevs-bot
sydevs-bot enabled auto-merge November 22, 2026 20:40
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 22, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design 21c4d29 Nov 22 2026, 08:38 PM

sydevs-bot pushed a commit that referenced this pull request Nov 22, 2026
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
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 22, 2026
Merged via the queue into main with commit f7b8691 Nov 22, 2026
72 of 76 checks passed
@sydevs-bot
sydevs-bot deleted the claude/ci-457-smoke-dependabot-quiet branch November 22, 2026 21:31
@sydevs-bot sydevs-bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 22, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 22, 2026
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

ci(smoke): let a Dependabot run skip Smoke quietly

3 participants