Skip to content
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

renovate: update to go 1.22 #227

Merged
merged 4 commits into from
Sep 5, 2024
Merged

renovate: update to go 1.22 #227

merged 4 commits into from
Sep 5, 2024

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Sep 4, 2024

We have pinned the renovate go version to the lowest version we support
as otherwise it will create PRs that update to new go version which we
always want to take care of manually as it included more changes
usually. While it doesn't prevent renovate from creating these PRs they
always fail as it cannot update to a newer go version so it is clear to
reviewers what is going on.

Podman no longer uses CI:DOCS as it skips based on source changes.
As such this title doesn't add anything besides confusion why it is
there.

Signed-off-by: Paul Holzinger <[email protected]>
We have pinned the renovate go version to the lowest version we support
as otherwise it will create PRs that update to new go version which we
always want to take care of manually as it included more changes
usually. While it doesn't prevent renovate from creating these PRs they
always fail as it cannot update to a newer go version so it is clear to
reviewers what is going on.

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99
Copy link
Member Author

Luap99 commented Sep 4, 2024

cc @mtrmac

This test doesn't wotk when run before 1pm UTC only after, we could add
a +24 hours but it is not clear what the purpose of this function is so
just remove it. We know that timebomb seems to work good enough in
practice and regressions are unlikely.

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99
Copy link
Member Author

Luap99 commented Sep 4, 2024

Testing: Verify latest tagged image was not pushed
fail - Expected exit-code 1 but received 2 while executing skopeo (output follows)
time="2024-09-04T13:16:31Z" level=fatal msg="Error parsing image name \"docker://quay.io/buildah/do_not_use:latest\": reading manifest latest in quay.io/buildah/do_not_use: manifest unknown"

@mtrmac Did the exit code of skopeo change at some point? I see exit code 2 also locally when inspecting this image so I guess I should just fix the test?

@Luap99
Copy link
Member Author

Luap99 commented Sep 4, 2024

Testing: Verify latest tagged image was not pushed
fail - Expected exit-code 1 but received 2 while executing skopeo (output follows)
time="2024-09-04T13:16:31Z" level=fatal msg="Error parsing image name \"docker://quay.io/buildah/do_not_use:latest\": reading manifest latest in quay.io/buildah/do_not_use: manifest unknown"

@mtrmac Did the exit code of skopeo change at some point? I see exit code 2 also locally when inspecting this image so I guess I should just fix the test?

Found it containers/skopeo@16b6f0a so I update the test here, not sure why this worked for so long but all of the sudden things start to break when I open a PR:(

A change[1] in skope made it exit with 2 if the image is not found so
fix the test assumption here.

[1] containers/skopeo@16b6f0a

Signed-off-by: Paul Holzinger <[email protected]>
Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for taking this on!

Copy link

github-actions bot commented Sep 4, 2024

Successfully triggered github-actions/success task to indicate successful run of cirrus-ci_retrospective integration and unit testing from this PR's cc18e81abf8367b33b4e4d47da6c761d18c94c42.

@Luap99
Copy link
Member Author

Luap99 commented Sep 4, 2024

So I think this is only waiting for the c/image PR to be merged and someone bumping storage? Are you planning to do this @mtrmac?
Are there any other go repos we maintain and have to update?

@mtrmac
Copy link
Collaborator

mtrmac commented Sep 4, 2024

I have now filed containers/storage#2086 for c/storage. I think that’s all the repos we immediately care about.

Luap99 added a commit to Luap99/common that referenced this pull request Sep 5, 2024
Our renovate config does not yet support go 1.22[1] so do it manually
for now.

[1] containers/automation#227

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99 Luap99 marked this pull request as ready for review September 5, 2024 17:19
@mtrmac
Copy link
Collaborator

mtrmac commented Sep 5, 2024

All projects have been updated, this can be merged. Who has the rights to do so? @edsantiago maybe?

@edsantiago
Copy link
Member

I see a big green Merge button and will see what happens if I push it.

@edsantiago edsantiago merged commit 6572470 into containers:main Sep 5, 2024
9 checks passed
@mtrmac
Copy link
Collaborator

mtrmac commented Sep 5, 2024

Thanks!

For the record, containers/skopeo#2418 now correctly creates dependency update PRs.

@mtrmac
Copy link
Collaborator

mtrmac commented Sep 5, 2024

containers/skopeo#2418 shows Renovate now correctly creates dependency update PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants