Skip to content

Upgrade to Yarn v4#576

Merged
ferhoyos merged 6 commits intokiali:mainfrom
ferhoyos:yarn-upgrade
Mar 25, 2026
Merged

Upgrade to Yarn v4#576
ferhoyos merged 6 commits intokiali:mainfrom
ferhoyos:yarn-upgrade

Conversation

@ferhoyos
Copy link
Collaborator

@ferhoyos ferhoyos commented Mar 9, 2026

Describe the change

Migrates the frontend from Yarn 1 (Classic) to Yarn 4 (Berry), managed via corepack.

To use yarn 4 you need to enable corepack (ships with Node.js)

corepack enable

Then you can run yarn install as usual.

Key Changes

  • Yarn version: 1.22.x → 4.12.0
  • Version management: Global install → corepack + packageManager field
  • Install command flag: --frozen-lockfile → --immutable
  • Linker mode: node_modules (not PnP, for react-scripts compatibility)

Steps to test the PR

Verify CI tests pass

Issue reference

Closes kiali/kiali#9111

@ferhoyos ferhoyos self-assigned this Mar 9, 2026
@ferhoyos ferhoyos moved this from 📋 Backlog to 🏗 In progress in Kiali Sprint 26-04 | Kiali v2.24 Mar 9, 2026
@ferhoyos ferhoyos requested a review from jshaughn March 10, 2026 09:56
@ferhoyos ferhoyos moved this from 🏗 In progress to 👀 In review in Kiali Sprint 26-04 | Kiali v2.24 Mar 10, 2026
@ferhoyos ferhoyos marked this pull request as ready for review March 10, 2026 09:56
@ferhoyos ferhoyos added the backport needed Issue PRs require backport to versions specified in comments label Mar 10, 2026
jshaughn
jshaughn previously approved these changes Mar 10, 2026
Copy link
Contributor

@jshaughn jshaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to build with the updated yarn4, Kiali/OSSMC working. Looks good!

@ferhoyos ferhoyos requested a review from hhovsepy March 25, 2026 09:50
Copy link
Contributor

@jshaughn jshaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG!

@ferhoyos ferhoyos merged commit 7914d53 into kiali:main Mar 25, 2026
2 checks passed
@ferhoyos ferhoyos deleted the yarn-upgrade branch March 25, 2026 16:19
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Kiali Sprint 26-04 | Kiali v2.24 Mar 25, 2026
@ferhoyos ferhoyos added the backport completed Issue PRs have been backported label Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport completed Issue PRs have been backported backport needed Issue PRs require backport to versions specified in comments

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Migrate from Yarn v1 to Yarn v4

2 participants