-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Quarantine flaky tests #5631
Quarantine flaky tests #5631
Conversation
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.
Nothing actually changed here.
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.
Nothing actually changed here.
@@ -84,8 +84,11 @@ group :test do | |||
gem "capybara-screenshot" | |||
gem "database_cleaner-active_record" | |||
gem "email_spec" | |||
gem "google_drive", "~> 3" |
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.
google drive? why?
|
||
config.quarantine_database = { | ||
type: :google_sheets, | ||
authorization: {type: :service_account_key, file: Rails.root.join("spec", "quarantine", "service-account.json")}, |
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.
whose account are we going to use here?
https://github.com/flexport/quarantine seems unmaintained but probably works |
- name: Decrypt service-account.json | ||
run: ./spec/quarantine/decrypt_secret.sh | ||
env: | ||
QUARANTINE_SERVICE_ACCOUNT_PASSPHRASE: ${{ secrets.QUARANTINE_SERVICE_ACCOUNT_PASSPHRASE }} |
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 am doing something similar. Unfortunately, this does not work on PRs are pushed from a fork because secrets do not get passed to runner pushed from a fork (https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow).
Ex: I pulled down this PR and pushed it myself and it failed https://github.com/rubyforgood/casa/actions/runs/8888424582/job/24405217184
I just ran into this issue so I don't have a solution unfortunately.
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's failing now cause the secret doesn't exist. It could also be the fork issue.
Closing due to new parallel strategy. |
What github issue is this PR for, if any?
N/A
What changed, and why?
Automatically quarantine flaky tests and un-quarantine tests that are no longer flaky. See the wiki for more info.
How will this affect user permissions?
N/A
How is this tested? (please write tests!) 💖💪
Screenshots please :)
Feelings gif (optional)
What gif best describes your feeling working on this issue? https://giphy.com/
How to embed:
![alt text](https://media.giphy.com/media/1nP7ThJFes5pgXKUNf/giphy.gif)
Feedback please? (optional)
We are very interested in your feedback! Please give us some :) https://forms.gle/1D5ACNgTs2u9gSdh9