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

Upload screenshots to S3 and post comment on Github #107

Merged
merged 4 commits into from Mar 2, 2022
Merged

Conversation

janpaul123
Copy link
Contributor

The comment is posted on the commit itself, which should show up in PRs.

The one open question I have is how to deal with “auto merge” in Github.
It could make actual regressions go unnoticed. Any ideas?

@janpaul123 janpaul123 temporarily deployed to zaplib-pr-107 March 1, 2022 01:06 Inactive
The comment is posted on the commit itself, which should show up in PRs.

The one open question I have is how to deal with “auto merge” in Github.
It could make actual regressions go unnoticed. Any ideas?
So we don’t suddenly get different screenshots unintentionally.
To fight very minor rendering artifacts.
@janpaul123 janpaul123 requested a deployment to zaplib-pr-107 March 1, 2022 01:38 Abandoned
@stevekrouse
Copy link
Contributor

Is your thought to disable auto-merge or just recommend that we don't use it?

then
echo "SCREENSHOT_GITHUB_MESSAGE=[✅ No screenshot diffs found.](http://zaplib-screenshots.s3-website-us-east-1.amazonaws.com/$GITHUB_SHA)" >> $GITHUB_ENV
else
echo "SCREENSHOT_GITHUB_MESSAGE=[🤔 Screenshot diffs found.](http://zaplib-screenshots.s3-website-us-east-1.amazonaws.com/$GITHUB_SHA) Please look at the screenshots and tag this comment with 👍 or 👎. Only merge when both the PR author and all the reviewers are happy with the changes." >> $GITHUB_ENV
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "SCREENSHOT_GITHUB_MESSAGE=[🤔 Screenshot diffs found.](http://zaplib-screenshots.s3-website-us-east-1.amazonaws.com/$GITHUB_SHA) Please look at the screenshots and tag this comment with 👍 or 👎. Only merge when both the PR author and all the reviewers are happy with the changes." >> $GITHUB_ENV
echo "SCREENSHOT_GITHUB_MESSAGE=[🤔 Screenshot diffs found.](http://zaplib-screenshots.s3-website-us-east-1.amazonaws.com/$GITHUB_SHA) Please look at the screenshots and tag this comment with 👍 or 👎. Only merge when both the PR author and a reviewer are 👍." >> $GITHUB_ENV

Copy link
Contributor

Choose a reason for hiding this comment

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

^ to make it clearer that 👍 means that there is no diff

Copy link
Contributor

Choose a reason for hiding this comment

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

And also maybe just require only two 👍 s

Copy link
Contributor

Choose a reason for hiding this comment

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

#nit and up to you if you like it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

^ to make it clearer that 👍 means that there is no diff

Oh but there can be a diff! 👍🏻 in that case means that the diff is intentional / desired.

@stevekrouse
Copy link
Contributor

Exciting PR! This is now officially the codebase with the most CI I've ever worked on

@stevekrouse
Copy link
Contributor

stevekrouse commented Mar 2, 2022 via email

@janpaul123 janpaul123 temporarily deployed to zaplib-pr-107 March 2, 2022 02:18 Inactive
@janpaul123
Copy link
Contributor Author

Is your thought to disable auto-merge or just recommend that we don't use it?

Missed this earlier. It's a good question. I'll disable it for now, and if we feel like that is too annoying then we find a better solution.

@janpaul123 janpaul123 merged commit cddef38 into main Mar 2, 2022
@janpaul123 janpaul123 deleted the screenshots-s3 branch March 2, 2022 02:33
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.

None yet

2 participants