ci: selected upgrade-acceptance is skipped by its nightly-only dependency
Problem
upgrade-acceptance is selected for src/** changes, but it can still be skipped on push/PR runs.
Evidence on #2630's head 40b1d3e6: CI preflight succeeded, the upgrade suite was selected because the PR touches src/**, but upgrade-acceptance was reported as skipped.
Mechanism:
.github/workflows/master.ymldefinesupgrade-acceptancewithneeds: [quality, seekdb-managed-startup, tests].seekdb-managed-startuponly runs forschedule/workflow_dispatch, so it is skipped on ordinarypushandpull_requestevents.- Because it is a hard
needsdependency,upgrade-acceptancecan be skipped even whenquality.outputs.suites.upgrade == true. Upgrade release gatethen seesUPGRADE_SELECTED=trueandUPGRADE_RESULT=skipped, and fails with a message about the selected acceptance workflow.
This is a separate issue from the #2826 incident, where CI preflight itself failed
because of the stale persistence digest. #2901 tracks that merge-gating and failure
attribution problem. In the #2826 case, upgrade-acceptance would have been skipped
regardless of the nightly dependency because quality failed. The mechanism described
above is still real and was confirmed on a green-preflight run.
Requested fix
Make the selected acceptance job independent of the nightly-only
seekdb-managed-startup prerequisite. Options include:
- Remove
seekdb-managed-startupfromupgrade-acceptance.needsand track it as a separate nightly priority diagnostic. - If the dependency must remain, use an explicit status-check condition that accepts
skippedonly for events where the nightly job is not expected and still requiressuccessfor scheduled runs, so a selectedupgrade-acceptanceactually executes.
The important invariant is: when quality.outputs.suites.upgrade is true,
upgrade-acceptance must execute and its digest/upgrade gate assertions must run,
not be replaced by a skipped dependency.
Related
- #2901: a red
CI preflightdid not block the merge, so a stale persistence digest reached master in #2826.
One correction to the evidence above, plus a cross-reference.
The #2826 sentence does not hold as written. On 64bc6136 the skip did not come from seekdb-managed-startup: CI preflight itself was failure. make check includes upgrade-policy-check → scripts/upgrade_release_gate.py, which fails deterministically at that commit because persistence_sha256 was stale (reproduced locally on that tree: Persistence changed (file set or content; CRLF/LF normalized), exit 1). With needs.quality.result == 'success' false, upgrade-acceptance was skipped regardless of the nightly dependency, and the whole tests suite was skipped as well.
The mechanism described here is still real, it is just not visible on that commit: on #2630's head 40b1d3e6, CI preflight = success while upgrade-acceptance = skipped, with the upgrade suite selected by src/**. So this fix remains worth doing.
Filed #2901 for the part this issue does not cover: the digest guard already runs inside make check, but a red CI preflight did not block the merge, and Upgrade release gate reports "selected parallel acceptance workflow" even when the real cause is an upstream preflight failure.
I d like to take it
Closing after checking the cited run and a non-cancelled control run.
- The cited run at
40b1d3e6was 46137382885, whose overall conclusion iscancelledbecause a newer push created 46138769509. In a cancelled run,upgrade-acceptanceis reported as skipped because it never started, not becauseseekdb-managed-startupwas skipped. - The non-cancelled control at
3179ad721was 46131157982:seekdb-managed-startupwas skipped, whileupgrade-acceptanceran all selected SQLite upgrade cases andUpgrade release gatesucceeded.
So the hard needs dependency did not suppress upgrade-acceptance in the observed push/PR workflow. I cannot reproduce the mechanism described here. Reopening/redirecting #2901 remains appropriate for the separate merge-gating and failure-attribution problem.