Repository navigation
fix: exercise selected release context in resume tests - #187339
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
This was referenced Oct 29, 2026
Contributor
Author
|
Fixed: release-context resume tests now select and mutate their intended branch or tag. |
shannon0430
added a commit
to shannon0430/openclaw
that referenced
this pull request
Oct 29, 2026
Apply the official merged repair from openclaw#187339 unchanged. (cherry picked from commit 2306199)
shannon0430
added a commit
to shannon0430/openclaw
that referenced
this pull request
Oct 29, 2026
Apply the official merged repair from openclaw#187339 unchanged. (cherry picked from commit 2306199)
This was referenced Oct 29, 2026
alkor2000
pushed a commit
to alkor2000/openclaw
that referenced
this pull request
Oct 29, 2026
Exercise the selected release branch or tag through the existing CLI fixture and verify the retained context before resume. Fixes openclaw#187326
This was referenced Oct 29, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 30, 2026
Exercise the selected release branch or tag through the existing CLI fixture and verify the retained context before resume. Fixes openclaw#187326
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.
Fixes #187326
What Problem This Solves
The release-context resume table passes an unsupported
releaseReffixture option, which fails test type checking. Its tag case also mutates a tag named after the fixture's default branch while the retained request still selects that unchanged branch, so resume succeeds instead of exercising tag-reassignment rejection.User Impact
This repairs CI coverage of the existing release resume behavior. The branch and tag cases now exercise the context each row selects. Production release behavior, permissions, dispatch policy and configuration are unchanged.
Why This Change Was Made
The fixture already supports explicit target context. The table disables the default target-ref argument, supplies its selected ref to the real CLI, and passes that same ref to the preparation and mutation callbacks. An assertion checks the retained request's context before resume. Existing rejection assertions, fixture cleanup and the remote-only branch-descendant control remain intact; no fixture API or repository cache change is needed.
Evidence
At 07bd3ef, the original test-types job reports TS2353 for the unsupported option. The original runtime job runs the complete candidate file: the tag case receives status
0instead of1, while the branch-negative and remote-descendant controls pass.Candidate validation passes changed-file formatting and lint plus the affected root scripts type graph. Both complete candidate and sibling test files pass all 126 cases in one tooling shard (119.98 seconds). This includes the selected retained-context assertions, both refusal paths, admission-only dispatch and empty temporary refs, fixture cleanup, and the preserved remote-only descendant success case. Hosted CI and both required reviews passed on the PR head.