forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to scripts/gate-local.shClear filter

2026-09-23

ci: deploy on a green push to mainAhmet Kaan Gümüş · f1d5ed2
ci: deploy on a green push to main

A push whose Validate and Build jobs both succeed now deploys that
run's own release artifact. workflow_dispatch keeps the newest-green
redeploy (tests=force still deploys the artifact that run just built).
The capacity gate is unchanged and still read from compose x-rag-envelope.
Local-Gate: 206369ac9e4deb52af2d99733a2f1d70dfd4c15b (1410 passed, 32s)

2026-09-18

ci: 🛡️ let a locally-proven push skip the runner suiteAhmet Kaan Gümüş · 4c9d9bb
ci: 🛡️ let a locally-proven push skip the runner suite

The unit suite HANGS on the runner: run 35297989416 sat at 7% for 73
minutes until it was cancelled by hand, and every push since 2026-09-17
17:54 burned the same way (35283445041 3h20m, 35255586903 88min,
35264547756 67min — all cancelled). The identical gate is 32 s here.

Port hezarfen_backend's proven escape hatch, default unchanged:

  DEFAULT   push without a trailer -> GitHub runs everything, suite
            included (now bounded instead of unbounded).
  SPECIAL   scripts/gate-local.sh proves the suite here, writes
            .git/local-gate/<tree>.ok and prints a `Local-Gate: <tree>
            (<n> passed, <t>s)` trailer (--amend appends it); the
            workflow's "Decide test gate" step honours it only on an
            exact HEAD^{tree} match, so CI just builds, packs, uploads.

- scripts/gate-local.sh: the command CI's gate runs, with two measured
  bounds — faulthandler names a hanging test (all-thread dump, exit 1)
  after 120 s, `timeout --foreground 600` bounds the step at ~15x the
  worst green 41 s Test step. Preconditions first (CI's dependency set
  in .venv, exact recipe printed when it is missing), a stamp only from
  a clean tree, --scope runs emit no trailer.
- .githooks/pre-push (opt in: git config core.hooksPath .githooks):
  refuses a stale trailer tree, a trailer with no stamp, a scoped
  stamp, and trailer counts that do not match the stamp; loud escapes
  SKIP_LOCAL_GATE=1 / GATE_ALLOW_SCOPED=1.
- workflow: "Decide test gate" + guards on the suite-only steps, a
  bounded Test step with the faulthandler dump, stall diagnostics, and
  a workflow_dispatch `tests: auto|skip|force` input — force builds and
  tests the dispatched ref, and the deploy job then takes this run's
  own artifact instead of hunting for the newest green one.

Two deliberate deltas from the backend reference, both because a scoped
run must not be able to destroy a full-suite proof: stamps are keyed by
tree AND scope (<tree>.<scope>.ok, its own log too), and the "already
verified, reuse it" fast path is keyed the same way — in the reference a
plain `--scope` run is answered by the full stamp (suite never runs) and
overwrites it (trailer silently refused afterwards).

The new comments are English while the surrounding prose is Turkish:
that is the language the change was built under, not an oversight.
Local-Gate: 08165e108e8b490c5b0498f65411fcdf98c39891 (1387 passed, 34s)