Skip to content

DM-55320: Add a feature to prune unanchored quanta in qgraph building#367

Merged
hsinfang merged 1 commit into
mainfrom
tickets/DM-55320
Jul 8, 2026
Merged

DM-55320: Add a feature to prune unanchored quanta in qgraph building#367
hsinfang merged 1 commit into
mainfrom
tickets/DM-55320

Conversation

@hsinfang

@hsinfang hsinfang commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Expose the prune_unanchored_quanta parameter of QuantumGraphBuilder as
a CLI option.  Accept a SOURCE:ANCHOR colon-separated pair of task
labels; source quanta with no reachable anchor quantum downstream are
removed along with their entire downstream chain.

This will replace lsst.ap.pipe.prune_orphan_preloads, a script that
patched the quantum graph after build to remove loadDiaCatalogs
quanta with no downstream associateApdb quantum as they have no
template coverage. Example:
  pipetask qgraph ...
    --prune-unanchored-quanta loadDiaCatalogs:associateApdb
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.41%. Comparing base (e114a2b) to head (5648007).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
python/lsst/ctrl/mpexec/cli/opt/options.py 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
+ Coverage   86.36%   86.41%   +0.04%     
==========================================
  Files          44       44              
  Lines        2633     2657      +24     
  Branches      271      273       +2     
==========================================
+ Hits         2274     2296      +22     
- Misses        256      257       +1     
- Partials      103      104       +1     

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

@hsinfang
hsinfang force-pushed the tickets/DM-55320 branch from 5648007 to f8b3ca8 Compare July 8, 2026 22:53
@hsinfang
hsinfang merged commit d45bce2 into main Jul 8, 2026
21 checks passed
@hsinfang
hsinfang deleted the tickets/DM-55320 branch July 8, 2026 22:59
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