Skip to content

Unify the check gate with CI's test command - #769

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7300-unify-bun-run-check-with-ci-so-a-local-green-cannot-mask-a
Sep 4, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-7300-unify-bun-run-check-with-ci-so-a-local-green-cannot-mask-a

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • bun run check now runs the same seeded, randomized suite CI runs — bun test ./src ./tests ./evals --randomize --seed 424242 — so a local green can no longer mask a CI test failure
  • CI's test job invokes the same check:projects-dir-guard script instead of duplicating the test command, so the two cannot drift again
  • The projects-dir sandbox guard stops squatting on the test script name and delegates to bun run test, keeping the suite command in one place
  • A new anti-drift test (tests/unit/check-gate.test.ts) enforces that test, check, the guard, and CI resolve to the same seeded suite

Verification

  • bun run typecheck and bun run build pass; the new tests/unit/check-gate.test.ts passes (3/3)
  • Prettier and ESLint pass on all changed files (only a pre-existing empty-arrow warning in guard-real-projects-dir.ts)
  • Full randomized-suite completion was not confirmed locally: the shared machine was running many concurrent sibling bun run check processes, so the final green runs as part of this PR's CI checks

Fixes CL-7300

@linear-code

linear-code Bot commented Sep 3, 2026

Copy link
Copy Markdown

CL-7300

bun run check ran the guard, not the test suite, while CI ran
the suite itself, so a local green could mask CI failures. test now holds
the seeded randomized suite; check, the guard, and CI all resolve to it.
The negative assertion missed the likeliest regression: an unguarded
run: bun run test step in CI, which passes both prior checks while
reintroducing the drift and skipping the projects-dir sandbox. Pin the
anchor to end-of-line and note the guard scope in CONTRIBUTING.
@TheGreatAxios
TheGreatAxios force-pushed the cl-7300-unify-bun-run-check-with-ci-so-a-local-green-cannot-mask-a branch from ec0577c to a5d4742 Compare September 4, 2026 04:47
@TheGreatAxios
TheGreatAxios merged commit 6854c40 into main Sep 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant