Skip to content

Conversation

@tamirkamara
Copy link
Collaborator

@tamirkamara tamirkamara commented Feb 2, 2026

resolves #4838

What is being addressed

Yarn is no longer a part of the base image we use in the devcontainer.

How is this addressed

  • This is a suggestion to switch to npm as that is now pretty comparable.

p.s. I'm not really a frontend person and this is purely based on ai recommendation.

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

Unit Test Results

241 tests   241 ✅  24s ⏱️
 27 suites    0 💤
  1 files      0 ❌

Results for commit 82549ba.

♻️ This comment has been updated with latest results.

@tamirkamara
Copy link
Collaborator Author

/test

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/21598012046 (with refid d02ba082)

(in response to this comment from @tamirkamara)

@tamirkamara tamirkamara marked this pull request as ready for review February 2, 2026 16:20
@tamirkamara tamirkamara requested a review from a team as a code owner February 2, 2026 16:20
Copilot AI review requested due to automatic review settings February 2, 2026 16:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses the issue that yarn is no longer included in the base devcontainer image by switching the UI build process from yarn to npm.

Changes:

  • Updated UI version from 0.8.24 to 0.8.25 (patch version bump)
  • Modified build script to use npm commands instead of yarn
  • Removed package-lock.json from .gitignore to allow npm lockfile tracking

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 1 comment.

File Description
ui/app/package.json Version bumped to 0.8.25 following patch versioning for bug fix
devops/scripts/build_deploy_ui.sh Replaced yarn install/build commands with npm equivalents
CHANGELOG.md Added entry documenting the switch from yarn to npm
.gitignore Removed package-lock.json ignore rule to track npm lockfile

Copy link
Member

@marrobi marrobi left a comment

Choose a reason for hiding this comment

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

Im good with this if it doesn't break anything.

Copy link
Collaborator

@JC-wk JC-wk left a comment

Choose a reason for hiding this comment

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

I don't have any problem with switching in general pnpm is another or even bun but npm is a safe default. Have a search for yarn in the codebase, there are a few other files to change.

Image

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/21598012046 (with refid d02ba082)

(in response to this comment from @tamirkamara)

@tamirkamara
Copy link
Collaborator Author

Right @JC-wk. Do you want to assist?

@marrobi
Copy link
Member

marrobi commented Feb 2, 2026

@copilot fix and test these in line with the PR

image

Copy link
Contributor

Copilot AI commented Feb 2, 2026

@marrobi I've opened a new pull request, #4839, to work on those changes. Once the pull request is ready, I'll request review from you.

@marrobi
Copy link
Member

marrobi commented Feb 2, 2026

@tamirkamara @JC-wk I've got copilot to do the rest. Needs reviewing/testing, but looks good to me.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 15 changed files in this pull request and generated 2 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@marrobi
Copy link
Member

marrobi commented Feb 2, 2026

/test

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/21600914981 (with refid d02ba082)

(in response to this comment from @marrobi)

@marrobi
Copy link
Member

marrobi commented Feb 2, 2026

@tamirkamara @JC-wk tests pass. Suggest we get it merged.

@tamirkamara
Copy link
Collaborator Author

/test

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/21603972539 (with refid d02ba082)

(in response to this comment from @tamirkamara)

@JC-wk
Copy link
Collaborator

JC-wk commented Feb 3, 2026

I will give this a try and report back

Copy link
Collaborator

@JC-wk JC-wk left a comment

Choose a reason for hiding this comment

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

All good

@marrobi
Copy link
Member

marrobi commented Feb 3, 2026

/test-force-approve

Passed: https://github.com/microsoft/AzureTRE/actions/runs/21600914981

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 82549ba)

(in response to this comment from @marrobi)

@marrobi marrobi merged commit 936049f into main Feb 3, 2026
13 of 14 checks passed
@marrobi marrobi deleted the tamirkamara/yarn-to-npm branch February 3, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Yarn no longer installed in devcontainer

4 participants