Files
Peter Steinberger ef18511a0a perf(ci): pay the gateway pretest build once, not on every stripe
`agentic-gateway-core` is striped by file, and two of its files --
`gateway-active-memory` and `gateway-concurrent-streams` -- are registered in
`runtimeConsumers`, so any stripe holding one inherits `pretestBuildMode` and
runs `pnpm build:ci-artifacts` before its tests. Striping spread them, so every
gateway-core job paid that build.

Measured on run 33215955822, `checks-node-compact-large-6` spent 275s building
to run 118.2s of tests, and the three gateway-core jobs were the three slowest
in CI at 512s, 436s and 368s against a 9:30 wall.

Pull those files into one `agentic-gateway-core-runtime` shard, derived from
`runtimeConsumers` rather than hardcoded so the two lists cannot drift. The
ordinary stripes lose their build entirely; exactly one job builds, on both the
blacksmith and hybrid profiles.

Weight that shard at 145s and mark it exclusive so the packer neither stacks
partners onto the one job paying the build nor stripes it in two above the 150s
`COMPACT_GITHUB_MAX_PREDICTED_SECONDS` threshold, which would restore the
duplicate build this change removes.

Guards move with the plan: the gateway expectation now asserts the invariant
directly -- no stripe carries a build mode, exactly one sibling shard does --
and the stripe-coverage check spans the stripes plus that shard, so a dropped
file still fails it (it caught 552 against 554 while this was being written).
2026-08-28 20:36:10 -07:00
..