Skip to content

fix: exercise selected release context in resume tests - #187339

Merged
shakkernerd merged 1 commit into
mainfrom
ci-release-context-fixture
Oct 29, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
ci-release-context-fixture

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #187326

What Problem This Solves

The release-context resume table passes an unsupported releaseRef fixture 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 0 instead of 1, 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.

@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@shakkernerd shakkernerd self-assigned this Oct 29, 2026
@shakkernerd
shakkernerd merged commit 2306199 into main Oct 29, 2026
84 checks passed
@shakkernerd
shakkernerd deleted the ci-release-context-fixture branch October 29, 2026 05:13
@shakkernerd

Copy link
Copy Markdown
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)
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: release-tag resume test uses branch context and fails CI

1 participant