-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: perdasilva <perdasilva@redhat.com> Signed-off-by: perdasilva <perdasilva@redhat.com>
- Loading branch information
1 parent
6f59a3b
commit 80e95f1
Showing
17 changed files
with
134 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Flaky Test Report | ||
about: If an unrelated test is failing for mysterious reasons | ||
title: '' | ||
labels: 'kind/flake' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Flaky Test Report | ||
|
||
<!-- | ||
Note: Make sure to first check the prerequisites that can be found in the main README file! | ||
Thanks for filing an issue! Before hitting the button, please provide the following information: | ||
--> | ||
|
||
**Failure Log Link** | ||
[Failure Log](put link here) | ||
You can get the link by clicking on the line number in the job logs and copying the url from your browser. | ||
|
||
**Relevant Failure Log** | ||
<!--- Paste any relevant failure logs from the job --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: flaky-e2e-tests | ||
on: | ||
schedule: | ||
- cron: '30 5,17 * * *' # run this every day at 5:30 and 17:30 UTC (00:30 and 12:30 ET) | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
flaky-e2e-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '~1.17' | ||
- run: make e2e-local E2E_NODES=1 TEST='\[FLAKY\]' ARTIFACTS_DIR=./artifacts/ | ||
- name: Archive Test Artifacts # test results, failed or not, are always uploaded. | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: e2e-test-output-${{(github.event.pull_request.head.sha||github.sha)}}-${{ github.run_id }} | ||
path: ${{ github.workspace }}/bin/artifacts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Reporting flakes | ||
|
||
If you are struggling to get your PR through because unrelated e2e or unit tests are randomly failing, it's likely | ||
you are being plagued by a flaky test 😱, a test that wasn't constructed as carefully as it should have been as is | ||
failing even when it should be succeeding. When this happens, check our [issues](https://github.com/operator-framework/operator-lifecycle-manager/issues) | ||
to see if it has been filed before. Search also in the `closed issues`. If you find one, re-open it if necessary. | ||
Otherwise, [file](https://github.com/operator-framework/operator-lifecycle-manager/issues/new) a flaky test issue. | ||
|
||
Once you have an issue link, you can disable the flaky test by adding the `[FLAKE]` tag to the test name and linking the issue in the code. | ||
|
||
Example: | ||
|
||
``` | ||
// issue: https://github.com/operator-framework/operator-lifecycle-manager/issues/2635 | ||
It("[FLAKE] updates multiple intermediates", func() { | ||
... | ||
``` | ||
|
||
You may be asked by the reviewer to supply evidence that the test is indeed flaky and not an unfortunate side effect of | ||
your contribution. We'll endeavor to make this an easy as process as possible to merge your contribution in as quickly | ||
and safely as possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.