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

Fi 2413 optional groups prioritize pass #431

Merged
merged 10 commits into from
Jan 22, 2024

Conversation

Shaumik-Ashraf
Copy link
Contributor

Summary

If all of a test group's children are optional and at least one child passes the group passes. My exact implementation makes the optional result group priorities (in order): cancel, wait, running, pass, skip, fail, error, omit.

Testing Guidance

Run the infrastructure test suite, where test group 2 now has one passing optional and one failing optional test, with an overall result of pass. bundle exec rake spec tests have also been updated accordingly.

Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5c35cf6) 77.08% compared to head (6b322da) 77.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
+ Coverage   77.08%   77.09%   +0.01%     
==========================================
  Files         220      220              
  Lines       10946    10951       +5     
  Branches     1029     1030       +1     
==========================================
+ Hits         8438     8443       +5     
  Misses       1929     1929              
  Partials      579      579              
Flag Coverage Δ
backend 93.92% <100.00%> (+<0.01%) ⬆️
frontend 69.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -11,6 +11,10 @@ def initialize(results)
end

def summarize
return 'pass' if all_optional_results? &&
unique_result_strings.any?('pass') &&
unique_result_strings.none? { |result| %w[cancel wait running].include? result }
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think cancel belongs here, as the results of the cancelled tests wouldn't prevent the group from passing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed cancel

@Shaumik-Ashraf Shaumik-Ashraf merged commit 5405f0b into main Jan 22, 2024
10 checks passed
@Shaumik-Ashraf Shaumik-Ashraf deleted the fi-2413-optional-groups-prioritize-pass branch January 23, 2024 17:37
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.

2 participants