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

Drop go 1.16 support & add go 1.20 #764

Merged
merged 7 commits into from
Mar 29, 2023
Merged

Drop go 1.16 support & add go 1.20 #764

merged 7 commits into from
Mar 29, 2023

Conversation

gaby
Copy link
Member

@gaby gaby commented Mar 28, 2023

  • Remove support for go 1.16 from all storage drivers
  • Add go 1.20 to test matrix of each storage driver
  • Add macos-latest to test matrix of each storage driver
  • Run go mod tidy on each driver
  • Added matrix test to vulnerability and security workflows
  • Fixed the platform field for each workflow (was hardcoded to ubuntu-latest)

@sixcolors
Copy link
Member

@gaby looks good to me so far. But, I’m getting blurry eyed. I’ll run tests locally tomorrow just to see if anything odd comes up on actual macOS vs macOS-latest in the ci.

Thanks for the PR!

@gaby
Copy link
Member Author

gaby commented Mar 28, 2023

I just realized... These test are not actually running on each OS. They all have the same "runs-on" hardcoded to ubuntu-latest

@sixcolors sixcolors added the 🤖 Dependencies Pull requests that update a dependency file label Mar 28, 2023
@sixcolors
Copy link
Member

sixcolors commented Mar 28, 2023

I just realized... These test are not actually running on each OS. They all have the same "runs-on" hardcoded to ubuntu-latest

told you I’m getting blurry eyed. 🥱🛌

runs-on: ${{ matrix.platform }}

@gaby
Copy link
Member Author

gaby commented Mar 28, 2023

gosec requires go 1.19 to run, not sure how it was even working before?

@gaby
Copy link
Member Author

gaby commented Mar 28, 2023

I just realized... These test are not actually running on each OS. They all have the same "runs-on" hardcoded to ubuntu-latest

told you I’m getting blurry eyed. 🥱🛌

runs-on: ${{ matrix.platform }}

We are running Docker containers for several test, and these are only support on Linux

@gaby
Copy link
Member Author

gaby commented Mar 28, 2023

Don't merge yet, I forgot to remove the platforms from each test. Most of the tests can only run in "ubuntu-latest".

This will reduce the number of jobs created by the CI

@sixcolors
Copy link
Member

sixcolors commented Mar 28, 2023

Don't merge yet, I forgot to remove the platforms from each test. Most of the tests can only run in "ubuntu-latest".

This will reduce the number of jobs created by the CI

True and probably not worth the effort to install on the host, although many of them run multi-platform (Postgres, MySQL, redis etc). It’s probably safe to assume deployments are overwhelmingly using Linux based containers.

examples of some actions that could allow us to use matrix runs-on in CI:

https://github.com/marketplace/actions/setup-postgresql-for-linux-macos-windows
https://github.com/marketplace/actions/actions-setup-redis
https://github.com/ankane/setup-mysql

@gaby
Copy link
Member Author

gaby commented Mar 28, 2023

Don't merge yet, I forgot to remove the platforms from each test. Most of the tests can only run in "ubuntu-latest".
This will reduce the number of jobs created by the CI

True and probably not worth the effort to install on the host, although many of them run multi-platform (Postgres, MySQL, redis etc). It’s probably safe to assume deployments are overwhelmingly using Linux based containers.

examples of some actions that could allow us to use matrix runs-on in CI:

github.com/marketplace/actions/setup-postgresql-for-linux-macos-windows github.com/marketplace/actions/actions-setup-redis ankane/setup-mysql

Awesome, I will add those then. Removing the platforms reduce the number of tests down to less than 40

@sixcolors
Copy link
Member

sixcolors commented Mar 28, 2023

Awesome, I will add those then. Removing the platforms reduce the number of tests down to less than 40

The same guy did a bunch, I guess he needed them for the same reason:

https://github.com/ankane/setup-mysql#related-actions

Anyway, I'm happy with the PR. Did you have more commits?

Copy link
Member

@sixcolors sixcolors left a comment

Choose a reason for hiding this comment

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

LGTM

@gaby
Copy link
Member Author

gaby commented Mar 28, 2023

@sixcolors Discussing on discord what to do about the missing platforms.

@ReneWerner87 ReneWerner87 merged commit f1db2b9 into main Mar 29, 2023
@ReneWerner87 ReneWerner87 changed the title Updates to dependencies and test workflows Drop go 1.16 support & add go 1.20 Mar 29, 2023
@gaby gaby deleted the updates branch March 29, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 Dependencies Pull requests that update a dependency file 🧹 Updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants