Skip to content

WIP: Recommission DB upload via script and GUI.

Karol Krizka requested to merge dbuplaod into master

Changes to upload code

  • Move uploadPWBTests.py to pbv3_upload_tests.py and add to setup.
  • Move uploading code to a pbv3_upload_tests.upload_test_result_file function.
  • Revamp how CONFIG versioning is done. The DB now tries to match an attached config file against existing entries in the DB. If properties match up, then the major version is used. If the parameters also match up, the minor version is used. If one of them does not match, then the next available number is used for that field.
  • Add --institution option to pbv3_upload_tests.

Changes to GUI

  • Add pbv3parser.ResultsParser that looks for result files in the output and stores them in a list.
  • Add testing.uploadResults that uploads the results from the current tab. Results are specified by self.panel.results (instance of pbv3parser.ResultsParser).
  • Add dbupload-button that calls uploadResults.
  • Differentiate error vs done states for a test process based on return code.
  • The dbupload-button is enabled only when a test reaches the done stage.

Merge request reports