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

Upgrade Porch to Go 1.22 #41

Merged
merged 2 commits into from May 14, 2024

Conversation

liamfallon
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind bug

/kind cleanup

/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:

  • Updated go version in go.mod files
  • Updated go version in github workflows
  • Updated base image to 1.22.2-bookworm in Dockerfiles
  • Updated Go/Golang-CI/GoSec versions in makefiles

Which issue(s) this PR fixes:
Fixes Issue 510.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:
no

Copy link
Contributor

nephio-prow bot commented Apr 23, 2024

@liamfallon: The label(s) kind/cleanup cannot be applied, because the repository doesn't have them.

In response to this:

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/kind bug

/kind cleanup

/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:

  • Updated go version in go.mod files
  • Updated go version in github workflows
  • Updated base image to 1.22.2-bookworm in Dockerfiles
  • Updated Go/Golang-CI/GoSec versions in makefiles

Which issue(s) this PR fixes:
Fixes Issue 510.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:
no

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/test-infra repository.

@liamfallon
Copy link
Member Author

/assign @tliron @Catalin-Stratulat-Ericsson

@liamfallon
Copy link
Member Author

/assign @vjayaramrh

@efiacor
Copy link
Collaborator

efiacor commented Apr 23, 2024

/approve

@liamfallon
Copy link
Member Author

Replacing reflect.TypeOf() with reflect.TypeFor doesn't seem to be useful at the other four locations where reflect.TypeFor() occurs in the code base:

  1. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
    where reflect.TypeOf() is used as a mechanism to get the package oath
  2. st := reflect.TypeOf(suite)
    where reflect.TypeOf() is used on an interface
  3. st := reflect.TypeOf(suite)
    where reflect.TypeOf() is used on an interface
  4. informerType := reflect.TypeOf(obj)
    where reflect.TypeOf() is in generated code

@liamfallon
Copy link
Member Author

/recheck

@liamfallon
Copy link
Member Author

/retest

@liamfallon
Copy link
Member Author

The go tests need to be upgraded to Go 1.22, see nephio-project/test-infra#258
/hold

@liamfallon
Copy link
Member Author

/retest

@efiacor
Copy link
Collaborator

efiacor commented Apr 24, 2024

/retest

Do we need to bump the gotest image in the .prow file to nephio/gotests:1782782171367346176 ?

https://github.com/nephio-project/porch/blob/main/.prow.yaml#L7

@liamfallon
Copy link
Member Author

/retest

@liamfallon
Copy link
Member Author

The toolchain has been updated for go 1.22 now, thanks to @radoslawc. This PR is ready for review.
/assign @tliron @efiacor @vjayaramrh

@efiacor
Copy link
Collaborator

efiacor commented Apr 29, 2024

/approve

@vjayaramrh
Copy link

Would it be a good idea to set a variable for the GO Version and then change the value for the version in one file? Looks like we would end up changing multiple files which may be error prone. Any thoughts?

@liamfallon
Copy link
Member Author

Would it be a good idea to set a variable for the GO Version and then change the value for the version in one file? Looks like we would end up changing multiple files which may be error prone. Any thoughts?

Yes, this is a good idea. There are also toolchain changes to make in test-infra, which @radoslawc did. I think it would be best this time to go ahead with these PRs and then write a separate issue to look at and implement automation of the go version change. At least now with this PR and Rado's PRs we know where the changes that need to be automated are.

@efiacor
Copy link
Collaborator

efiacor commented May 8, 2024

/lgtm

@nephio-prow nephio-prow bot added the lgtm label May 8, 2024
@vjayaramrh
Copy link

Would it be a good idea to set a variable for the GO Version and then change the value for the version in one file? Looks like we would end up changing multiple files which may be error prone. Any thoughts?

Yes, this is a good idea. There are also toolchain changes to make in test-infra, which @radoslawc did. I think it would be best this time to go ahead with these PRs and then write a separate issue to look at and implement automation of the go version change. At least now with this PR and Rado's PRs we know where the changes that need to be automated are.

Sounds good, Do you mind adding the issue link here so that this does not get lost prior to merging this issue, Thanks

@efiacor
Copy link
Collaborator

efiacor commented May 8, 2024

Would it be a good idea to set a variable for the GO Version and then change the value for the version in one file? Looks like we would end up changing multiple files which may be error prone. Any thoughts?

Yes, this is a good idea. There are also toolchain changes to make in test-infra, which @radoslawc did. I think it would be best this time to go ahead with these PRs and then write a separate issue to look at and implement automation of the go version change. At least now with this PR and Rado's PRs we know where the changes that need to be automated are.

Sounds good, Do you mind adding the issue link here so that this does not get lost prior to merging this issue, Thanks

Hey @vjayaramrh , created this one - nephio-project/nephio#731
Not sure how to link it here though.

@vjayaramrh
Copy link

vjayaramrh commented May 8, 2024

Would it be a good idea to set a variable for the GO Version and then change the value for the version in one file? Looks like we would end up changing multiple files which may be error prone. Any thoughts?

Yes, this is a good idea. There are also toolchain changes to make in test-infra, which @radoslawc did. I think it would be best this time to go ahead with these PRs and then write a separate issue to look at and implement automation of the go version change. At least now with this PR and Rado's PRs we know where the changes that need to be automated are.

Sounds good, Do you mind adding the issue link here so that this does not get lost prior to merging this issue, Thanks

Hey @vjayaramrh , created this one - nephio-project/nephio#731 Not sure how to link it here though.

Would it be a good idea to set a variable for the GO Version and then change the value for the version in one file? Looks like we would end up changing multiple files which may be error prone. Any thoughts?

Yes, this is a good idea. There are also toolchain changes to make in test-infra, which @radoslawc did. I think it would be best this time to go ahead with these PRs and then write a separate issue to look at and implement automation of the go version change. At least now with this PR and Rado's PRs we know where the changes that need to be automated are.

Sounds good, Do you mind adding the issue link here so that this does not get lost prior to merging this issue, Thanks

Hey @vjayaramrh , created this one - nephio-project/nephio#731 Not sure how to link it here though.

@efiacor Thanks, I think we are all set.

@efiacor
Copy link
Collaborator

efiacor commented May 9, 2024

/approve
/lgtm

Copy link
Collaborator

@efiacor efiacor left a comment

Choose a reason for hiding this comment

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

@liamfallon
Copy link
Member Author

/approve

@liamfallon
Copy link
Member Author

I think we will have to bump the image version here also https://github.com/nephio-project/porch/pull/41/files#diff-e48abb6eaacd63e53dd63fec4562daff0b7766146c230ceaa515ee087367e1f8L28

@efiacor I'll raise a subsequent PR to add this if that's OK with you

@efiacor
Copy link
Collaborator

efiacor commented May 13, 2024

/approve
/lgtm

@radoslawc
Copy link
Collaborator

closing for testing tide fix

@radoslawc radoslawc closed this May 13, 2024
@radoslawc radoslawc reopened this May 14, 2024
@liamfallon
Copy link
Member Author

/approve

Copy link
Contributor

nephio-prow bot commented May 14, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: efiacor, liamfallon

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@efiacor
Copy link
Collaborator

efiacor commented May 14, 2024

/lgtm

@radoslawc radoslawc merged commit ba02a03 into nephio-project:main May 14, 2024
8 checks passed
@efiacor efiacor deleted the issue-510-porch-go-upgrade branch May 14, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants