-
Notifications
You must be signed in to change notification settings - Fork 67
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
[GHA] digest updater workflow fixes and updates #566
[GHA] digest updater workflow fixes and updates #566
Conversation
Skipping CI for Draft Pull Request. |
In case that there is an image tag subpart of another tag, there could be wrong tag chosen and as a result wrong SHA used for the manifest update. E.g. these two: * "rstudio-c9s-python-3.9-2024a-20240315-02193dd", * "cuda-rstudio-c9s-python-3.9-2024a-20240315-02193dd", Example of wrong update opendatahub-io#541 (3df148c). Together with this, I also updated the quay security analysis script where is the exact same issue.
58de6d1
to
29c7538
Compare
Okay, mystery solved - reason was that I ran it from the |
Example of the wrong update is opendatahub-io#565, where it had to be updated manually, see the be022e2.
ed2f2bb
to
d2e8887
Compare
Ah, unfortunately GH uses Ubuntu 22.04 LTS, which has Skopeo in old version and doesn't contain the |
* Get rid of shell check warnings * Make the code faster by caching skopeo output * Make skopeo to retry if it fails (3 times retry)
d2e8887
to
0c6aecc
Compare
Anyway, this looks good:
So, unless our check job is faulty, the changes in this PR should be fine. Didn't check the security analysis, though - but we plan to review and update it anyway, so probably not a big deal right now. Also, code deduplication using GH job matrix is WIP on my machine locally right now. But looks like current content is ready for review and comments - so if it is required, I can open a followup PR for the code deduplication later. |
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.
/lgtm
@jstourac: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/test notebooks-ubi9-e2e-tests |
Thanks Jan for the update! It looks great now! I tested this locally and works as expected. On downstream, we will need to open a separate PR to apply the same fixes. In short, on downstream we fetch images from different registries for almost every notebook, also the name of the workflow is different from the one on upstream. /lgtm |
@atheo89: Overrode contexts on behalf of atheo89: ci/prow/intel-notebooks-e2e-tests In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: atheo89, jiridanek The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherrypick 2024a |
@jiridanek: once the present PR merges, I will cherry-pick it on top of 2024a in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/cherrypick 2023b |
@jiridanek: once the present PR merges, I will cherry-pick it on top of 2023b in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/cherrypick 2023a |
@jiridanek: once the present PR merges, I will cherry-pick it on top of 2023a in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
ea7f467
into
opendatahub-io:main
@jiridanek: new pull request created: #592 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@jiridanek: #566 failed to apply on top of branch "2023b":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@jiridanek: #566 failed to apply on top of branch "2023a":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@jiridanek , please don't cherrypick pr in 2024a , as we would sync them with teh new automation. |
This contains changes for the digest update workflow for the update of notebook images and commit shas. There are couple of fixes and a small refactoring done, more details in particular commits:
Truth is that I don't fully understand, how is possible that in this case #565 the rstudio images were selected properly 🤔
https://issues.redhat.com/browse/RHOAIENG-8813
How I tested, check my comment below. As stated there, my plan was also to deduplicate the code, but it's WIP on my machine right now, so if this is needed, we can merge this and I will raise another followup PR after my PTO.
How Has This Been Tested?
Right now, it hasn't been tested, will do later.
Merge criteria: