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

Add autofix protobuf job #2031

Merged
merged 6 commits into from
Nov 12, 2024
Merged

Add autofix protobuf job #2031

merged 6 commits into from
Nov 12, 2024

Conversation

chipshort
Copy link
Collaborator

@chipshort chipshort commented Nov 8, 2024

closes #1967

Steps for the job are taken out of the Makefile's proto-all job.
Should we also add a proto-lint check to CI or does that already exist somewhere?

@chipshort chipshort marked this pull request as ready for review November 8, 2024 05:22
@chipshort chipshort requested a review from pinosu November 8, 2024 05:22
Copy link
Contributor

@pinosu pinosu left a comment

Choose a reason for hiding this comment

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

Nice work!
I think we don't have proto linting covered anywhere else, so it would be great if you could add it in here.

Also I noticed we can update the Makefile in such a way that we use the same protoImage also for proto-lint and proto-check-breaking by replacing @$(DOCKER_BUF) with @$(protoImage) buf .
This will make it straightforward also for the CI

@chipshort
Copy link
Collaborator Author

Hmm, it seems there is something wrong with the autofix job?

@chipshort
Copy link
Collaborator Author

Ok, it seems the problem in 42e3305 and 1e50ff7 was caused by the fact that the CI doesn't run on this branch, but the rebased-on-main version of it. Rebasing on main fixed it.

Copy link
Contributor

@pinosu pinosu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@chipshort chipshort merged commit 9c2f332 into main Nov 12, 2024
18 checks passed
@chipshort chipshort deleted the co/autofix-protobuf branch November 12, 2024 05:22
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.

[CI] Add job to check for mismatches between protobuf and generated code
2 participants