Repository navigation
Description
Symptom
A stacked PR — one whose base is another topic branch rather than dev/release/**/main — runs
no checks. No lint, no tests, no commit-message validation, no nix flake check. It stays
completely untested until its base merges and GitHub retargets it onto the trunk.
Seen in vig-os/tessera#463 (PR #461 stacked on #460).
Cause
The scaffolded ci.yml (and codeql.yml) filter pull_request to an enumerated base list:
on:
pull_request:
branches:
- dev
- 'release/**'
- mainA PR onto feature/123-foo matches none of them, so the workflow never triggers. There is no knob:
grep DEVKIT_CI_ assets/init-workspace.sh turns up only DEVKIT_CI_RUNNER, and nothing renders the
branches: list.
The failure mode is quiet in the worst way — the PR does not show a failing check, it shows no
checks, which reads as "nothing to run" rather than "nothing was verified". Whether a required status
check can be satisfied at all then depends on repo protection settings.
Why the filter is presumably there
Almost certainly to stop double runs in the era before the concurrency group, and to avoid spending
runner minutes on intermediate refs. The first reason is now handled directly: since #1602 the
workflow has
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name != 'push' }}so a superseded stacked run cancels rather than accumulating. That removes most of the cost argument
for excluding stacked bases.
Suggested fix
Either widen the default to any base:
pull_request:
branches:
- '**'(** matches /, so it covers dev, release/** and main too; a pull_request event matches the
filter once, so this adds no duplicate runs) — or expose the list as a .vig-os key, e.g.
DEVKIT_CI_PR_BASES, defaulting to today's three entries so existing consumers are unchanged.
Widening seems right as the default: a stacked PR silently receiving zero verification is a worse
failure than spending runner minutes on it, and a consumer that wants the narrow behaviour is the one
with the unusual requirement.
If neither is wanted, the scaffold should at least document workflow_dispatch as the stacked-PR
procedure, since that is the only workaround today and it is not discoverable.
Note on the same filter in nix-check.yml
Not devkit-managed in tessera, but consumers are likely to copy the same three-entry list into their
own workflows (tessera did, and that is where its required status check lives — so the required
check was exactly the one that could never run on a stacked PR). Worth a line in the scaffold docs
either way.
Filed from vig-os/tessera, which is patching all three workflows locally in the meantime; the two
devkit-managed ones carry a REMOVE once this lands comment.
Activity
ci: give codeql and nix-check the concurrency groups the widening ass…
gerchowl commentedon Sep 28, 2026
One addition found while patching this locally: widening the trigger needs a concurrency group to
land with it, and
codeql.ymldoes not have one today.ci.ymlgot its group in #1602, but the scaffoldedcodeql.ymlhas noconcurrency:key at all. Soif the base filter is widened as proposed above without also adding a group, a force-push to a stacked
branch leaves the superseded analysis running — which is the runner-waste problem #1602 fixed,
reintroduced through the other workflow.
What worked here, mirroring
ci.yml's shape:The
!= 'push'carve-out is worth keeping rather than a baretrue: the push-to-main leg ispost-merge analysis feeding the security tab, so two merges landing quickly should each report
instead of the first being cancelled.
Consumers likely have the same gap in their own
nix flake check-style workflows — in tessera thatlane is ~40-60 min per leg across two arch legs, so it is the one where an uncancelled superseded run
actually hurts. Might be worth a line in the scaffold docs even though those files are consumer-owned.
fix: sync watermark, stacked-PR CI, prepare-time bundle, App-ID fallb…
c-vigo commentedon Sep 30, 2026
Fixed on
devby #1792 (964a49d):ci.ymlandcodeql.yml(scaffold and devkit) now accept any PR base ('**'), andcodeql.ymlgainedcodeql-${{ github.workflow }}-${{ github.ref }}concurrency withcancel-in-progress: ${{ github.event_name != 'push' }}. The trunk render no longer edits the filter. Consumers receive it with the next devkit release; downstreamREMOVE once this landspatches can go then.chore: release 1.18.0 (#1819)