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

[ORCA-175] Adds SuiteStatus #38

Merged
merged 4 commits into from
Jun 13, 2023
Merged

Conversation

BWMac
Copy link
Contributor

@BWMac BWMac commented Jun 9, 2023

This PR is the first half of the py-dcqc changes needed to accomplish ORCA-175 (second half added in #39). It adds the enum SuiteStatus, and makes changes to SuiteABC to apply this status based on the results of all of the component tests in a suite. It also updates The tests and example files needed to run those tests for the new changes. The new SuiteStatus statuses include:

  • NONE - status has yet to be evaluated
  • GREEN - All tests required or otherwise either passed or were skipped
  • RED - At least one required test failed
  • AMBER - All required tests either passed or were skipped AND at least one non-required test failed

The application of this status has been tested in nf-dcqc and behaves as expected.

@swarmia
Copy link

swarmia bot commented Jun 9, 2023

@BWMac BWMac changed the title adds SuiteStatus and applies changes as needed [ORCA-175] Adds SuiteStatus Jun 9, 2023
@BWMac BWMac marked this pull request as ready for review June 9, 2023 15:58
@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Merging #38 (8c0fe13) into main (c1a4a0e) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #38   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        22    +1     
  Lines         1044      1090   +46     
  Branches       170       178    +8     
=========================================
+ Hits          1044      1090   +46     
Impacted Files Coverage Δ
src/dcqc/suites/suite_abc.py 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

Copy link
Contributor

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 great work! Just a minor nit - I haven't had the time to install and run a test command but I trust that it works.

src/dcqc/suites/suite_abc.py Outdated Show resolved Hide resolved
Copy link
Contributor

@BrunoGrandePhD BrunoGrandePhD left a comment

Choose a reason for hiding this comment

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

A perfect PR. Small, self-contained, and focused on one change. 🚀

tests/data/suite.json Show resolved Hide resolved
src/dcqc/suites/suite_abc.py Outdated Show resolved Hide resolved
@BWMac BWMac merged commit a46b491 into main Jun 13, 2023
@BWMac BWMac deleted the bwmac/orca-175/update_input_with_status branch June 13, 2023 16:02
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.

3 participants