GeezerVison is showing github.com — fix: pin Yarn version from packageManager field in remaining build scripts by asheshv · Pull Request #10175 · pgadmin-org/pgadmin4
Conversation
asheshv
commented
Jul 23, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- fix: pin Yarn version from packageManager field in build scripts #10156 fixed CI build failures caused by Yarn 4.x fetching a newer patch with different builtin compat hashes, which broke
--immutable lockfile validation, but only patched pkg/linux/build-functions.sh and the GitHub Actions workflows.
Make.bat, pkg/mac/build-functions.sh, pkg/pip/build.sh, and Dockerfile still hardcoded yarn set version 4, which is what caused the Windows Jenkins snapshot build to fail (job pgadmin4-windows-x64-snapshot Fix PEP-8 issues in various modules (RM #3121) #1669, The lockfile would have been modified by this install, which is explicitly forbidden.).
- This applies the same fix pattern: derive the Yarn version from each workspace's
package.json packageManager field instead of hardcoding a major version.
Test plan
- Windows Jenkins snapshot build succeeds
- macOS build succeeds (both runtime and web node_modules install steps)
- Docker image build succeeds
- pip package build succeeds
Summary by CodeRabbit
- Bug Fixes
- Build and packaging processes now use the Yarn version specified in the project’s
package.json packageManager field instead of a fixed Yarn version.
- Added explicit, early build failures when the Yarn version cannot be determined.
- Improved consistency across Docker, Windows, macOS, and Python package build steps by aligning Yarn setup logic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ripts
pgadmin-org#10156 fixed CI build failures caused by Yarn 4.x fetching a newer patch
with different builtin compat hashes, breaking --immutable lockfile
validation, but only patched pkg/linux/build-functions.sh and the GHA
workflows. Make.bat, pkg/mac/build-functions.sh, pkg/pip/build.sh, and
Dockerfile still hardcoded 'yarn set version 4', which is what broke the
Windows Jenkins snapshot build (job 1669).
coderabbitai
Bot
commented
Jul 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 8abe337c-799f-4ee5-8e73-bea93bb541e8
📥 Commits
Reviewing files that changed from the base of the PR and between 5f7e1bf and cf0d9bb.
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
Build configuration now derives Yarn versions from package.json across Docker, Windows, macOS, and pip packaging workflows. The scripts validate that a version is available, set Yarn to Berry, and apply the parsed version instead of hardcoding Yarn 4.
Changes
Yarn version configuration
| Layer / File(s) |
Summary |
Container Yarn configuration Dockerfile |
The app-builder stage extracts the Yarn version from package.json before configuring Yarn. |
Platform packaging Yarn configuration Make.bat, pkg/mac/build-functions.sh, pkg/pip/build.sh |
Windows, macOS, and pip builds derive and validate YARN_VERSION, then configure Yarn with the declared version instead of Yarn 4. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Possibly related PRs
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly summarizes the main change: deriving Yarn version from packageManager in the remaining build scripts. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
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.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Make.bat`:
- Around line 224-230: Clear YARN_VERSION immediately before the web-version
extraction in Make.bat lines 224-230 and again before the runtime-version
extraction in Make.bat lines 284-290. Preserve the existing empty-value
validation so each build phase fails instead of reusing a stale version from the
previous phase.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 64bc5f41-198f-4d63-82dd-71df03d1d9db
📥 Commits
Reviewing files that changed from the base of the PR and between b15c745 and 5f7e1bf.
📒 Files selected for processing (4)
Dockerfile
Make.bat
pkg/mac/build-functions.sh
pkg/pip/build.sh
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Batch variables persist for the life of the script. Without resetting
YARN_VERSION before the second FOR /f, a failed node lookup in the
runtime phase would silently fall through to the stale value set by
the earlier web phase instead of tripping the empty-value check.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|