Skip to content

chore(ci): fix presubmit script exit codes#14230

Merged
shollyman merged 1 commit into
googleapis:mainfrom
westarle:fix-presubmit-exit-codes
Mar 23, 2026
Merged

chore(ci): fix presubmit script exit codes#14230
shollyman merged 1 commit into
googleapis:mainfrom
westarle:fix-presubmit-exit-codes

Conversation

@westarle

@westarle westarle commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Presubmits aren't currently reporting test errors. This fixes the presubmit script to capture gotestsum exit codes correctly so that test failures are reported by Kokoro on presubmits.

@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 attempts to fix exit code handling in the presubmit script and re-enables a test. While re-enabling the test is fine, the fix for the gotestsum exit code is incorrect as it captures the exit code from tee due to the pipe. I've left a critical comment suggesting the use of PIPESTATUS to correctly capture the exit code. The comment also details a more significant issue with the gotestsum command being malformed and provides a complete fix for the command block to ensure the CI script works as expected.

Comment thread internal/kokoro/presubmit.sh Outdated
@westarle
westarle force-pushed the fix-presubmit-exit-codes branch from 5209705 to bdf4e37 Compare March 22, 2026 03:34
Fixes the presubmit script to capture gotestsum exit codes correctly so that test failures are actually reported by Kokoro.
@westarle
westarle force-pushed the fix-presubmit-exit-codes branch from bdf4e37 to 3902f71 Compare March 22, 2026 03:40
@westarle
westarle marked this pull request as ready for review March 22, 2026 03:54
@westarle
westarle requested review from a team as code owners March 22, 2026 03:54
@westarle westarle changed the title chore(ci): fix presubmit script exit codes and enable trace tests chore(ci): fix presubmit script exit codes Mar 23, 2026

@shollyman shollyman 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.

Thanks!

@shollyman
shollyman merged commit c5e65ce into googleapis:main Mar 23, 2026
10 checks passed
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.

2 participants