powermem icon indicating copy to clipboard operation
powermem copied to clipboard

ci: selected upgrade-acceptance is skipped by its nightly-only dependency

Open NeverENG opened this issue 5 days ago • 3 comments

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.yml defines upgrade-acceptance with needs: [quality, seekdb-managed-startup, tests].
  • seekdb-managed-startup only runs for schedule / workflow_dispatch, so it is skipped on ordinary push and pull_request events.
  • Because it is a hard needs dependency, upgrade-acceptance can be skipped even when quality.outputs.suites.upgrade == true.
  • Upgrade release gate then sees UPGRADE_SELECTED=true and UPGRADE_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:

  1. Remove seekdb-managed-startup from upgrade-acceptance.needs and track it as a separate nightly priority diagnostic.
  2. If the dependency must remain, use an explicit status-check condition that accepts skipped only for events where the nightly job is not expected and still requires success for scheduled runs, so a selected upgrade-acceptance actually 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 preflight did not block the merge, so a stale persistence digest reached master in #2826.

NeverENG avatar Nov 28 '26 11:11 NeverENG

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.

AlexStocks avatar Nov 28 '26 11:11 AlexStocks

I d like to take it

NeverENG avatar Nov 28 '26 11:11 NeverENG

Closing after checking the cited run and a non-cancelled control run.

  • The cited run at 40b1d3e6 was 46137382885, whose overall conclusion is cancelled because a newer push created 46138769509. In a cancelled run, upgrade-acceptance is reported as skipped because it never started, not because seekdb-managed-startup was skipped.
  • The non-cancelled control at 3179ad721 was 46131157982: seekdb-managed-startup was skipped, while upgrade-acceptance ran all selected SQLite upgrade cases and Upgrade release gate succeeded.

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.

NeverENG avatar Nov 28 '26 11:11 NeverENG