-
Notifications
You must be signed in to change notification settings - Fork 23
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
Provide visibility to flaky tests #21
Labels
enhancement
New feature or request
Milestone
Comments
agis
added a commit
that referenced
this issue
Aug 28, 2020
This method can be called after a build is complete and returns the jobs that were flaky (i.e. failed initially but passed upon a retry). This enables us to provide visibility to flaky tests so that test implementers have a chance to actually fix them. Part of #21
agis
added a commit
that referenced
this issue
Aug 28, 2020
Example output (the new part is just below "Spec execution time"): Failed examples: bin/rspec ./test/sample_suites/flaky_job_detection/spec/legit_failure_spec.rb:5 # is expected to equal true Total results: 13 examples (6 jobs), 1 failures, 0 errors Spec execution time: 00:00:00 Flaky jobs detected (count=2): ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:3] ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:1] Part of #21
agis
added a commit
that referenced
this issue
Aug 28, 2020
agis
added a commit
that referenced
this issue
Aug 28, 2020
This method can be called after a build is complete and returns the jobs that were flaky (i.e. failed initially but passed upon a retry). This enables us to provide visibility to flaky tests so that test implementers have a chance to actually fix them. Part of #21
agis
added a commit
that referenced
this issue
Aug 28, 2020
Example output (the new part is just below "Spec execution time"): Failed examples: bin/rspec ./test/sample_suites/flaky_job_detection/spec/legit_failure_spec.rb:5 # is expected to equal true Total results: 13 examples (6 jobs), 1 failures, 0 errors Spec execution time: 00:00:00 Flaky jobs detected (count=2): ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:3] ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:1] Part of #21
agis
added a commit
that referenced
this issue
Aug 28, 2020
agis
added a commit
that referenced
this issue
Aug 30, 2020
This method can be called after a build is complete and returns the jobs that were flaky (i.e. failed initially but passed upon a retry). This enables us to provide visibility to flaky tests so that test implementers have a chance to actually fix them. Part of #21
agis
added a commit
that referenced
this issue
Aug 30, 2020
Example output (the new part is just below "Spec execution time"): Failed examples: bin/rspec ./test/sample_suites/flaky_job_detection/spec/legit_failure_spec.rb:5 # is expected to equal true Total results: 13 examples (6 jobs), 1 failures, 0 errors Spec execution time: 00:00:00 Flaky jobs detected (count=2): ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:3] ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:1] Part of #21
agis
added a commit
that referenced
this issue
Aug 30, 2020
agis
added a commit
that referenced
this issue
Aug 31, 2020
This method can be called after a build is complete and returns the jobs that were flaky (i.e. failed initially but passed upon a retry). This enables us to provide visibility to flaky tests so that test implementers have a chance to actually fix them. Part of #21
agis
added a commit
that referenced
this issue
Aug 31, 2020
Example output (the new part is just below "Spec execution time"): Failed examples: bin/rspec ./test/sample_suites/flaky_job_detection/spec/legit_failure_spec.rb:5 # is expected to equal true Total results: 13 examples (6 jobs), 1 failures, 0 errors Spec execution time: 00:00:00 Flaky jobs detected (count=2): ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:3] ./test/sample_suites/flaky_job_detection/spec/flaky_spec.rb[1:1] Part of #21
agis
added a commit
that referenced
this issue
Aug 31, 2020
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flaky tests, while not causing the build to fail, should still be fixed. Otherwise they can impact build times, since they can silently compound and cause many retries in each build.Consider a test suite that over time has 30 flaky tests. These could easily cause 90 additional example retries.
We should provide visibility into flaky tests (after the fact we determined they are flaky). Now that #16 is merged, we can report them to Sentry.
The text was updated successfully, but these errors were encountered: