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

feat: Add support for "fail fast" feature on FTL #1370

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

RainNapper
Copy link
Contributor

@RainNapper RainNapper commented Dec 1, 2020

Fixes (N/A)

Test Plan

How do we know the code works?

Ran a locally built jar in CI, verified that this flag is behaving as expected.

Checklist

  • Documented
  • Unit tested

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.

@RainNapper RainNapper changed the title fail fast Add support for "fail fast" feature on FTL Dec 1, 2020
@mergify
Copy link

mergify bot commented Dec 1, 2020

Title does not follow the guidelines of Conventional Commits.
Please adjust title before merge and use one of following prefix:

  • build - Changes that affect the build system or external dependencies (dependencies update)
  • ci - Changes to our CI configuration files and scripts (basically directory .github/workflows)
  • docs - Documentation only changes
  • feat - A new feature
  • fix - A bug fix
  • chore - Changes which does not touch the code (ex. manual update of release notes). It will not generate release notes changes
  • refactor - A code change that contains refactor
  • style - Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test - Adding missing tests or correcting existing tests and also changes for our test app
  • perf - A code change that improves performance (I do not think we will use it)

@bootstraponline bootstraponline changed the title Add support for "fail fast" feature on FTL feat: Add support for "fail fast" feature on FTL Dec 1, 2020
@RainNapper RainNapper force-pushed the mmark/flank/fastfail branch from 2f7d1bf to 4b29e40 Compare December 1, 2020 22:05
@RainNapper RainNapper force-pushed the mmark/flank/fastfail branch from e87083d to b64c64e Compare December 1, 2020 22:06
@RainNapper RainNapper force-pushed the mmark/flank/fastfail branch from 58f4861 to c5c029e Compare December 1, 2020 23:57
@RainNapper RainNapper force-pushed the mmark/flank/fastfail branch from 0dddf21 to 097eee7 Compare December 2, 2020 01:04
@codecov-io
Copy link

codecov-io commented Dec 2, 2020

Codecov Report

Merging #1370 (8dc5f7c) into master (68a4909) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             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
Copy link
Contributor

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

Copy link
Contributor

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 .

Copy link
Contributor Author

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
Copy link
Contributor

@piotradamczyk5 piotradamczyk5 Dec 2, 2020

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

Copy link
Contributor Author

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 " +
Copy link
Contributor

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.

Copy link
Contributor Author

@RainNapper RainNapper Dec 2, 2020

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.

Copy link
Contributor

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."]
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

@@ -49,6 +49,7 @@ IosArgs
type: ${type?.ymlName}
app: $app
test-special-entitlements: $testSpecialEntitlements
fail-fast: $failFast
Copy link
Contributor

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 .

@RainNapper RainNapper force-pushed the mmark/flank/fastfail branch from 8dc5f7c to 5dc08fc Compare December 2, 2020 18:36
Copy link
Contributor

@Sloox Sloox left a comment

Choose a reason for hiding this comment

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

👍

@mergify mergify bot merged commit 674ca73 into Flank:master Dec 3, 2020
@pawelpasterz pawelpasterz added the New Option Used to track PR with new configuration option (useful when updating fladle) label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Feature New Option Used to track PR with new configuration option (useful when updating fladle)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants