Skip to content

Update odo to use go 1.18#6166

Merged
openshift-merge-robot merged 5 commits intoredhat-developer:mainfrom
dharmit:fix-6090
Nov 9, 2022
Merged

Update odo to use go 1.18#6166
openshift-merge-robot merged 5 commits intoredhat-developer:mainfrom
dharmit:fix-6090

Conversation

@dharmit
Copy link
Member

@dharmit dharmit commented Sep 23, 2022

Signed-off-by: Dharmit Shah [email protected]

What type of PR is this:
/kind feature

What does this PR do / why we need it:
$subject

Which issue(s) this PR fixes:

Fixes #6090

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

  • I tested make validate and make test locally before opening the PR. Not sure if there was any other Makefile target that I should have tested locally.
  • For a list of steps I followed, PTAL Upgrade odo to use go 1.18 #6090 (comment).

@dharmit dharmit requested review from anandrkskd and feloy September 23, 2022 13:09
@openshift-ci openshift-ci bot added the kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation label Sep 23, 2022
@netlify
Copy link

netlify bot commented Sep 23, 2022

Deploy Preview for odo-docusaurus-preview ready!

Name Link
🔨 Latest commit 50bdddc
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/636b5d0f27fd700008a2f25c
😎 Deploy Preview https://deploy-preview-6166--odo-docusaurus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@odo-robot
Copy link

odo-robot bot commented Sep 23, 2022

Unit Tests on commit d3d5986 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Sep 23, 2022

Validate Tests on commit d3d5986 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Sep 23, 2022

Kubernetes Tests on commit d3d5986 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Sep 23, 2022

OpenShift Tests on commit d3d5986 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Sep 23, 2022

Windows Tests (OCP) on commit d3d5986 finished successfully.
View logs: TXT HTML

@anandrkskd
Copy link
Contributor

@dharmit, just wanted to know if we have checked with EXD team if they have go 1.18 on rhel8, I remember we have go1.18 available for rhel7.

"github.com/redhat-developer/odo/pkg/machineoutput"
"golang.org/x/text/cases"
"golang.org/x/text/language"
"os"
Copy link
Contributor

Choose a reason for hiding this comment

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

stdlib imports ("os" here) should appear in the first block of imports

Copy link
Member Author

Choose a reason for hiding this comment

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

IDE did something. I changed some settings, and hope it's not a problem any more. At least, I couldn't find any as far as I checked. Thanks for catching. 👍🏾

Comment on lines +5 to +6
"golang.org/x/text/cases"
"golang.org/x/text/language"
Copy link
Contributor

Choose a reason for hiding this comment

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

Non stdlib imports should not appear in first block of imports

Copy link
Member Author

Choose a reason for hiding this comment

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

@dharmit
Copy link
Member Author

dharmit commented Oct 3, 2022

@dharmit, just wanted to know if we have checked with EXD team if they have go 1.18 on rhel8, I remember we have go1.18 available for rhel7.

I have pinged Matej for this. I checked using the brew cli, but couldn't get the answer myself.

@anandrkskd
Copy link
Contributor

I have pinged Matej for this. I checked using the brew cli, but couldn't get the answer myself.

I checked for 1.18 on rhel8 but was not able to find it. for rhel 7 its available AFAIR

@dharmit
Copy link
Member Author

dharmit commented Oct 3, 2022

I have pinged Matej for this. I checked using the brew cli, but couldn't get the answer myself.

I checked for 1.18 on rhel8 but was not able to find it. for rhel 7 its available AFAIR

Indeed. That's exactly what I found. But I saw the list had only up to go 1.10, which seems weird to me because it's too old. That's why I have pinged Matej about it since he would know the best. :)

@feloy
Copy link
Contributor

feloy commented Oct 3, 2022

@dharmit All tests fail, did you rebase after this PR? #6164

@dharmit
Copy link
Member Author

dharmit commented Oct 3, 2022

@dharmit All tests fail, did you rebase after this PR? #6164

I don't remember if I did or didn't. Anyway, rebased now.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dharmit
Copy link
Member Author

dharmit commented Oct 3, 2022

/hold

Putting this on hold to prevent accidental merge till Red Hat Release Engg team says OK to update to 1.18. In the meantime, I'll try to address CI issues and the folks can review/approve it so that it can be merged once we have a go ahead.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Oct 3, 2022
@dharmit dharmit closed this Oct 20, 2022
@dharmit dharmit deleted the fix-6090 branch October 20, 2022 10:07
@dharmit dharmit restored the fix-6090 branch November 4, 2022 10:27
@dharmit dharmit reopened this Nov 4, 2022
@openshift-merge-robot openshift-merge-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. labels Nov 4, 2022
@odo-robot
Copy link

odo-robot bot commented Nov 4, 2022

NoCluster Tests on commit d3d5986 finished successfully.
View logs: TXT HTML

@dharmit
Copy link
Member Author

dharmit commented Nov 4, 2022

/hold

Putting this on hold to prevent accidental merge till Red Hat Release Engg team says OK to update to 1.18. In the meantime, I'll try to address CI issues and the folks can review/approve it so that it can be merged once we have a go ahead.

/hold cancel

Internal systems at RH have been updated to use go 1.18.

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Nov 4, 2022
@feloy
Copy link
Contributor

feloy commented Nov 4, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Nov 4, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feloy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Nov 4, 2022
@openshift-merge-robot openshift-merge-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. labels Nov 7, 2022
@dharmit
Copy link
Member Author

dharmit commented Nov 8, 2022

Both failures, NoCluster & OCP prow tests, are attributed to the problem mentioned in #6291 and fixed by #6292.

Signed-off-by: Dharmit Shah <[email protected]>
Erroneously I had used go 1.19 at various places.

Signed-off-by: Dharmit Shah <[email protected]>
Fixed a bunch of golangci-lint errors like below:

`File is not `gofmt`-ed with `-s``

using the command: `golangci-lint run --fix`

Signed-off-by: Dharmit Shah <[email protected]>
This is because with go 1.18, `go get` behaves as `go get -d` by
default. Which means that it will only download, but not install.

Signed-off-by: Dharmit Shah <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Nov 9, 2022
@dharmit
Copy link
Member Author

dharmit commented Nov 9, 2022

<< End Captured GinkgoWriter Output
  Unexpected error:
      <*url.Error | 0xc000170120>: {
          Op: "Get",
          URL: "http://127.0.0.1:45923/",
          Err: <*errors.errorString | 0xc0000b0100>{s: "EOF"},
      }
      Get "http://127.0.0.1:45923/": EOF
  occurred
  In [It] at: /go/src/github.com/redhat-developer/odo/tests/e2escenarios/e2e_test.go:32
------------------------------

overriding since tests are passing on IBM Cloud

/override ci/prow/v4.11-integration-e2e

@openshift-ci
Copy link

openshift-ci bot commented Nov 9, 2022

@dharmit: Overrode contexts on behalf of dharmit: ci/prow/v4.11-integration-e2e

Details

In response to this:

<< End Captured GinkgoWriter Output
 Unexpected error:
     <*url.Error | 0xc000170120>: {
         Op: "Get",
         URL: "http://127.0.0.1:45923/",
         Err: <*errors.errorString | 0xc0000b0100>{s: "EOF"},
     }
     Get "http://127.0.0.1:45923/": EOF
 occurred
 In [It] at: /go/src/github.com/redhat-developer/odo/tests/e2escenarios/e2e_test.go:32
------------------------------

overriding since tests are passing on IBM Cloud

/override ci/prow/v4.11-integration-e2e

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.

@openshift-merge-robot openshift-merge-robot merged commit f062c11 into redhat-developer:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation lgtm Indicates that a PR is ready to be merged. Required by Prow.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade odo to use go 1.18

5 participants