Repository navigation
feat(ci): run all local test suites with visible skips - #48
Conversation
Code review (PR 48 vs issue #34)Eight independent read-only reviewers: Standards, Spec, issue-34 intent, implementation method, YAGNI, POSIX shell, test-surface completeness, and module design. Standards and Spec are kept on separate axes on purpose — a pass on one does not excuse a miss on the other. Diff: StandardsNo hard documented-standard breach. Documented conventions (judgement, not hard)
Baseline smells (all judgement)Speculative Generality — skip_suite() {
suites=$((suites + 1))
printf '\nSKIP %s: %s\n' "$1" "$2"
}
…
skip_suite "test:server-image" "CI-only server image build"No caller ever unskips. A Mysterious Name — dual No Duplicated Code, Feature Envy, Data Clumps, Primitive Obsession, Repeated Switches, Shotgun Surgery, Divergent Change, Message Chains, Middle Man, or Refused Bequest worth calling. The three-file spread is one runner, not shotgun. Continue-without- Spec(a) Missing or partialRuntime skip reasons. Spec: “Every entry either runs or prints a visible skip with the reason (Docker unreachable, macOS-only, no Postgres).” Done-when: “names what it skipped and why.” The only skip is hardcoded “Five Root (b) Not asked for (scope)
(c) Looks implemented, but wrong vs specSkip counting in the summary. Spec: “ends with Platform-specific stay-out is only the image verifier. Spec: “CI-only jobs (the server image build, anything platform-specific) stay out.” Otherwise on-spec: POSIX Intent vs issue 34#34’s problem is tribal knowledge: there is no single local command, and skipped work is invisible. The quoted north star is do not run CI-only / platform-only tests on a machine that gets no benefit from them — and say so. Visible skip-with-reason is the product. The PR solves the “one command, keep going, That said, the parentheticals in the issue (Docker unreachable, macOS-only, no Postgres) do not currently map onto these suites:
So the letter of “every entry runs or prints SKIP + reason” is met for the one suite that must stay out. Inventing Docker/macOS/Postgres probes for suites that do not have those gates would be implementing the examples instead of the actual surface. The spirit gap is narrower than a first reading of the issue: CI probe jobs are omitted with no SKIP line, and the skip helper is a checkbox rather than an observation about the host.
Done when, on a clean Linux checkout: the command will run what this script always runs, name the one hardcoded skip, and exit non-zero if a MethodA tiny root orchestrator is the right seam. Packed-cli-e2e and docker-save are not workspace packages; stuffing them into turbo would be a fake package/task. One command at What works:
What is weaker:
Inlining Keep the sh wrapper. Collapse POSIX notes, not blockers: Ctrl-C on a child typically becomes exit 130 and is treated as YAGNI / beautySimplicity score: 7/10 (the script is close;
Counting SKIP in the denominator is a small lie. Either omit it from Aligned The one change that would make this more beautiful: delete Standards: 0 hard violations, 3 judgement findings. Worst in-axis: Spec: 4 findings (2 missing/partial, 1 scope, 1 wrong-vs-spec). Worst in-axis: skip-with-reason is a hardcoded CI-only line, not host-aware skips — with the caveat that the issue’s example reasons do not currently apply to these suites. |
Review triageI checked the findings against the current test surface. I will address
I will not change
After the two accepted changes I’ll rerun |
Running the complete local test surface required knowing several separate commands, and skipped CI-only checks were invisible.
This adds
pnpm test:all, which runs the workspace and local root suites, continues after failures, and reports explicit skips plus a final failure count. The server-image verifier remains CI-only and is shown as skipped with its reason.Closes #34
Verification:
pnpm test:allpnpm typecheckpnpm lintImplemented with
openai-codex/gpt-5.6-solusing the Oh My Pi coding harness.