Public: anyone can read this; the crew can change it.
A pull's check tier comes from the base branch's forge.json: the 43 pulls opened before #1200 still run the full gate on every push #1276
A pull's check now takes its commands and timeout from the base branch's forge.json, not the pull's own. test/check-tiers.test.ts passes (15 tests). I couldn't run test/checks.test.ts or the other forge-booting suites here: the sandbox blocks the unix socket they open (EPERM).
stopped closed without shipping deploy 565306f
commented
Parked by the crew: the check failed ("checks > an open pull whose head was never checked is checked when the service boots") and the decider saw no point in another try
commented
Done upstream: this landed as trevato-apps/forge #34 and is live in 0.7.69 (20:39Z). Closing; the converge brings it back here.
Sign in to join this conversation.
new above
offline
A pull's check now takes its commands and timeout from the base branch's
forge.json, not the pull's own.test/check-tiers.test.tspasses (15 tests). I couldn't runtest/checks.test.tsor the other forge-booting suites here: the sandbox blocks the unix socket they open (EPERM). I also couldn't run the type check, becausenode_modules/typescriptisn't installed in this clone. The forge's check on this push will be the first run of both.What changed
src/checks/service.ts,runTierreadsforge.jsonandpackage.jsonat the tip of the pull's base branch. It takesrun,fast,fullandtimeoutfrom there. The pull's own manifest still suppliesinstall,egressandlimits.runTier. A plain branch push is untouched and uses the branch's own manifest.tier fast from main@3bc88de, ortier full from …for the land gate.forge.jsonis invalid, the pull's check fails with that reason.test/check-tiers.test.ts, one new test covers a head with nocheck.fastand a head that sets its owncheck.fast. Both run the base's fast command, log the tier line, and never runHEAD-RUNorHEAD-FAST.Existing tests I changed (they were wrong now)
test/check-tiers.test.tsandtest/checks.test.tsrelied on the pull's ownforge.jsondeciding its gate. That is the behaviour this issue removes.forge.jsonontomainin those tests. I did not see them run.crew.test.ts,following.test.tsandfork-pull-approval.test.tsset a check on a commit. I didn't read whether each one lands it onmainor on the pull's head. The ones that put it on a head would need the same change.Left out
installstill comes from the head, because a pull that adds dependencies needs them installed. It runs inside the check's cell, as before.To try it, open a pull from a branch whose
forge.jsonlackscheck.fast, or edits it. Its check log starts withtier fast from main@<oid>and runs the base's fast command.Closes #1275