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-30771: Allow components to be missing in datastore trust mode #537

Merged
merged 1 commit into from Jun 17, 2021

Conversation

timj
Copy link
Member

@timj timj commented Jun 16, 2021

When disassembling a composite we can't assume that all components
will exist. In trust mode assume that any components found means
that these should be passed on to the assembler.

Checklist

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

Copy link
Contributor

@MichelleGower MichelleGower left a comment

Choose a reason for hiding this comment

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

Just a question about a comment in the code. Ran a quick bps test turning back on disassembly for pipelines_check and it worked. Changes approved for merging.

@@ -584,6 +584,20 @@ def _prepare_for_get(self, ref: DatasetRef,

if len(fileLocations) > 1:
disassembled = True

# If trust is involved it is possible that there will be too
# many components listed here. We need to explicitly check
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this first sentence. Is it because some components appear in the execution butler because it has everything for the run but some components will not be written until a later Quantum execution? The rest of the comment and the code makes sense.

Copy link
Member Author

Choose a reason for hiding this comment

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

Registry has no concept of components so nothing in registry can tell me whether all components were written or only some of them. On read if you ask for a calexp.wcs it will know to look for exactly the wcs component so will fail or not depending on the presence of the file.

When disassembling a composite we can't assume that all components
will exist. In trust mode assume that any components found means
that these should be passed on to the assembler.
@timj timj merged commit 0fc6651 into master Jun 17, 2021
@timj timj deleted the tickets/DM-30771 branch June 17, 2021 00:26
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

2 participants