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

test: fix presubmit script to handle dirs #10185

Merged
merged 1 commit into from
May 15, 2024

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented May 15, 2024

It seems #10064 changed the semantics from files to dirs for significant changes. This caused CHANGED_DIRS to fail when the grep test was done as sometimes there is no slash now. This piping was not actually needed though and the cut should work even if the character is not there.

This failure to grep caused presubmits to run for whole repo sometimes when changes were only made in one sub-module.

It seems googleapis#10064 changed the semantics from files to dirs for
significant changes. This caused `CHANGED_DIRS` to fail when the
grep test was done as sometimes there is no slash now. This piping
was not actually needed though and the cut should work even if the
character is not there.
@codyoss codyoss requested a review from a team as a code owner May 15, 2024 21:29
@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label May 15, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit 78c53a3 into googleapis:main May 15, 2024
8 checks passed
@noahdietz
Copy link
Contributor

Nice catch

@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 15, 2024
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