Repository navigation
ci(release): allow explicit publication without upgrade acceptance - #2248
Merged
hidb4ai merged 1 commit intoOct 26, 2026
Merged
Conversation
hidb4ai
requested review from
AlexStocks,
PsiACE and
zhanghuidinah
as code owners
October 26, 2026 13:41
hidb4ai
pushed a commit
that referenced
this pull request
Oct 27, 2026
…SHA (#2256) Since #2248 the parallel upgrade gate identifies the checkout by PC_UPGRADE_SOURCE_SHA and falls back to GITHUB_SHA, and upgrade-release.yml exports PC_UPGRADE_SOURCE_SHA to every step. The checkout case of test_parallel_workers_reject_changed_preparation_inputs changes only GITHUB_SHA, so inside the upgrade acceptance job the identity the gate reads stays the same and no GateError is raised. Locally and in the unit test job the variable is unset, the gate falls back to GITHUB_SHA, and the case passes. The parallel_reports fixture now unsets the variable, so these tests model an unpinned checkout in any environment and keep covering the GITHUB_SHA fallback. The pinned path stays covered by test_manual_release_evidence_tracks_target_checkout_not_workflow_commit, which sets both variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Follow-up to #2245 and the blocked v1.4.1 release run. Related upgrade acceptance contract: #2168 and #2181.
Rationale for this change
A published Release can need package publication before database upgrade acceptance is complete. Add an explicit manual path for new-database-only publication while preserving the default upgrade gate. This can publish the existing
powercontext-v1.4.1tag without moving it or packaging unrelated changes from the default branch.What changes are included in this PR?
release_tagandskip_upgrade_acceptance(defaultfalse) to manual dispatch of the existing Release workflow. Manual publication must run from the default branch, resolves the selected tag to an immutable checkout, and snapshots current GitHub Release notes.upgrade-requiredin the target policy. The bypass recordsupgrade_acceptance: skipped, the actor/run/commit, and artifact hashes.Are there any user-facing changes?
After merging, add this exact notice to the existing GitHub Release body:
Then run from the default branch:
Existing-database upgrades remain unsupported by this publication path. This PR does not change migration behavior or claim upgrade acceptance.
How was this change tested?
pytest -q tests/test_ci_release_verification.py tests/test_upgrade_release_gate.py tests/test_upgrade_publication.py: 144 passed, 1 skipped.pytest -q tests/test_release_version.py: 12 passed.make release-check VERSION=1.4.1: passed.8ef4f645). Real sdist rebuild and wheel comparison passed; the isolated installed package passed CLI, Server, MCP, and SQLite Memory smoke validation on Python 3.14.6.prek run -a: all formatting/lint/config checks passed.ty checkstill reports unresolvedtaskintests/e2e/cross_host_work_continuity/fixtures/verify.pyandscripts.upgrade_database_probeintests/test_upgrade_schema_equivalence.py; both were independently reproduced on the unmodified v1.4.1 tag.AI usage statement
Implemented and validated with OpenAI Codex.