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

Stick with go <1.19 #352

Merged
merged 2 commits into from
Aug 18, 2022
Merged

Stick with go <1.19 #352

merged 2 commits into from
Aug 18, 2022

Conversation

zeeke
Copy link
Member

@zeeke zeeke commented Aug 17, 2022

Using a dynamic version like '>=1.18.2' may lead to unexpected
build results, with new go tools in place.

This PR should fix errors like this, as they occur due to go 1.19

Run actions/setup-go@v3
Setup go version spec >=1.18.2
Found in cache @ /opt/hostedtoolcache/go/1.19.0/x64
Added go to the path
Successfully set up Go version >=1.1[8](https://github.com/k8snetworkplumbingwg/sriov-network-operator/runs/7839168685?check_suite_focus=true#step:2:9).2
go version go1.1[9](https://github.com/k8snetworkplumbingwg/sriov-network-operator/runs/7839168685?check_suite_focus=true#step:2:10) linux/amd64

@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@SchSeba
Copy link
Collaborator

SchSeba commented Aug 17, 2022

Thanks!

/lgtm

@coveralls
Copy link

coveralls commented Aug 17, 2022

Pull Request Test Coverage Report for Build 2882586772

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 7 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.01%) to 15.814%

Files with Coverage Reduction New Missed Lines %
api/v1/helper.go 3 34.8%
controllers/sriovibnetwork_controller.go 4 65.35%
Totals Coverage Status
Change from base Build 2841240107: -0.01%
Covered Lines: 1156
Relevant Lines: 7310

💛 - Coveralls

.github/workflows/go.yml Outdated Show resolved Hide resolved
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@zeeke
Copy link
Member Author

zeeke commented Aug 18, 2022

Retitling as we set go version <1.19

@zeeke zeeke changed the title Stick with go v1.18.2 Stick with go <1.19 Aug 18, 2022
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@SchSeba
Copy link
Collaborator

SchSeba commented Aug 18, 2022

Thanks!

/lgtm

@zeeke zeeke requested a review from e0ne August 18, 2022 09:41
@adrianchiris
Copy link
Collaborator

Before i LGTM. are we sure the >1.19 will run latest go 1.18 and will not by some weird circumstances run older version of go ?

Copy link
Collaborator

@e0ne e0ne left a comment

Choose a reason for hiding this comment

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

@SchSeba
Copy link
Collaborator

SchSeba commented Aug 18, 2022

I will always run latest version that is < 1.19

@zeeke
Copy link
Member Author

zeeke commented Aug 18, 2022

Before i LGTM. are we sure the >1.19 will run latest go 1.18 and will not by some weird circumstances run older version of go ?

Good point. I tried understanding how actions/setup-go actually works:

And it seems to look in a local, repository-shared, cache. So it seems to be possible to get a go1.17 build in some rare case.

Options:
a. stick with 1.8.2 (Pro: We know for sure which version we use in CI, Cons: manual bump of go version)
b. use '>=1.8.2 && < 1.9.0'
c. keep '<1.9.0' and see how often an old go version occurs

(personally, I'd go for a)

@SchSeba
Copy link
Collaborator

SchSeba commented Aug 18, 2022

I will prefer to go with b it should not be any change between Z stream of go 1.18

There was a specific issue in 1.18.1 but in general we should not care what Z stream it use

@adrianchiris
Copy link
Collaborator

i would go with b as well

@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

Go 1.19 has different rules in `gofmt` and may lead to
broken CI builds.

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@zeeke
Copy link
Member Author

zeeke commented Aug 18, 2022

Ok, going for b

go-version: '>=1.18.2 <1.19'

@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

Copy link
Collaborator

@SchSeba SchSeba 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 @zeeke and sorry for the ping-pong :)

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

Successfully merging this pull request may close these issues.

5 participants