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 go version to 1.20 #1005

Merged
merged 4 commits into from
May 5, 2023
Merged

Upgrade go version to 1.20 #1005

merged 4 commits into from
May 5, 2023

Conversation

kovayur
Copy link
Contributor

@kovayur kovayur commented May 2, 2023

Description

Upgrade go version to 1.20.

Checklist (Definition of Done)

  • Unit and integration tests added
  • Added test description under Test manual
  • Documentation added if necessary (i.e. changes to dev setup, test execution, ...)
  • CI and all relevant tests are passing
  • Add the ticket number to the PR title if available, i.e. ROX-12345: ...
  • Discussed security and business related topics privately. Will move any security and business related topics that arise to private communication channel.
  • Add secret to app-interface Vault or Secrets Manager if necessary

Test manual

CI

@kovayur kovayur temporarily deployed to development May 2, 2023 15:48 — with GitHub Actions Inactive
@openshift-ci openshift-ci bot added the approved label May 2, 2023
@kovayur kovayur temporarily deployed to development May 2, 2023 15:48 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 2, 2023 15:48 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 2, 2023 16:24 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 2, 2023 16:24 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 2, 2023 16:24 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 2, 2023 16:48 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 2, 2023 16:48 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 2, 2023 16:48 — with GitHub Actions Inactive
@@ -330,11 +330,6 @@ test/rds: $(GOTESTSUM_BIN)
./fleetshard/pkg/central/cloudprovider/awsclient/...
.PHONY: test/rds

# Precompile everything required for development/test.
test/prepare:
$(GO) test -i ./internal/dinosaur/test/integration/...
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The go build and go test commands no longer accept the -i flag, which has been deprecated since Go 1.16.
https://tip.golang.org/doc/go1.20

@kovayur kovayur temporarily deployed to development May 4, 2023 08:41 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 4, 2023 08:41 — with GitHub Actions Inactive
@kovayur kovayur temporarily deployed to development May 4, 2023 08:41 — with GitHub Actions Inactive
@kovayur kovayur changed the title WIP: Upgrade go version to 1.20 Upgrade go version to 1.20 May 4, 2023
@@ -56,6 +56,9 @@ func (m *DataMigration) migrateOrganisationNames() (int, error) {
glog.Infof("migrated column %q to new value %q for central instance %q ", colName, central.OrganisationName, central.ID)
migratedCnt++
}
if err := rows.Err(); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kovayur kovayur requested a review from a team May 4, 2023 15:07
@kylape
Copy link
Contributor

kylape commented May 4, 2023

Where did you find the reference to registry.ci.openshift.org/stolostron/builder:go1.20-linux?

@kovayur
Copy link
Contributor Author

kovayur commented May 4, 2023

Where did you find the reference to registry.ci.openshift.org/stolostron/builder:go1.20-linux?

@kylape there's no openshift/release:golang-1.20 tag, so I searched openshift/release and found this one.
I found another tag after seeing your comment:
openshift/release:rhel-8-release-golang-1.20-openshift-4.14
But it weights ~1 Gig more. Should I use it instead?

@kylape
Copy link
Contributor

kylape commented May 5, 2023

hmmm neither of those image seem to be intended for broad use -- I worry they would be removed unexpectedly. I admit, though, that I don't really have a great alternative after doing a bit of searching. I assume we need to use something on registry.ci.openshift.org? Or can we use something outside of that regsitry?

Copy link
Collaborator

@porridge porridge left a comment

Choose a reason for hiding this comment

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

Wow, so many places!

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kovayur, kurlov, porridge

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:
  • OWNERS [kovayur,kurlov,porridge]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kovayur
Copy link
Contributor Author

kovayur commented May 5, 2023

hmmm neither of those image seem to be intended for broad use -- I worry they would be removed unexpectedly. I admit, though, that I don't really have a great alternative after doing a bit of searching. I assume we need to use something on registry.ci.openshift.org? Or can we use something outside of that regsitry?

Since we don't have any alternatives atm, let's merge this now and solve the problem if it has arisen. We could use images available from both openshift CI and app-interface (i.e. quay.io or registry.access.redhat.com). Ideally I'd use registry.access.redhat.com/ubi8/go-toolset image, but there's no golang 1.20 yet..

@kovayur kovayur merged commit 3439058 into main May 5, 2023
@kovayur kovayur deleted the yury/go-1.20 branch May 5, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants