Skip to content

test(update): select the build's own version as the default release target - #203944

Merged
obviyus merged 1 commit into
mainfrom
test-update-cli-version-fixture
Nov 23, 2026
Merged

obviyus merged 1 commit into
mainfrom
test-update-cli-version-fixture

Conversation

@obviyus

@obviyus obviyus commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

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 #203497, pins the selected release at 2026.11.6. Since main moved to 2026.11.7 (#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 #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 2e8c1ad: 3 failed, 14 passed).

…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.
@clawsweeper

clawsweeper Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@obviyus
obviyus merged commit 60c1838 into main Nov 23, 2026
101 checks passed
@obviyus

obviyus commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 60c1838. Main's src/update/cli.test.ts failures (3 cases) are fixed; the release CLI fixture now selects the build's own version, so release bumps no longer turn these cases into downgrades.

@obviyus
obviyus deleted the test-update-cli-version-fixture branch November 23, 2026 05:36
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]>
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.

1 participant