Skip to main content

Upload QA metrics for LSST Data Management.

Project description


Upload QA measurements from tools like validate_drp to the SQuaSH database and web app. post-qa is meant to run in a CI workflow, like LSST Data Management’s Jenkins CI.


pip install post-qa

Command Line Interface

usage: post-qa [-h] --lsstsw LSSTSW_DIRNAME --qa-json QA_JSON_PATH --api-url
               API_URL --api-user API_USER --api-password API_PASSWORD
               [--metrics [ACCEPTED_METRICS [ACCEPTED_METRICS ...]]] [--test]

Upload JSON from validate_drp to the SQuaSH API's
job ingest endpoint, usually ``/api/jobs/``.

This script is meant to be run from a Jenkins CI environment
and uses the following environment variables:

- ``BUILD_ID`` : ID in the ci system
- ``BUILD_URL``: ci page with information about the build
- ``PRODUCT``: the name of the product built, in this case 'validate_drp'
- ``dataset``: the name of the dataset processed by validate_drp
- ``label`` : the name of the platform where it runs

optional arguments:
  -h, --help            show this help message and exit
                        Path of lsstsw directory
  --qa-json QA_JSON_PATH
                        Filename of QA JSON output file
  --api-url API_URL     URL of SQuaSH API endpoint for job submission
  --api-user API_USER   Username for SQuaSH API
  --api-password API_PASSWORD
                        Password for SQuaSH API
                        List metric names to upload (e.g., --metrics AM1 PA1)
  --test                Print the shimmed JSON rather than uploading it

License Info

Copyright 2016 AURA/LSST

MIT licensed open source.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for post-qa, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size post_qa-1.3.0-py2-none-any.whl (11.8 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size post_qa-1.3.0-py3-none-any.whl (11.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size post-qa-1.3.0.tar.gz (9.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page