Repository navigation
test(update): select the build's own version as the default release target - #203944
Merged
Merged
Conversation
…arget The release CLI fixture pinned the selected release at 2026.11.6. Once main became 2026.11.7 (#203880), three cases saw a downgrade, waited for consent and prepared nothing. The default target now follows VERSION; the downgrade case uses a version that stays older.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
|
Landed as 60c1838. Main's |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 24, 2026
…arget (openclaw#203944) ## What Problem This Solves `src/update/cli.test.ts` fails on `main` (3 cases: "preserves a one-off package tag" ×2, "restarts the local Gateway after preparing an explicit package tag"). Its fixture, added in openclaw#203497, pins the selected release at `2026.11.6`. Since `main` moved to `2026.11.7` (openclaw#203880, release close-out), those cases see a downgrade, wait for downgrade consent (unanswered in the test) and prepare nothing. It turns `checks-node-changed-1` red on PRs that touch the update CLI (seen on openclaw#203925). ## Change The default selected release is the build's own `VERSION`, set before each test; the downgrade case uses `2000.1.1`, which stays older than any build. Explicit `--tag` inputs are unchanged. ## Evidence - `ocx test src/update/cli.test.ts`: 17/17 (main at 165da77: 3 failed, 14 passed). Co-authored-by: Ayaan Zaidi <[email protected]>
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.
What Problem This Solves
src/update/cli.test.tsfails onmain(3 cases: "preserves a one-off package tag" ×2, "restarts the local Gateway after preparing an explicit package tag"). Its fixture, added in #203497, pins the selected release at2026.11.6. Sincemainmoved to2026.11.7(#203880, release close-out), those cases see a downgrade, wait for downgrade consent (unanswered in the test) and prepare nothing. It turnschecks-node-changed-1red on PRs that touch the update CLI (seen on #203925).Change
The default selected release is the build's own
VERSION, set before each test; the downgrade case uses2000.1.1, which stays older than any build. Explicit--taginputs are unchanged.Evidence
ocx test src/update/cli.test.ts: 17/17 (main at 2e8c1ad: 3 failed, 14 passed).