Repository navigation
Conversation
|
Warning Review limit reachedNext included review available in 8 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
getHourlyBuildIdentitygains an optionalpackageVersionseam —config/scripts/hourly-build-version.mjs:82now accepts{ packageVersion, publishedVersions, releaseNames }and falls back to readingpackage.jsononly when it is omitted, so the CLI entry and every ordinary caller keep their exact behavior.- Historical tests inject the version instead of mocking
node:fs—config/scripts/hourly-build-version.test.mjs:136,154supplypackageVersion: '1.4.201'and'1.4.214', removing the partialreadFileSyncmock and the coupling to the repo's drifting version. - New package-as-floor case —
config/scripts/hourly-build-version.test.mjs:154pins that a newer package version stays the hourly base even when the published tags are older, asserting bothversionandbuildNumberexactly.
The seam mirrors the injection style already used in this module family (resolveDevChannelBaseVersion(packageVersion, …), readPublishedVersionsFromEnv(value)), and the first case is genuinely discriminating: with the injection removed the real package.json (1.4.214) would change the expected 1.4.203, so the test would fail rather than silently pass. I ran the focused suite at head — 17 tests pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
A historical hourly-build test started failing when the repository version advanced past its fixture. Pin the historical package input so releases cannot change that test's result.
What Changed
The test supplies package version
1.4.201for its historical unpublished-release scenario and retains the exact1.4.203version and build-number assertions. A second case verifies that package version1.4.214remains the minimum even when published tags are older.Why
The production calculation correctly treats the package version as a minimum. Updating the expected historical result on every release would lose the original regression coverage. The existing build-identity options now accept an explicit package version; ordinary callers still read package.json.
Linked Issue
None. Found in current CI on #23054, #23062, and #23270.
Visual Proof
N/A — test input isolation only.
Testing
1.4.214.ORCA_BACKGROUND_LAUNCH=1.Review
Both cases call the actual build-identity function with explicit package versions. Omitted input still reads package.json, including its existing failure when the file is missing. No module mocks or relaxed assertions are used.
Agent skill upstream boundary
Notes
Existing build-command behavior, platform support, SSH, and workspace handling are unchanged. No application was launched.
Checklist