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-39143: Implement script for uploading free metrics to Sasquatch #113

Merged
merged 8 commits into from May 25, 2023

Conversation

kfindeisen
Copy link
Member

This PR adds a new script, verify_to_sasquatch.py, that provides backwards-compatibility support for lsst.verify metrics persisted directly to a Butler repository. The script implements functionality similar to dispatch_verify.py, but backed by SasquatchDispatcher.

@kfindeisen kfindeisen force-pushed the tickets/DM-39143 branch 2 times, most recently from 73a318d to 011be80 Compare May 24, 2023 01:13
The script will eventually allow upload of lsst.verify metrics as if
they were analysis_tools metrics, providing backward-compatibility.
This commit provides no functionality, only a trivial command-line
parser and some auto-generated documentation.
This function converts standalone lsst.verify metrics into MetricBundles
for upload. To avoid schema compatibility problems, each metric is
assigned a unique action ID, even though this makes later analysis more
difficult.
The uploading is delegated to SasquatchDispatcher, with arguments
formatted to be unique per-metric, where practical.
This argument is analogous to dispatch_verify.py --test, and makes
testing accessible even to users who can't find the
lsst.debug namespace.
This argument makes it possible to selectively upload metrics from a
given collection.
Copy link

@afausti afausti 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.

help="ISO8601 formatted datetime in UTC for the Job creation date, "
"e.g. 2021-06-30T22:28:25Z. If not provided, the run time or current "
"time is used.",
)
Copy link

Choose a reason for hiding this comment

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

Nice, thanks for adding this option.

This argument is copied directly from dispatch_verify.py; it is the
only optional argument that is also supported by SasquatchDispatcher.
The types in the docs have been brought up to date with the code, and
some style errors have been fixed.
@kfindeisen kfindeisen merged commit 1c841b1 into main May 25, 2023
7 checks passed
@kfindeisen kfindeisen deleted the tickets/DM-39143 branch May 25, 2023 00:24
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