-
Notifications
You must be signed in to change notification settings - Fork 15
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
Slow build test and push #414
Comments
Hi @danielhollas, I forgot to mention one thing in the meeting, the artifact was introduced for another reason that push to ghcr.io will fail if the PR is from the forked repo. It is the limitation of using Using artifact by downloading and load to docker should be easy as well if the instruction is provided. I think maybe the better solution is deprecate upload to ghcr.io for every PR but only upload to artifact, and after that pop an automatic comment telling people how to use the image from pr, just like the code coverage. Also pinning @yakutovicha for opinion. |
Honestly I think we can live with the fact that the upload will not work for forks, it's not like this repo needs external contributors. As is clear from the slowness, the artifacts were not really designed for such large upload, ghcr.io is the proper place for images. Also now that we made the images public, docker pull from ghcr.io is straightforward. |
I think it is a good idea to not let external contributors push to so I agree with @danielhollas here. |
Okay, makes sense to me as well. I 'll work toward that direction. |
Hahaha, now it all makes sense! : 😹 |
EDIT: Scratch that, I was hasty, pushing to Dockerhub seems to be skipped on PRs. |
😉 Yes, It is skipped. There is |
So with #419, do we still want to go with removing upload-artifact? Since the current solution works fine, maybe we can live with it? |
While the artifact upload is now significantly faster, I think we should still do this, and reasonably soon. There is still a lot of extra steps that we could remove and save a lot of time (2-3minutes at least, perhaps more). But the more important reason imo is that the current solution is overly complex and I worry it would be a pain to maintain. We should imo go back to original design and push to ghcr right after building and testing the image (perhaps even before testing, as was done before). |
I noticed that we now have a lot of duplicate tags on Dockerhub that contain OS/ARCH, such as |
Started working on this in #439 |
Using artifact is not exactly the source of problem. See https://github.com/aiidalab/aiidalab-docker-stack/blob/main/.github/workflows/docker-merge-tags.yml, it first upload both archs image to registry and merge them after. |
|
The build, test, and push to ghcr.io for each PR is still slow, the reason is the image is pushed to github artifacts.
It can be accelerated by pushing to ghcr.io without uploading the artifacts.
The text was updated successfully, but these errors were encountered: