-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: optimise image building #13027
ci: optimise image building #13027
Conversation
8e853ca
to
8ca09af
Compare
Build the argoexec and argocli images in a matrix github action. Download and install the images into k3d in one action each. This commit will probably require changes to the Required steps in github which I cannot do myself. Also updates upload and download artifact actions to latest v4, which seem to be working OK now. v3 will deprecate by November. Signed-off-by: Alan Clucas <alan@clucas.org>
with: | ||
name: argocli | ||
path: /tmp/argocli_image.tar | ||
name: ${{matrix.image}}_image.tar |
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.
name: ${{matrix.image}}_image.tar | |
name: ${{matrix.image}} |
From the previous code, this should just be the name of the image. Not sure if this was a copy+paste typo?
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.
It's deliberate. We're pattern matching this with pattern: '*_image.tar'
on line 164. This pattern would be '*'
without the extra parts to the name.
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.
Yes, I thought that would suffice, no? Or were you trying to be extra careful in case at some point other artifacts were added or something?
Follow-up to #13018 / #13018 (comment)
Neither can I. Only @terrytangyuan and @sarabala1979 can change the required steps in the branch protection rules.
All of them were required prior to #12006. Technically speaking, the image build could have a different set of changed files than E2Es although it is currently unconditional. Making sure it passes is also safer just in case -- PRs shouldn't break image builds.
We have a follow-up issue for this #12455 where there were some lingering problems last we checked. There's also one more place that uses |
Signed-off-by: Alan Clucas <alan@clucas.org>
I've reverted upload+download artifact actions again. |
Signed-off-by: Alan Clucas <alan@clucas.org>
Signed-off-by: Alan Clucas <alan@clucas.org>
Also, I'm talking to myself again. |
Ah that makes more sense. I edited your PR description to mention that. It seems like "download all" is available if you don't specify But let's keep v4 regardless so we don't have to change that again in the future |
@terrytangyuan or @sarabala1979, this commit changes the name of a CI step. The ci step This will need updating. This PR doesn't actually change anything that happens in the CI, that happened in #13018 |
Merged |
Updated settings too |
Signed-off-by: Alan Clucas <alan@clucas.org> Co-authored-by: Anton Gilgur <agilgur5@gmail.com> (cherry picked from commit ff646fe)
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 | ||
with: | ||
name: argocli | ||
pattern: '*_image.tar' |
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.
It seems like "download all" is available if you don't specify
name
and use a directory.
Annnd that appears to be what we're using here since pattern
is invalid in actions/download-artifact@v3
.
This is getting a warning in CI for every E2E test in the matrix:
[E2E Tests (test-executor, minimal)](https://github.com/argoproj/argo-workflows/actions/runs/9249013492/job/25442227788#step:8:1)
Unexpected input(s) 'pattern', valid inputs are ['name', 'path']
But passes since "no name
" == "download all"
Build the argoexec and argocli images in a matrix github action.
Download and install the images into k3d in one action each.
This commit will require changes to the Required steps in github which I cannot do myself. I'm not sure why that one
argoexec-image
is listed as required at all, it's a dependency of testing rather than a proper part of the test or CI.Also updates upload and download artifact actions to latest v4, which seem to be working OK now. v3 will deprecate by November. edit by agilgur5: this was to support the
merge-multiple
param per below