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

Cleanup CI config #355

Merged
merged 1 commit into from Jan 31, 2023
Merged

Cleanup CI config #355

merged 1 commit into from Jan 31, 2023

Conversation

olivierlemasle
Copy link
Member

@olivierlemasle olivierlemasle commented Jan 6, 2023

  • Update GitHub actions
  • Remove duplicated entries in Go versions matrix:
    • '1.x' currently resolves to 'go1.19.4', just like '1.19'
    • stable=false option (which was removed in actions/setup-go@v3) enabled the installation of pre-release Go versions (now possible without that option), but it does not install "tip" version of Go
    • Jobs '1.x' with gostable=true and gostable=false were therefore duplicates of '1.19'
  • Use default checkout path and default GOPATH

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 6, 2023
@Jefftree
Copy link
Member

Jefftree commented Jan 9, 2023

Thank you for fixing this!

cc @apelisse, I don't have as much context around the 1.x test. When go 1.20 is released, I'm assuming 1.x will default to the latest version? Wouldn't it still be useful to have that test around?

@olivierlemasle
Copy link
Member Author

If we want to always test with the latest Go version, we can also use stable and oldstable aliases (they currently resolve to the latest 1.19.x and the latest 1.18.x version, but they'll be updated automatically when Go 1.20 is released)

include:
- go: '1.x'
gostable: false
go: [ '1.19', '1.18']
Copy link
Member

Choose a reason for hiding this comment

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

nit, but spaces are inconsistent. I agree with Jeff that I like having 1.x automatically pick the newest version. I'm not a big fan of using stable or oldstable since they don't necessarily match the policy that we have. Can we revert that line specifically?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I reverted that line.

I also don't like stable and oldstable very much; I prefer having control on the Go versions used by CI.
However, by keeping both 1.19 and 1.x, we're wasting CI compute resource 🌱

- Update GitHub actions
- Remove duplicated entries in Go versions matrix:
  - `stable=false` option (which was removed in actions/setup-go@v3) enabled
    the installation of pre-release Go versions (now possible without
    that option), but it does not install "tip" version of Go
  - Jobs '1.x' with gostable=true and gostable=false were therefore
    duplicates of '1.19'
- Use default checkout path and default GOPATH
@Jefftree
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jefftree, olivierlemasle

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 24, 2023
@Jefftree
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 31, 2023
@k8s-ci-robot k8s-ci-robot merged commit 5e46c6e into kubernetes:master Jan 31, 2023
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants