GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@asheshv asheshv commented Jul 23, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@asheshv
fix: pin Yarn version from packageManager field in remaining build sc…
5f7e1bf
…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

coderabbitai Bot commented Jul 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

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)
  • Make.bat
🚧 Files skipped from review as they are similar to previous changes (1)
  • Make.bat

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

  • pgadmin-org/pgadmin4#10156: Updates build scripts to derive and validate YARN_VERSION from packageManager.
🚥 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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Jul 23, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread Make.bat Resolved

Uh oh!

There was an error while loading. Please reload this page.

@asheshv
fix: clear YARN_VERSION before each extraction in Make.bat
cf0d9bb
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.
@asheshv
asheshv merged commit 1993109 into pgadmin-org:master Jul 23, 2026
34 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@asheshv
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.