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

chore(ci): Test against all supported dependency versions #159

Merged

Conversation

haines
Copy link
Member

@haines haines commented Jun 7, 2024

Regenerating the protobuf code in #156 dropped some backwards-compatibility code from the generated files, and I realised that our CI only tests against the latest versions of the grpc and google-protobuf gems so we wouldn't catch if this meant we needed to increase the minimum supported version of our dependencies.

As it turns out, dropping the backwards-compatibility code didn't cause any issues, but the switch to protovalidate did. Versions of google-protobuf prior to 3.21.12 cannot load their proto descriptors, failing with

field with proto3_optional was not in a oneof (buf.validate.priv.field)

This PR expands the test matrix to cover all the latest minor versions within our stated compatibility ranges, and increases the google-protobuf version requirement to 3.21.12+.

@haines haines force-pushed the test-against-all-supported-dependency-versions branch 8 times, most recently from 39f2faa to 5dca3e8 Compare June 10, 2024 08:04
Signed-off-by: Andrew Haines <haines@cerbos.dev>
@haines haines force-pushed the test-against-all-supported-dependency-versions branch from 5dca3e8 to e46d34e Compare June 10, 2024 08:40
@haines haines marked this pull request as ready for review June 10, 2024 08:49
@haines haines requested a review from charithe June 10, 2024 08:50
Signed-off-by: Andrew Haines <haines@cerbos.dev>
Earlier versions fail to load the `protovalidate` extension field descriptors with
"field with proto3_optional was not in a oneof (buf.validate.priv.field)".

protocolbuffers/upb#1034

Signed-off-by: Andrew Haines <haines@cerbos.dev>
@haines haines force-pushed the test-against-all-supported-dependency-versions branch from 702fe61 to 346cbb3 Compare June 10, 2024 08:52
@haines haines enabled auto-merge (squash) June 10, 2024 08:55
@haines haines merged commit 1bfb7c7 into cerbos:main Jun 10, 2024
51 checks passed
@haines haines deleted the test-against-all-supported-dependency-versions branch June 10, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants