Repository navigation
ci(smoke): count skipped smoke specs in the job summary - #244
Conversation
…ekly Smoke legs now write passed/failed/skipped counts to the job summary and warn when every spec skipped. A scheduled workflow runs pnpm types:cms and fails when server/payload-types.ts differs from SahajCloud main. The web leg stays lenient: sydevs/SahajCloud#903 is still open. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | 91c37b0 | Commit Preview URL Branch Preview URL |
Nov 16 2026, 10:54 PM |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Two unrelated CI guardrails, ticketless, so judged against the body. The first half earns its place: a leg where every spec skipped was a green check that asserted nothing, and the counts now say so. The second half has nothing counted behind it — a weekly workflow and a 54-line script backstopping contractSync, against a missed sync the body cannot name. The aggregate is 114 lines of bespoke script for two problems vitest's own report and git diff --exit-code already answer. No contract shape changes: server/payload-types.ts is read, never written.
Findings
- should-fix —
ci.yml:176:always()warns on every merge-queue run and every cancellation, cases this file documents as quiet. - should-fix —
scripts/smoke-skip-summary.mjs:35: the report already carries these counts, and the hand-rolled pass dropstodo. - should-fix —
.github/workflows/types-drift.yml:13: name the missed sync, or drop the workflow and its script. - consider —
scripts/check-payload-types-drift.mjs:17:git diff --exit-codeis the check. - consider —
ci.yml:69: the new parenthetical narrates the diff.
What was checked
ci.ymlwhole: the newif:against the scope, discovery and missing-preview chain. No open ticket matches this PR.- Ladder, each new piece: the summary script against vitest's json reporter (
numPassedTests,numPendingTests,numTodoTestsconfirmed on 4.1.12 in this checkout); the drift script againstgit diff --exit-code; the workflow againstcontractSync. types:cmsreads SahajCloudmainover public raw (200 unauthenticated), so the new workflow needs no secret. The--reporter=json --outputFile.json=flags are valid vitest 4 and write to the job's cwd.- Body against diff:
## What,## Left outand## Validationall hold.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The loop's audit-contracts sweep already runs `pnpm types:cms` against origin/main on alternate Mondays and opens the sync PR when the copy is stale, which is what the three unprompted chore(contracts) re-syncs (#220, #228, #230) came from. A weekly workflow that only goes red is the weaker half of a backstop that already exists. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZ1yrSB1HAKfXDgS5y
The parenthetical dated itself to the diff and reads as stale the moment #903 closes, and the paragraph under it repeated the summary script's own header. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZ1yrSB1HAKfXDgS5y
always() warned on every merge_group run, where the scope step never runs and no preview exists, and on every cancellation. Both are cases this file already documents as legitimately silent. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZ1yrSB1HAKfXDgS5y
The JSON report's top level carries numTotalTests, numPassedTests, numFailedTests, numPendingTests and numTodoTests, so the per-assertion pass was re-deriving them. It also dropped todo, which counts in the total and in no column, so the table did not add up and a leg that skipped everything but one todo raised no warning. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZ1yrSB1HAKfXDgS5y
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZ1yrSB1HAKfXDgS5y
|
All five review threads adopted. Head is 91c37b0.
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
What
Skipped smoke specs are visible. Each smoke leg ends with a
Smoke resultsstep(
scripts/smoke-skip-summary.mjs) that copies vitest's own passed / failed / skipped / todocounts into the job summary, and emits a warning annotation when nothing asserted or when no
report exists. It only reports; the
require_previewpolicy still decides red or green. It runson pull requests only, so the merge queue — which publishes no preview to smoke — stays quiet.
Left out
require_preview: 'false'. Preview checks build on GitHub Actions SahajCloud#903 (preview checks build onGitHub Actions) is still open, so discovery for the web Worker is unchanged.
audit-contractssweepalready runs
pnpm types:cmsagainstmainon alternate Mondays and opens the sync PR whenserver/payload-types.tsis stale — which is where the unprompted re-syncs chore(contracts): re-sync copied contracts from SahajCloud #220, chore(contracts): re-sync copied contracts from SahajCloud #228 andchore(contracts): re-sync copied contracts from SahajCloud #230 came from. A weekly workflow that only goes red is the weaker half of a backstop that
already exists.
Validation
pnpm lint(0 errors),pnpm typecheck,vitest run— 95 files, 952 tests passed.ci.ymlparses as YAML, and the newif:reads!cancelled() && github.event_name == 'pull_request' && steps.scope.outputs.built != 'false'.counts now add up), an all-skipped report, and a missing report.
🤖 Generated with Claude Code