Repository navigation
Client version tests: keep the raised minimums above this release - #2219
Merged
Merged
Conversation
The shared client-version fixture raised every app to 1.2.0 in its `raised`, `next` and `security` answers, as a minimum newer than this app. The web app's and the phone app's tests run those answers as the tree's own release, so on a tree whose package.json says 1.2.0 the app is no longer below the minimum and three tests failed in the 1.2.0 release run. The raised minimums are now 9.0.0, above any release of this line, and the tests that name the minimum follow. The cases decide the same: below the minimum is refused, at it is served.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 25, 2026 22:29
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 broke
The 1.2.0 Publish release run (https://github.com/CopilotKit/OpenBot/actions/runs/45711156767) runs the full suite on a tree whose package.json says 1.2.0, and three tests failed:
app/tests/client-version-gate.test.tsx: "an OpenBot whose oldest web app is newer than this one: Update OpenBot, before sign-in"mobile/tests/generated-client.test.ts: "before sign-in the app reads the deployment and decides: ..."mobile/tests/generated-client.test.ts: "an OpenBot that raised the phone app's minimum for a security problem says so, ..."Why
shared/fixtures/client-version/cases.jsonraised every app to 1.2.0 in itsraised,nextandsecurityanswers, as a minimum newer than this app. The web app's and the phone app's tests run those answers as the tree's own release (package.json). At 1.1.3 the app is below 1.2.0 and is refused; at 1.2.0 it is at the minimum and is served, so the tests saw "ok" where they expect "Update OpenBot". Main passes today only because it still says 1.1.3, and it gets 1.2.0 when the release merges back.The change
$commentsays why the number is that high.belowMinimumtest, and the two log lines in Desktop's connected-address test (desktop/src-tauri/src/connected/address.rs, inside its#[cfg(test)]module).main.rsalready sets its minimum above whatever the build is, and Desktop's other fixture tests run as 1.1.0, so they need nothing.release/1.2as on main, so the commit cherry-picks cleanly.Red, then green
With package.json set to 1.2.0 locally (not committed), on main's code:
With this change, each fixture reader at each version:
bun run lintandbun run format:checkpass. The Rust tests run in this PR's CI.