Skip to content

ci(smoke): count skipped smoke specs in the job summary - #244

Merged
Ardnived merged 7 commits into
mainfrom
claude/ci-guardrails
Nov 17, 2026
Merged

Ardnived merged 7 commits into
mainfrom
claude/ci-guardrails

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

Skipped smoke specs are visible. Each smoke leg ends with a Smoke results step
(scripts/smoke-skip-summary.mjs) that copies vitest's own passed / failed / skipped / todo
counts into the job summary, and emits a warning annotation when nothing asserted or when no
report exists. It only reports; the require_preview policy still decides red or green. It runs
on pull requests only, so the merge queue — which publishes no preview to smoke — stays quiet.

Left out

Validation

  • Lean gate: pnpm lint (0 errors), pnpm typecheck, vitest run — 95 files, 952 tests passed.
  • ci.yml parses as YAML, and the new if: reads
    !cancelled() && github.event_name == 'pull_request' && steps.scope.outputs.built != 'false'.
  • Summary script: checked against a real vitest report (1 passed / 1 skipped / 1 todo — the
    counts now add up), an all-skipped report, and a missing report.
  • Security review over the branch diff: no findings.

🤖 Generated with Claude Code

…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]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 16, 2026 •

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 Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web 91c37b0 Commit Preview URL

Branch Preview URL
Nov 16 2026, 10:54 PM

@Ardnived
Ardnived marked this pull request as ready for review November 16, 2026 22:39
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot

sydevs-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 22:47Z address-review · attempt 1 · session · done
  • 22:47Z address-review · attempt 1 · session
  • 22:39Z review-pr · attempt 1 · session · done
  • 22:39Z review-pr · attempt 1 · session

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

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

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧐 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 drops todo.
  • 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-code is the check.
  • consider — ci.yml:69: the new parenthetical narrates the diff.

What was checked

  • ci.yml whole: the new if: 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, numTodoTests confirmed on 4.1.12 in this checkout); the drift script against git diff --exit-code; the workflow against contractSync.
  • types:cms reads SahajCloud main over 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 out and ## Validation all hold.

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


Generated by Claude Code

Comment thread .github/workflows/ci.yml Resolved
Comment thread scripts/smoke-skip-summary.mjs Resolved
Comment thread .github/workflows/types-drift.yml Resolved
Comment thread scripts/check-payload-types-drift.mjs Resolved
Comment thread .github/workflows/ci.yml Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 16, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 16, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 16, 2026
sydevs-bot and others added 6 commits November 16, 2026 22:48
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
@sydevs-bot sydevs-bot changed the title ci(smoke): count skipped smoke specs and check payload-types drift weekly ci(smoke): count skipped smoke specs in the job summary Nov 16, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor

All five review threads adopted. Head is 91c37b0.

origin/main merged in cleanly. Lean gate green: lint 0 errors, typecheck, 952 tests. Security review found nothing.

🤖 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 16, 2026
@sydevs-bot
sydevs-bot enabled auto-merge November 16, 2026 22:57
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 16, 2026
@Ardnived
Ardnived disabled auto-merge November 17, 2026 18:06
@Ardnived
Ardnived merged commit 7e9bedd into main Nov 17, 2026
69 of 77 checks passed
@Ardnived
Ardnived deleted the claude/ci-guardrails branch November 17, 2026 18:06
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 17, 2026
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.

2 participants