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-33492: Enable store of resolved DatasetRefs in QuantumGraph #262

Merged
merged 1 commit into from Aug 11, 2022

Conversation

andy-slac
Copy link
Contributor

GraphBuilder adds an option to generate UUIDs for all unresolved
references. For consistency we need to save resolved InitOutputs
in the graph, so the graph is also extended to keep per-task refs for
InitInputs and InitOutputs. InitInputs refs are also duplicated in each
Quantum, we may consider dropping them later.

Checklist

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

@codecov
Copy link

codecov bot commented Jul 12, 2022

Codecov Report

Merging #262 (ceeee4c) into main (1bee4dc) will decrease coverage by 0.00%.
The diff coverage is n/a.

❗ Current head ceeee4c differs from pull request most recent head e607be4. Consider uploading reports for the commit e607be4 to get more accurate results

@@            Coverage Diff             @@
##             main     #262      +/-   ##
==========================================
- Coverage   81.97%   81.97%   -0.01%     
==========================================
  Files          59       59              
  Lines        6075     6074       -1     
  Branches     1237     1237              
==========================================
- Hits         4980     4979       -1     
  Misses        869      869              
  Partials      226      226              
Impacted Files Coverage Δ
python/lsst/pipe/base/cmdLineTask.py 53.57% <0.00%> (-1.61%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@andy-slac andy-slac force-pushed the tickets/DM-33492 branch 2 times, most recently from 8a23226 to d19595a Compare July 14, 2022 04:05
@andy-slac andy-slac force-pushed the tickets/DM-33492 branch 2 times, most recently from 5689190 to 0da1cfa Compare August 1, 2022 21:18
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

I took a quick look at this too, but while I know my way around GraphBuilder I'm not really a substitute for @natelust looking at the QuantumGraph changes.

python/lsst/pipe/base/graphBuilder.py Outdated Show resolved Hide resolved
@andy-slac andy-slac force-pushed the tickets/DM-33492 branch 2 times, most recently from 118a0cb to 6eac3ac Compare August 3, 2022 23:04
Copy link
Contributor

@natelust natelust left a comment

Choose a reason for hiding this comment

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

One minor comment

@@ -845,6 +881,11 @@ def resolveDatasetRefs(
collectionTypes=CollectionType.RUN,
)

idMaker: Optional[_DatasetIdMaker] = None
if resolveRefs:
assert run is not None, "run cannot be None when resolveRefs is True"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is assert really the right kind of exception to raise here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's fine here, it is internal code only called from makeGraph(). makeGraph() has an explicit check that raises ValueError, here assert is mostly to keep mypy happy.

GraphBuilder adds an option to generate UUIDs for all unresolved
references. For consistency we need to save resolved InitOutputs
in the graph, so the graph is also extended to keep per-task refs for
InitInputs and InitOutputs. InitInputs refs are also duplicated in each
Quantum, we may consider dropping them later.
@andy-slac andy-slac force-pushed the tickets/DM-33492 branch 2 times, most recently from e607be4 to 7c7412a Compare August 11, 2022 06:56
@andy-slac andy-slac merged commit f95a7c4 into main Aug 11, 2022
@andy-slac andy-slac deleted the tickets/DM-33492 branch August 11, 2022 07:06
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.

None yet

3 participants