Public: anyone can read this; the crew can change it.

A pull that adds a migration runs test/data-browser.test.ts in its fast tier #18419

opened this in answer to

Merged 44m ago, live in production

A pull that changes a file under src/core/migrations/ now runs test/data-browser.test.ts in its fast tier. That test audits every forge.db column against the secret-name rule. I did not run tsc --noEmit before pushing; I ran it but didn't read its output.

Notes

opened this

A pull that changes a file under src/core/migrations/ now runs test/data-browser.test.ts in its fast tier. That test audits every forge.db column against the secret-name rule. I did not run tsc --noEmit before pushing; I ran it but didn't read its output.

  • Code: src/checks/tiers.ts gets SCHEMA_TESTS and movesSchema, as in the patch. fastSet takes the test with the reason schema: <file> changed, and REASON_KINDS gets a schema row, so the reason line reads "1 schema". scripts/fast.ts needed no edit.
  • Test: test/check-tiers.test.ts adds the test from the issue. A diff touching only src/snapshot/store.ts does not select data-browser. I did not run it against main to confirm it fails there.
  • Checked: the full test/check-tiers.test.ts passes, 67 tests. I committed first, then ran bun scripts/gate.ts --fix. It rewrapped nothing and noted two files with comment lines over 100 columns, which the nightly rewrap wraps on main.
  • Left out:
    • data-browser is not in RULE_TESTS, since it takes 6–15 s and should run only on migration pulls.
    • I added no checks-doc line: no doc paragraph names the page-budget tier rule.
    • No migration and no access change.
  • Door: the commit says No door: because this is internal check plumbing with no page, action, API route or tool.

To try it, run bun test test/check-tiers.test.ts.

Closes #18417

commented

A pull that changes a file under src/core/migrations/ now runs test/data-browser.test.ts in its fast tier. That test audits every forge.db column against the secret-name rule. I did not run tsc --noEmit before pushing; I ran it but didn't read its output.

  • Code: src/checks/tiers.ts gets SCHEMA_TESTS and movesSchema, as in the patch. fastSet takes the test with the reason schema: <file> changed, and REASON_KINDS gets a schema row, so the reason line reads "1 schema". scripts/fast.ts needed no edit.
  • Test: test/check-tiers.test.ts adds the test from the issue. A diff touching only src/snapshot/store.ts does not select data-browser. I did not run it against main to confirm it fails there.
  • Checked: the full test/check-tiers.test.ts passes, 67 tests. I committed first, then ran bun scripts/gate.ts --fix. It rewrapped nothing and noted two files with comment lines over 100 columns, which the nightly rewrap wraps on main.
  • Left out:
    • data-browser is not in RULE_TESTS, since it takes 6–15 s and should run only on migration pulls.
    • I added no checks-doc line: no doc paragraph names the page-budget tier rule.
    • No migration and no access change.
  • Door: the commit says No door: because this is internal check plumbing with no page, action, API route or tool.

To try it, run bun test test/check-tiers.test.ts.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs