Skip to content

tests: fix Kokoro change detection#8510

Open
jskeet wants to merge 8 commits into
mainfrom
fix-change-detection
Open

tests: fix Kokoro change detection#8510
jskeet wants to merge 8 commits into
mainfrom
fix-change-detection

Conversation

@jskeet

@jskeet jskeet commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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.

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.
@jskeet jskeet requested review from a team as code owners June 10, 2026 14:48

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread handwritten/bigquery-storage/.kokoro/trampoline_v2.sh
Comment thread handwritten/bigquery/.kokoro/trampoline_v2.sh
Comment thread handwritten/bigtable/.kokoro/trampoline_v2.sh
Comment thread handwritten/datastore/.kokoro/trampoline_v2.sh
Comment thread handwritten/error-reporting/.kokoro/trampoline_v2.sh
Comment thread handwritten/logging-winston/.kokoro/trampoline_v2.sh
Comment thread handwritten/logging/.kokoro/trampoline_v2.sh
Comment thread handwritten/pubsub/.kokoro/trampoline_v2.sh
Comment thread handwritten/spanner/.kokoro/trampoline_v2.sh
Comment thread handwritten/storage/.kokoro/trampoline_v2.sh
@jskeet jskeet requested a review from a team as a code owner June 10, 2026 15:03
jskeet and others added 3 commits June 10, 2026 16:08
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.
@jskeet jskeet force-pushed the fix-change-detection branch from ab8541e to 091aeee Compare June 10, 2026 15:08
@jskeet jskeet added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 10, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 10, 2026
@jskeet jskeet added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 10, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 10, 2026

/**
* Discovery Revision: 20260328
* Discovery Revision: 20260429

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suspect these were unintentional(?) but should be harmless to throw in here.

@feywind feywind added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 10, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 10, 2026
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.

3 participants