-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add action to push screenshots to conda store #346
Conversation
I've tested this approach on dummy repos but this will still take me some tuning to get everything right in place. TODO:
|
@pavithraes it looks like a lot of the images in |
Ok, this thing is back to passing CI 🎉 Now I need to double check the images. |
I suspect this is failing due to a bad token. We were originally using @jaimergp 's PAT. Can you please regenerate and add it as a secret named |
I have a question about this. Is this going to create any maintenance issues in the future? Is this the most future-proof approach we can take? |
Because we are opening a PR on another repo, we need credentials. In other projects, we have github service accounts where we share credentials (so basically internal "bot" users). Since this would have to be a user in the |
A PR to conda-store has been opened with updated screenshots - conda-incubator/conda-store#731 |
Fixed. |
I looked through the built docs on the other PR. I need to make a few minor tweaks to some of the image clipping. |
A PR to conda-store has been opened with updated screenshots - conda-incubator/conda-store#731 |
.github/workflows/push_images.yml
Outdated
git config user.name ${{ github.actor }} | ||
git config user.email '${{ github.actor }}@users.noreply.github.com' | ||
git add -A | ||
git commit -m "commit all changes" |
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 would still like to see this commit message updated
git commit -m "commit all changes" | |
git commit -m "🤖 conda-store-ui/update_screenshots" |
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.
ah. Sorry, I changed this line instead when you requested the first time.
Ok... little bit of a wild goose chase, but I think I got it. The commit-message below (line 92) is being ignored and THIS line is what's being used.
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.
Yay, this is coming together. Sorry to insist, but I really want us to update the commit message in the workflow
Unfortunately I had the images looking great on my local setup (which is running the same conda-store version as CI) but the images I generated locally differ from CI. The images that require clipping are "off" by an unacceptable amount. |
Sorry to possibly rock the boat here, but I am starting to wonder if we should abandon this PR. Similar to CI, I also had iffy results running this locally. For example, the following screenshot is not ready to be published straight to the docs: It's to be expected that there will be differences between the screenshots taken on CI and those taken locally. This came up when I started working on JupyterLab, which has a number of snapshot tests, which compares saved screenshots taken on a previous run and committed to the repo with screenshots taken on the current run. If you did anything that changed the UI, you couldn't update the saved and committed screenshots from your local computer; you had to upload your changes in a PR and then ask a GitHub robot to attach updated screenshots to your PR. I don't want us to fall into a sunk cost fallacy here. We have spent a lot of time to get this PR close to the finish line, but considering the work left to do and the work it may demand in the future, have we already tipped past the value this PR potentially provides? |
I am leaning towards the same view as @gabalafou, this PR has lagged a lot more than I would have liked both in time and effort, and I am worried that it will add a non-trivial amount of maintenance and upkeep work. |
Please refer to the original issue. |
Apologies I couldn't get this across the finish line. I just didn't have enough consistent hours and there was too much breakage every time I returned. I suspect this means that maintenance burden would be significant as well (having to change the crop extents slightly all the time). Closing seems reasonable. |
Fixes conda-incubator/conda-store#570
Description
This workflow collects screenshots which have stored as artifacts in test.yml and opens a PR on conda-store to update the docs.
This pull request:
Pull request checklist
Additional information
We originally discussed triggering this from a comment on a PR. I discovered that the only Action trigger,
issue_comment
, would trigger this to run for every comment on every issue. I feel like that is a lot of wasted compute even if the first thing it did was check to see if its a PR and shut it down. For this reason, I've decided to trigger on label instead.I looked at triggering on the completion of test.yml, but that would trigger the workflow off of main and we'd be forced to use the "latest" generated artifacts, rather than PR-specific.
This will require a PAT to open up the PR on the conda-store side. It is currently looking for
secrets.PAT
.