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

bazel,ci: check generated code and docs are up-to-date in CI #89516

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

rickystewart
Copy link
Collaborator

When I created the file build/bazelutil/checked_in_genfiles.txt it was meant to contain an exhaustive list of all checked-in Go code, to be used by CI. In reality this file never had an exhaustive list and is not updated when new checked-in generated files are added. These days we have the pkg/gen infrastructure which does keep an exhaustive list of checked-in generated code, so the file is redundant anyway. Here I delete the file and just directly run pkg/gen for checking whether the generated code is up-to-date.

Closes #88744.

Release note: None

When I created the file `build/bazelutil/checked_in_genfiles.txt` it was
meant to contain an exhaustive list of all checked-in Go code, to be
used by CI. In reality this file never had an exhaustive list and is not
updated when new checked-in generated files are added. These days we
have the `pkg/gen` infrastructure which *does* keep an exhaustive list
of checked-in generated code, so the file is redundant anyway. Here
I delete the file and just directly run `pkg/gen` for checking whether
the generated code is up-to-date.

Closes cockroachdb#88744.

Release note: None
@rickystewart rickystewart requested a review from a team as a code owner October 6, 2022 19:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@rail rail left a comment

Choose a reason for hiding this comment

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

LGTM, :shipit:

@rickystewart
Copy link
Collaborator Author

bors r=rail

@craig
Copy link
Contributor

craig bot commented Oct 6, 2022

Build succeeded:

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: should not pass if dev gen go results in a diff
3 participants