tests: fix Kokoro change detection#8510
Conversation
Previously we'd be checking for a change in a subdirectory handwritten/xyz while already *in* handwritten/xyz, which is clearly wrong. After this change, we just check for a change within the current directory.
There was a problem hiding this comment.
Code Review
This pull request modifies several Kokoro trampoline scripts to change the RELATIVE_PKG_PATH variable from hardcoded package paths to ".". However, because the scripts execute a cd to the repository root prior to this check, setting the path to "." will cause the change detection mechanism to check the entire repository instead of the specific package. This defeats the purpose of the conditional test execution. The reviewer recommends reverting these changes across all affected scripts to preserve correct package-specific change detection.
Previously we'd be checking for a change in a subdirectory handwritten/xyz while already *in* handwritten/xyz, which is clearly wrong. After this change, we just check for a change within the current directory.
ab8541e to
091aeee
Compare
|
|
||
| /** | ||
| * Discovery Revision: 20260328 | ||
| * Discovery Revision: 20260429 |
There was a problem hiding this comment.
I suspect these were unintentional(?) but should be harmless to throw in here.
There was a problem hiding this comment.
I believe they were added by OwlBot automatically, so not in anything I created...
Previously we'd be checking for a change in a subdirectory handwritten/xyz while already in handwritten/xyz, which is clearly wrong. After this change, we just check for a change within the current directory.