Skip to content

pybind/mgr/dashboard: prevent installing grpc-tools every time when running ninja#61954

Closed
zhscn wants to merge 1 commit intoceph:mainfrom
zhscn:fix-cmake
Closed

pybind/mgr/dashboard: prevent installing grpc-tools every time when running ninja#61954
zhscn wants to merge 1 commit intoceph:mainfrom
zhscn:fix-cmake

Conversation

@zhscn
Copy link
Copy Markdown
Member

@zhscn zhscn commented Feb 21, 2025

It seems the globstar matching symbol causes it to always be executed when running Ninja. Let's set it explicitly.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

…unning ninja

Signed-off-by: Zhang Song <zhangsong02@qianxin.com>
@zhscn zhscn requested a review from a team as a code owner February 21, 2025 07:20
@zhscn zhscn requested review from Pegonzal and ivoalmeida and removed request for a team February 21, 2025 07:20
@zhscn
Copy link
Copy Markdown
Member Author

zhscn commented Feb 23, 2025

jenkins test make check

@nizamial09
Copy link
Copy Markdown
Member

@pecastro @epuertat fyi

Copy link
Copy Markdown
Member

@epuertat epuertat left a comment

Choose a reason for hiding this comment

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

@pecastro please have a look at this and coordinate with your PR #61967

Comment on lines +4 to +6
set(GRPC_TOOLS_DIR ${CEPH_GRPC_VIRTUALENV}/lib/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages/grpc_tools)

message(STATUS "install grpc-tools into ${GRPC_TOOLS_DIR}")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The truth is that we don't even need to handle this (CC: @pecastro). The installation of grpc* stuff should be done via BuildRequires/Debian-equivalent. And this tool is invoked through python3 -m grpcio_tools.protoc, so same thing.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2025

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@zhscn
Copy link
Copy Markdown
Member Author

zhscn commented Mar 5, 2025

It seems that a better solution is underway, so I will close this PR.

@zhscn zhscn closed this Mar 5, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Ceph-Dashboard Mar 5, 2025
@zhscn zhscn deleted the fix-cmake branch June 26, 2025 06:45
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