FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[DRAFT] chore: improve system tests by daniel-sanche · Pull Request #18206 · googleapis/google-cloud-python · GitHub

[DRAFT] chore: improve system tests - #18206

Draft
daniel-sanche wants to merge 3 commits into
googleapis:mainfrom
daniel-sanche:improve_stuck_system_tests
Draft

[DRAFT] chore: improve system tests#18206
daniel-sanche wants to merge 3 commits into
googleapis:mainfrom
daniel-sanche:improve_stuck_system_tests

Conversation

Copy link
Copy Markdown
Contributor

The system tests in #18013 were running for 3 hours before timing out. This PR touches the same packages, to experiment at ways to improve reliability for the next release

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request increases the Kokoro build timeout to 6 hours and introduces a per-package timeout mechanism (defaulting to 35 minutes) using the timeout command in .kokoro/system.sh. It also adds tracking and reporting for timed-out packages, and triggers system tests across multiple packages. The reviewer feedback recommends declaring the pkg and timed_out variables as local at the top of the reap_parallel_results function in .kokoro/system.sh to prevent global namespace pollution and duplicate declarations.

Comment thread .kokoro/system.sh
Comment on lines 129 to 132
local retval=0
local failed_count=0
local timed_out_count=0
local succeeded_count=0

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

To prevent global namespace pollution and avoid duplicate local declarations, declare pkg and timed_out as local variables at the top of the reap_parallel_results function.

Suggested change
local retval=0
local failed_count=0
local timed_out_count=0
local succeeded_count=0
local retval=0
local failed_count=0
local timed_out_count=0
local succeeded_count=0
local pkg
local timed_out

Comment thread .kokoro/system.sh
for failed in "$LOG_DIR"/*.failed; do
if [ -f "$failed" ]; then
basename "$failed" .failed
local pkg=$(basename "$failed" .failed)

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Remove the local keyword here since pkg is now declared at the top of the function.

Suggested change
local pkg=$(basename "$failed" .failed)
pkg=$(basename "$failed" .failed)

Comment thread .kokoro/system.sh
done
for failed in "$LOG_DIR"/*.failed; do
if [ -f "$failed" ]; then
local pkg=$(basename "$failed" .failed)

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Remove the local keyword here since pkg is now declared at the top of the function.

Suggested change
local pkg=$(basename "$failed" .failed)
pkg=$(basename "$failed" .failed)

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL