Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-47143: Allow entry points to be used to discover cli plugins #1107

Merged
merged 4 commits into from
Oct 29, 2024

Conversation

timj
Copy link
Member

@timj timj commented Oct 25, 2024

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes
  • (if changing dimensions.yaml) make a copy of dimensions.yaml in configs/old_dimensions

@timj timj force-pushed the tickets/DM-47143 branch 2 times, most recently from 938c68f to 4a0ea6f Compare October 25, 2024 19:40
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 5 lines in your changes missing coverage. Please review.

Project coverage is 89.46%. Comparing base (6333457) to head (3b3ded1).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
python/lsst/daf/butler/cli/butler.py 90.38% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1107      +/-   ##
==========================================
- Coverage   89.47%   89.46%   -0.02%     
==========================================
  Files         361      361              
  Lines       47741    47787      +46     
  Branches     5794     5799       +5     
==========================================
+ Hits        42717    42752      +35     
- Misses       3640     3649       +9     
- Partials     1384     1386       +2     

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

This lets you know which plugins are costing the most start
up time (the answer is ingest-photodiode)
Otherwise it is called once to get the commands and then once
again for every single subcommand for `butler -h`. Adding a
cache shaves a second off `butler -h` runtime.
Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks great, a couple of questions.

python/lsst/daf/butler/cli/butler.py Show resolved Hide resolved
python/lsst/daf/butler/cli/butler.py Show resolved Hide resolved
python/lsst/daf/butler/cli/butler.py Show resolved Hide resolved
This is in addition to the environment variable.
The plugins return the actual commands rather than any
links to YAML files.
@timj timj merged commit ef8b14b into main Oct 29, 2024
17 of 18 checks passed
@timj timj deleted the tickets/DM-47143 branch October 29, 2024 17:47
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.

2 participants