Skip to content

Conversation

@rohityadavcloud
Copy link
Member

@rohityadavcloud rohityadavcloud commented Jul 22, 2025

This fixes UI build, so it can build against nodejs 20.x/LTS.

Tested on macOS 15 and Ubuntu 25.04.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

This fixes UI build, so it can build against nodejs 20.x/LTS.

Signed-off-by: Rohit Yadav <[email protected]>
@rohityadavcloud
Copy link
Member Author

This could be moved to 4.22 as this isn't urgent. cc @sureshanaparti

@blueorangutan ui

@blueorangutan
Copy link

@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.36%. Comparing base (6ad9296) to head (6cfc24c).
⚠️ Report is 255 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11259      +/-   ##
============================================
+ Coverage     16.57%   17.36%   +0.78%     
- Complexity    14057    15234    +1177     
============================================
  Files          5772     5886     +114     
  Lines        512939   525680   +12741     
  Branches      62305    64159    +1854     
============================================
+ Hits          85033    91260    +6227     
- Misses       418425   424120    +5695     
- Partials       9481    10300     +819     
Flag Coverage Δ
uitests 3.63% <ø> (-0.27%) ⬇️
unittests 18.40% <ø> (+0.92%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/11259 (QA-JID-677)

@DaanHoogland
Copy link
Contributor

@rohityadavcloud can we include updates of nodejs packages? lots of them have updates and the dependabot updates never pass any CI.

@rohityadavcloud
Copy link
Member Author

I think so @DaanHoogland - as nodejs/npm are simply the build tools and dev-dependencies are also used for building purposes and not used in the exported artifacts. I would suggest we hold this, and include for 4.22 instead.

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

let's merge after 4.21 release

Copy link
Contributor

@harikrishna-patnala harikrishna-patnala left a comment

Choose a reason for hiding this comment

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

Tested on my local mac machine and I could run UI locally. I had to set this as mentioned in the PR "export NODE_OPTIONS=--openssl-legacy-provider"

LGTM

@harikrishna-patnala harikrishna-patnala merged commit d9abc07 into apache:main Sep 23, 2025
26 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Apache CloudStack 4.22.0 Sep 23, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Oct 17, 2025
* ui: fix build on latest Ubuntu and macOS

This fixes UI build, so it can build against nodejs 20.x/LTS.

Signed-off-by: Rohit Yadav <[email protected]>

* Update ui/package.json

---------

Signed-off-by: Rohit Yadav <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants