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

ci(screener): refine when screener runs on pull requests #5280

Merged
merged 3 commits into from
Sep 8, 2022

Conversation

benelan
Copy link
Member

@benelan benelan commented Sep 7, 2022

Related Issue: #5253

Summary

This PR refines the PR linked above. Here are the conditions for when Screener runs on a PR:

  • Screener will run when when the pr ready for visual snapshots label is added to a normal PR (not draft PRs)
  • Screener will run when a draft PR with the pr ready for visual snapshots label is marked as "Ready to review"

When someone pushes changes to a PR that has the pr ready for visual snapshots label (meaning snapshots already ran), Screener will NOT run but it WILL show a green checkmark allowing the author to merge the PR. This is so that PRs can be merged w/o another Screener run if there are some small cleanups needed.

If you need to rerun screener, remove and re-add the pr ready for visual snapshots label.

Screener will still run on every push to master. This should provide a back up in case a visual regression slips through due to the point above. I will monitor the Screener runs on master while these limitations are in place.

@benelan benelan requested a review from a team as a code owner September 7, 2022 22:05
@benelan benelan marked this pull request as draft September 7, 2022 22:05
@benelan benelan added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Sep 7, 2022
@benelan benelan marked this pull request as ready for review September 7, 2022 22:06
@benelan benelan added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Sep 7, 2022
@benelan benelan added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Sep 7, 2022
Copy link
Member

@jcfranco jcfranco left a comment

Choose a reason for hiding this comment

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

👍

@benelan benelan merged commit 04437a1 into master Sep 8, 2022
@benelan benelan deleted the benelan/refine-screener-run-conditions branch September 8, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants