-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Upgrade all dependencies #6287
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
Upgrade all dependencies #6287
Conversation
6c1cf6b
to
3513a8e
Compare
765c1ca
to
502c1e6
Compare
502c1e6
to
24d8b2a
Compare
24d8b2a
to
a922109
Compare
66418bf
to
d3345f9
Compare
|
||
# re-download all tools and replace the sha values if changed | ||
# useful for determining the sha values after upgrading | ||
learn-sha-tools: |
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.
Thanks to this new target, we can "learn" shas.
if [ $SHASUM != "$2" ]; then | ||
# When running 'make learn-sha-tools', we don't want this script to fail. | ||
# Instead we log what sha values are wrong, so the make.mk file can be updated. | ||
if [ "$SHASUM" != "$2" ] && [ "${LEARN_FILE:-}" != "" ]; then |
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.
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
1586e31
to
6a159bb
Compare
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
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.
Reading the commits in the PR this is not simply "Upgrade all dependencies".
Please explain and document:
- downgraded pebble,
- downgraded go,
- added logsapi reset,
- document the use of learn-shas in the README for the benefit of contributors and in the self-documenting Makefile style....and add comments explaining how learn-shas works, because I can't understand it.
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
learn-sha-tools: | ||
rm -rf ./$(BINDIR) | ||
mkdir ./$(BINDIR) | ||
$(eval export LEARN_FILE=$(PWD)/$(BINDIR)/learn_file) |
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.
By setting the LEARN_FILE
environment variable, ./hack/util/checkhash.sh will write a "replace hash x with y" command to the learn file instead of throwing an error on mismatch.
At the end of this make target, we use this learn file to update the tools.mk file and replace all the old hashes with the desired new hashes.
I updated the PR description with answers to 1, 2 & 3. |
/test pull-cert-manager-master-e2e-v1-28 |
/retest |
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 updated the PR description with answers to 1, 2 & 3.
I also updated the makefile and fixed the self-documentation. In https://github.com/cert-manager/cert-manager/pull/6287/files#r1305414341, I explain how the target works (it is not very easy to explain in a Makefile how a target works).
Thanks Tim,
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon, wallrj 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 |
/test pull-cert-manager-master-make-test |
LATEST_127_DIGEST=sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 | ||
# k8s 1.28 is manually added to ensure that we use the exact documented tag as per kind recommendation | ||
LATEST_128_TAG=v1.28.0 | ||
LATEST_128_DIGEST=sha256:9f3ff58f19dcf1a0611d11e8ac989fdb30a28f40f236f59f0bea31fb956ccf5c |
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.
This is the digest of the image rather than the multi-arch manifest.
$ crane digest --platform linux/amd64 docker.io/kindest/node:v1.28.0
sha256:9f3ff58f19dcf1a0611d11e8ac989fdb30a28f40f236f59f0bea31fb956ccf5c
$ crane digest docker.io/kindest/node:v1.28.0
sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952d5b31
The previous digest was for the multi-arch digest:
$ crane digest docker.io/kindest/node:v1.27.3
sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
This didn't become apparent until I merged #6440 in which I saw this new digest and assumed that kindest images were supposed to be referenced by image digest rather than multi-arch digest.
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.
@wallrj you are correct, these image digest might be wrong. I think I updated them using the "If it isn't failing, don't fix it" method.
This does not include upgrading go to 1.21 and pebble to the latest commit, because those upgrades were causing issues.
They will have to be upgraded in another PR.
For us to have a unit test which initializes logging multiple times, we have to call the new
logsapi.ResetForTest
function.Kind
/kind cleanup
Release Note