-
Notifications
You must be signed in to change notification settings - Fork 118
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
feat: Add support for "fail fast" feature on FTL #1370
Conversation
b862b21
to
2f7d1bf
Compare
firebase_apis/test_api/src/main/java/com/google/api/services/testing/model/TestMatrix.java
Outdated
Show resolved
Hide resolved
Title does not follow the guidelines of Conventional Commits.
|
2f7d1bf
to
4b29e40
Compare
4b29e40
to
e87083d
Compare
e87083d
to
b64c64e
Compare
b64c64e
to
58f4861
Compare
58f4861
to
c5c029e
Compare
c5c029e
to
0dddf21
Compare
0dddf21
to
097eee7
Compare
097eee7
to
8dc5f7c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1370 +/- ##
============================================
+ Coverage 77.81% 77.87% +0.05%
- Complexity 705 707 +2
============================================
Files 244 244
Lines 4693 4701 +8
Branches 901 901
============================================
+ Hits 3652 3661 +9
+ Misses 550 549 -1
Partials 491 491 |
@@ -49,6 +49,7 @@ IosArgs | |||
type: ${type?.ymlName} | |||
app: $app | |||
test-special-entitlements: $testSpecialEntitlements | |||
fail-fast: $failFast |
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.
It should be added also for Android
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.
@piotradamczyk5 @RainNapper include it in ICommonArgs .
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.
I believe this is already in common args? This code is for the toString
, which references common args.
" feature is for latency sensitive workloads."] | ||
) | ||
@set:JsonProperty("fail-fast") | ||
var failFast: Boolean? by data |
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.
should be documented in
test_runner/flank.ios.yml
test_runner/flank.yml
docs/index.md
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.
Added
"storage, the system will replace it with the external storage path prefix for that device. " + | ||
"For iOS devices these must be absolute paths under /private/var/mobile/Media or /Documents " + | ||
"of the app under test. If the path is under an app's /Documents, it must be prefixed with the app's bundle id and a colon"] | ||
"storage to the designated results bucket after the test is complete. For Android devices these must be absolute paths under " + |
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.
Please ensure the spacing is the same for the rest of the project we have a code style applied and seeing that the text has been modified might imply that your tabs/spacing dont match.
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.
It doesn't look like all of these descriptions have consistent indentation. That said, I reverted the spacing changes unrelated to the flag for this PR and picked the more common indentation.
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.
We have detekt rules and hooks to verify it. Ill look into the spacing issue to make sure its working as inteded. Thanks for the headsup.
@@ -140,7 +140,7 @@ data class CommonGcloudConfig @JsonIgnore constructor( | |||
split = ",", | |||
description = [ | |||
"A list of device-path=file-path pairs that indicate the device paths to push files to the device before " + | |||
"starting tests, and the paths of files to push."] | |||
"starting tests, and the paths of files to push."] |
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.
same here
test_runner/src/main/kotlin/ftl/config/common/CommonGcloudConfig.kt
Outdated
Show resolved
Hide resolved
@@ -49,6 +49,7 @@ IosArgs | |||
type: ${type?.ymlName} | |||
app: $app | |||
test-special-entitlements: $testSpecialEntitlements | |||
fail-fast: $failFast |
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.
@piotradamczyk5 @RainNapper include it in ICommonArgs .
8dc5f7c
to
5dc08fc
Compare
5dc08fc
to
91a6333
Compare
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.
👍
Fixes (N/A)
Test Plan
Ran a locally built jar in CI, verified that this flag is behaving as expected.
Checklist
Background
When a matrix hits an infrastructure errors, it is automatically retried. This can cause issues in time sensitive scenarios, as results can take ~5-15m longer to report after an infrastructure error occurs. This PR exposes this flag via the CLI.