Skip to content

squid: mgr/dashboard: tolerate nodeenv leaving no src directory behind - #72167

Merged
batrick merged 1 commit into
ceph:squidfrom
djgalloway:wip-nodeenv-1.11-prebuilt-chown-squid
Oct 15, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
djgalloway:wip-nodeenv-1.11-prebuilt-chown-squid

Conversation

@djgalloway

Copy link
Copy Markdown
Contributor

Backport of #72108.

nodeenv 1.11.0 (released 2026-09-26 11:29 UTC) no longer leaves the node-env/src directory behind after installing a prebuilt node. The frontend build step runs an unpinned pip install nodeenv and then chowns that directory unconditionally, so every squid build with WITH_MGR_DASHBOARD_FRONTEND (all of make check / API tests CI) currently fails:

 * Install prebuilt node (22.21.1) ..... done.
chown: cannot access '/ceph/build/src/pybind/mgr/dashboard/frontend/node-env/src': No such file or directory
ninja: build stopped: subcommand failed.

Not a clean cherry-pick: squid still creates the npm cache directory with mkdir -p and has no DEPENDS on setup-virtualenv.sh in the adjacent context lines, so those were kept as they are. The change itself (guarded chown plus comment) is identical to main.

backport tracker: https://tracker.ceph.com/issues/81012
parent tracker: https://tracker.ceph.com/issues/81011


  • this backport is a clean cherry-pick from main

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)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Sep 28, 2026
@djgalloway

Copy link
Copy Markdown
Contributor Author

Dashboard tests aren't going to pass for squid-targeted PRs due to all builders running Noble now. squid's do_cmake.sh requires Python 3.10 and backports to get it working were rejected: #67199

@batrick batrick modified the milestones: squid, v19.2.8 Sep 29, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Sep 29, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@batrick
batrick merged commit fe9eba0 into ceph:squid Oct 15, 2026
20 of 23 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Oct 15, 2026
uw-sc added a commit to cobaltcore-dev/ceph that referenced this pull request Oct 16, 2026
Backport-Id: 01a142fa-04c1-750b-8d64-fa05fea8072b
Backport-PR: #30
Upstream-PRs: ceph#72108, ceph#72167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants