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

contrib: add check for new files in check-(api|k8s)-code-gen scripts #26790

Merged
merged 2 commits into from Jul 17, 2023

Conversation

giorio94
Copy link
Member

Currently, the check-(api|k8s)-code-gen scripts verify that generated files are up to date, running a full regeneration and checking the resulting output of git diff. Yet, git diff does not include unstaged files, meaning that brand new files would be missed. Let's fix this running git add --intent-to-add . first to make them appear in the diff.

Currently, the `check-(api|k8s)-code-gen` scripts verify that generated
files are up to date, running a full regeneration and checking the
resulting output of `git diff`. Yet, `git diff` does not include
unstaged files, meaning that brand new files would be missed.

Let's fix this running `git add --intent-to-add .` first to make them
appear in the diff.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
This commit adds the generated deepcopy for the tunnel map, which
was missing as not detected by the check-k8s-code-gen script.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 added release-note/misc This PR makes changes that have no direct user impact. sig/contributing Impacts contribution workflow, guidelines, and tools. labels Jul 12, 2023
@giorio94 giorio94 requested review from a team as code owners July 12, 2023 16:00
@giorio94 giorio94 requested review from aspsk and aditighag July 12, 2023 16:00
@giorio94
Copy link
Member Author

/test

@giorio94 giorio94 changed the title Mio/code gen check new files contrib: add check for new files in check-(api|k8s)-code-gen Jul 12, 2023
@giorio94
Copy link
Member Author

Conformance ginkgo hit #24514. Rerunning

@giorio94 giorio94 changed the title contrib: add check for new files in check-(api|k8s)-code-gen contrib: add check for new files in check-(api|k8s)-code-gen scripts Jul 12, 2023
Copy link
Contributor

@aspsk aspsk left a comment

Choose a reason for hiding this comment

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

Thanks, TIL

Copy link
Member

@aditighag aditighag left a comment

Choose a reason for hiding this comment

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

TIL!

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 17, 2023
@aditighag aditighag merged commit 4e2fe14 into cilium:main Jul 17, 2023
66 checks passed
@giorio94 giorio94 deleted the mio/code-gen-check-new-files branch July 24, 2023 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/contributing Impacts contribution workflow, guidelines, and tools.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants