Skip to content

chore(kokoro): fix IFS bug causing VM timeouts on java8-osx - #14921

Closed
sakthivelmanii wants to merge 2 commits into
mainfrom
chore-kokoro-java8-osx
Closed

sakthivelmanii wants to merge 2 commits into
mainfrom
chore-kokoro-java8-osx

Conversation

@sakthivelmanii

Copy link
Copy Markdown
Contributor

Problem

The common.sh runner script unsets IFS which triggers a shell bug in older macOS Bash (3.2.57) leading to infinite loops or timeouts (10800 seconds) in mvn install.

Solution

Replace unset IFS with IFS=$' \t\n' to safely reset the field separator without triggering the unset bug in Bash 3.2.

Fixes a Bash 3.2 bug on macOS runners where unset IFS causes mvn to hang.
@sakthivelmanii
sakthivelmanii requested a review from a team as a code owner November 4, 2026 06:24
@sakthivelmanii
sakthivelmanii enabled auto-merge (squash) November 4, 2026 06:24
@sakthivelmanii

Copy link
Copy Markdown
Contributor Author

/gemini review

@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 replaces unset IFS with IFS=$' \t\n' in .kokoro/common.sh to explicitly restore the default field separator. The review feedback suggests declaring IFS as local within the retry_with_backoff function to prevent polluting the global environment.

Comment thread .kokoro/common.sh Resolved

@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 replaces unset IFS with an explicit reset to the default whitespace characters (IFS=$' \t\n') in .kokoro/common.sh. The review feedback recommends declaring IFS as a local variable within the function to prevent polluting the global scope and avoiding unexpected side effects in other parts of the script.

Comment thread .kokoro/common.sh Resolved
@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 4, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 4, 2026
@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 4, 2026
auto-merge was automatically disabled November 4, 2026 15:07

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kokoro:force-run Add this label to force Kokoro to re-run the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants