-
Notifications
You must be signed in to change notification settings - Fork 25
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
Action Cable integration test should soft fail on exit 3 #119
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,16 +106,17 @@ def rake(dir, task: "test", label: nil, service: "default", pre_steps: nil, env: | |
|
||
artifact_paths build_context.artifact_paths | ||
|
||
if retry_on | ||
automatic_retry_on(**retry_on) | ||
else | ||
automatic_retry_on(**build_context.automatic_retry_on) | ||
[retry_on].flatten.compact.each do |retry_args| | ||
automatic_retry_on(**retry_args) | ||
end | ||
automatic_retry_on(**build_context.automatic_retry_on) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before we would either set the given policy OR the default, now we always set both. There is some duplication in the |
||
|
||
timeout_in_minutes build_context.timeout_in_minutes | ||
|
||
if soft_fail || build_context.ruby.soft_fail? | ||
if soft_fail.is_a?(TrueClass) || build_context.ruby.soft_fail? | ||
soft_fail true | ||
else | ||
soft_fail([soft_fail].flatten.compact) if soft_fail | ||
Comment on lines
+116
to
+119
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since soft_fail can be either a boolean, or an array of hashes. I still want the sugar to support both arrays or hashes, AND we have to consider if the Ruby version is soft failed. I haven't tested what the result is if you for example, pass an empty array, and wanted to limit the amount of change here -- but there is probably a nicer way to write this. |
||
end | ||
|
||
if parallelism | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is sugar to support passing a hash or array of hashes, as supported by the automatic retry attributes.