gstack 1.91.364.0

1.91.364.0
Added 3
  • Repos can set timeout_s in .gstack/pregate.json (1 to 3600 seconds) as gstack-pregate's per-process timeout when --timeout is not passed
  • The remote gate receives the timeout_s value as PREGATE_TIMEOUT_S
  • gstack-ship-preflight --policy-from head forwards to Step 5's pregate and prints up to three PREGATE_DETAIL lines with pregate's reasons when it does not pass
Changed 5
  • A head policy may only add test lanes, refusing any other difference from the trusted policy with PREGATE_HEAD_POLICY_LOOSENS and naming each difference
  • Under --policy-from head, an invalid user-owned policy now refuses with PREGATE_CONFIG_INVALID instead of being ignored behavior changed · inferred, marked in the notes below
  • A [] declaration added only on the branch is refused under --policy-from head and must be declared on the base branch first
  • --remote works with --policy-from head once the head policy check passes, still running the trusted copy's remote_gate behavior changed · inferred, marked in the notes below
  • --remote under --policy-from head is refused when there is no trusted policy at all
Fixed 2
  • gstack-ship-preflight could not pass --policy-from head, so Step 5 failed with PREGATE_NO_LANE when a PR added its own pregate lane
  • Preflight and the finish fallback ran pregate at its 600 second default timeout, causing failures for lanes of about 780 seconds
Security 1
  • A branch can no longer delete its own pregate lanes via --policy-from head, which previously took the branch's entire .gstack/pregate.json

1 change to check, marked in the notes below

From gstack

--policy-from head now only adds test lanes, and the repo can set pregate's per-process timeout. Two /ship tooling gaps cost other crews a rerun each. GEVA-2 (gstack-evals#93) had a PR that added its own pregate lane, but gstack-ship-preflight could not pass --policy-from head, so Step 5 failed with PREGATE_NO_LANE (GST-419). HARN-1 had lanes of about 780 s, while preflight and the finish fallback ran pregate at its 600 s default (GST-420). There was also a hole: --policy-from head took the branch's whole .gstack/pregate.json, so a branch could delete its own lanes. timeout_s in .gstack/pregate.json (1 to 3600 s): gstack-pregate's per-process timeout when --timeout is not passed. The remote gate gets the same value as PREGATE_TIMEOUT_S. gstack-ship-preflight --policy-from head forwards to Step 5's pregate. When pregate does not pass, preflight prints up to three PREGATE_DETAIL: lines with pregate's own reasons. A head policy may only add test lanes (PREGATE_HEAD_POLICY_LOOSENS). It may add a dependencies glob with at least one test, or add tests to a glob the trusted policy already maps. Anything else that differs from the trusted policy refuses the run and names each difference. Under --policy-from head, an invalid user-owned policy now refuses (PREGATE_CONFIG_INVALID) instead of being ignored. A [] declaration added only on the branch is refused under --policy-from head; declare it on the base branch first. --remote works with --policy-from head once that check passes, but it still runs the trusted copy's remote_gate. With no trusted policy at all, --remote under head is refused. Tests in test/pregate-head-policy.test.ts, test/ship-preflight.test.ts and test/pregate-remote.test.ts cover these changes. behavior changed · inferred

View original

Upgraded? How did it go?

Discussion