Run QA Test#
Command line#
Install the package with:
pip install siglatools
Run the following command with the correct configurations.
run_qa_test -gacp /path/to/google-api-credentials.json -ssi <spreadsheet_ids> -dbe <db_env> -sdbcu <staging_db_connection_url> -pdbcu <prod_db_connection_url>
GitHub Actions (for collaborators+ only)#
From the list of workflows, select
Manual Run QA Test.Click on the
Run workflowdropdown button.Enter a list of
spreadsheetIds, delimited by,. For examplespreadsheetId-1,spreadsheetId-2,spreadsheetId-3.Enter a database environment,
stagingorproduction. Choosestagingif you want to compare the spreadsheet(s) in step 4 with thestagingdatabase. Chooseproductionif you want to compare the spreadsheet(s) in step 4 with theproductiondatabase.Click on the green
Run workflowbutton to run the workflow.Wait until a new workflow run result shows up or refresh the page, and click on it to see its details.
On the workflow details page, once the run is finished click on the
qa-test-artifactto download a zip file.
QA Test Artifact Zip File#
The zip file contains any mismatches between the data in the GoogleSheet and the data in the database. One file for each institution, if there are mismatches between the institution in the GoogleSheet and the institution in the database. The files are organized by the spreadsheet they belong to. There is an additional file extra-institutions.csv, which contains institutions in the database, but for some reason, doesn’t have a counterpart institution in the GoogleSheet. If there are no files in the zip file, then the QA script found no mismatches for the given spreadsheets.