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

Update images to Go 1.20 #3385

Closed
wants to merge 10 commits into from
Closed

Conversation

hawkowl
Copy link
Collaborator

@hawkowl hawkowl commented Feb 7, 2024

Which issue this PR addresses:

Fixes https://issues.redhat.com/browse/ARO-5320

What this PR does / why we need it:

Updates images to Go 1.20, fixes build problems and CI/lint issues from Go 1.20.

Test plan for issue:

Should be covered by e2e, unit tests, etc

Is there any documentation that needs to be updated for this PR?

N/A

@bennerv
Copy link
Collaborator

bennerv commented Feb 7, 2024

@hawkowl can you make sure our images in the Azure image registries we use for ev2 are updated as well? See the CDPx Container Images wiki page in ADO.

@hawkowl
Copy link
Collaborator Author

hawkowl commented Feb 14, 2024

@bennerv done

@hawkowl hawkowl force-pushed the hawkowl/update-go-120 branch 2 times, most recently from 863ece3 to 4107f08 Compare February 19, 2024 04:10
@hawkowl hawkowl marked this pull request as ready for review February 19, 2024 09:55
@hawkowl
Copy link
Collaborator Author

hawkowl commented Feb 19, 2024

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hawkowl hawkowl added ready-for-review skippy pull requests raised by member of Team Skippy labels Feb 20, 2024
@hawkowl
Copy link
Collaborator Author

hawkowl commented Feb 20, 2024

Moved the ancillary changes into #3413

@jaitaiwan
Copy link
Contributor

Will wait to review once 3413 is merged.

@github-actions github-actions bot added needs-rebase branch needs a rebase and removed ready-for-review labels Feb 21, 2024
Copy link

Please rebase pull request.

@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Feb 21, 2024
@hawkowl
Copy link
Collaborator Author

hawkowl commented Feb 21, 2024

@jaitaiwan should be good to review now

@hawkowl
Copy link
Collaborator Author

hawkowl commented Feb 22, 2024

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -35,8 +33,6 @@ func usage() {
}

func main() {
rand.Seed(time.Now().UnixNano())
Copy link
Contributor

Choose a reason for hiding this comment

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

@hawkowl this should be replaced with rand.New(rand.NewSource(seed)) as per https://tip.golang.org/doc/go1.20#:~:text=the%20standard%20library.-,math/rand,-The%20math/rand ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why? rand.New returns a new rand source, it doesn't modify the global one. As per the go 1.20 docs, it's automatically seeded.

@@ -14,7 +14,7 @@ pr: none
variables:
Cdp_Definition_Build_Count: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
ONEBRANCH_AME_ACR_LOGIN: cdpxb8e9ef87cd634085ab141c637806568c00.azurecr.io
LinuxContainerImage: $(ONEBRANCH_AME_ACR_LOGIN)/b8e9ef87-cd63-4085-ab14-1c637806568c/official/ubi8/go-toolset:1.18.4 # Docker image which is used to build the project https://aka.ms/obpipelines/containers
LinuxContainerImage: $(ONEBRANCH_AME_ACR_LOGIN)/b8e9ef87-cd63-4085-ab14-1c637806568c/official/ubi8/go-toolset:1.20.10 # Docker image which is used to build the project https://aka.ms/obpipelines/containers
Copy link
Contributor

Choose a reason for hiding this comment

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

how to verify .10 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

confirmed

@dofinn
Copy link
Contributor

dofinn commented Mar 5, 2024

/lgtm

@hawkowl
Copy link
Collaborator Author

hawkowl commented Mar 5, 2024

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hawkowl
Copy link
Collaborator Author

hawkowl commented Mar 5, 2024

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hawkowl hawkowl mentioned this pull request Mar 5, 2024
@hawkowl hawkowl closed this Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review skippy pull requests raised by member of Team Skippy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants