Repository navigation
squid: mgr/dashboard: tolerate nodeenv leaving no src directory behind - #72167
Conversation
nodeenv 1.11.0 (released 2026-09-26) no longer leaves the node-env/src directory behind after installing a prebuilt node. The build step runs an unpinned `pip install nodeenv`, so as of today every build with WITH_MGR_DASHBOARD_FRONTEND fails at chown: cannot access '.../node-env/src': No such file or directory ninja: build stopped: subcommand failed. (e.g. ceph-pr-pipeline build 2504). The chown is a workaround for tarball uid mapping in containers and is only needed when the src directory exists, so skip it when there is nothing to fix up. Assisted-by: Claude Fable 5 Signed-off-by: David Galloway <[email protected]> (cherry picked from commit 5aff221) Conflicts: src/pybind/mgr/dashboard/frontend/CMakeLists.txt squid still creates the npm cache directory with "mkdir -p" and has no DEPENDS on setup-virtualenv.sh; kept those lines as they are and took only the guarded chown and its comment Signed-off-by: David Galloway <[email protected]> Assisted-by: Claude Fable 5.1 (claude-fable-5-1)
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #72167 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| c96865f mgr/dashboard: tolerate nodeenv leaving no src directory behind | PR #72108 | 5aff221 mgr/dashboard: tolerate nodeenv leaving no src directory behind |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport c96865f (cherry-pick of 5aff221)
Affected File(s)
src/pybind/mgr/dashboard/frontend/CMakeLists.txt
Range Diff
Click to expand
--- Original (5aff2216)
+++ Backport (c96865f0)
@@ -14,3 +14,13 @@
Assisted-by: Claude Fable 5
Signed-off-by: David Galloway <[email protected]>
+(cherry picked from commit 5aff2216101316107dbaa66e6b26a9afc59d5853)
+
+Conflicts:
+ src/pybind/mgr/dashboard/frontend/CMakeLists.txt
+ squid still creates the npm cache directory with "mkdir -p" and
+ has no DEPENDS on setup-virtualenv.sh; kept those lines as they
+ are and took only the guarded chown and its comment
+
+Signed-off-by: David Galloway <[email protected]>
+Assisted-by: Claude Fable 5.1 (claude-fable-5-1)
================================================================================
RANGE DIFF
================================================================================
1: 5aff2216101 ! 1: c96865f0e89 mgr/dashboard: tolerate nodeenv leaving no src directory behind
@@ Commit message
Assisted-by: Claude Fable 5
Signed-off-by: David Galloway <[email protected]>
+ (cherry picked from commit 5aff2216101316107dbaa66e6b26a9afc59d5853)
+
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/CMakeLists.txt
+ squid still creates the npm cache directory with "mkdir -p" and
+ has no DEPENDS on setup-virtualenv.sh; kept those lines as they
+ are and took only the guarded chown and its comment
+
+ Signed-off-by: David Galloway <[email protected]>
+ Assisted-by: Claude Fable 5.1 (claude-fable-5-1)
## src/pybind/mgr/dashboard/frontend/CMakeLists.txt ##
@@ src/pybind/mgr/dashboard/frontend/CMakeLists.txt: else(WITH_SYSTEM_NPM)
@@ src/pybind/mgr/dashboard/frontend/CMakeLists.txt: else(WITH_SYSTEM_NPM)
+ # nodeenv >= 1.11.0 no longer leaves the src directory behind after a
+ # prebuilt node install, so tolerate it being absent
+ COMMAND bash -c 'test ! -e ${mgr-dashboard-nodeenv-dir}/src || chown -R `id -u`:`id -g` ${mgr-dashboard-nodeenv-dir}/src'
- COMMAND ${CMAKE_COMMAND} -E make_directory ${npm-cache-dir}
- DEPENDS ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh
+ COMMAND mkdir -p ${npm-cache-dir}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ COMMENT "dashboard nodeenv is being installed")
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
Dashboard tests aren't going to pass for squid-targeted PRs due to all builders running Noble now. squid's |
|
✅ Audit Override Applied by @batrick. |
Backport-Id: 01a142fa-04c1-750b-8d64-fa05fea8072b Backport-PR: #30 Upstream-PRs: ceph#72108, ceph#72167
Backport of #72108.
nodeenv 1.11.0 (released 2026-09-26 11:29 UTC) no longer leaves the
node-env/srcdirectory behind after installing a prebuilt node. The frontend build step runs an unpinnedpip install nodeenvand then chowns that directory unconditionally, so every squid build withWITH_MGR_DASHBOARD_FRONTEND(all ofmake check/ API tests CI) currently fails:Not a clean cherry-pick: squid still creates the npm cache directory with
mkdir -pand has noDEPENDSonsetup-virtualenv.shin the adjacent context lines, so those were kept as they are. The change itself (guardedchownplus comment) is identical to main.backport tracker: https://tracker.ceph.com/issues/81012
parent tracker: https://tracker.ceph.com/issues/81011