Skip to content

fix(datalineage): increase integration test connection timeout#3411

Open
duwenxin99 wants to merge 1 commit into
mainfrom
fix/datalineage
Open

fix(datalineage): increase integration test connection timeout#3411
duwenxin99 wants to merge 1 commit into
mainfrom
fix/datalineage

Conversation

@duwenxin99

Copy link
Copy Markdown
Contributor

fix #3386

@duwenxin99 duwenxin99 requested a review from a team as a code owner June 12, 2026 19:15

@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 increases the polling timeouts in the data lineage integration tests from 90 seconds to 3 minutes to account for eventual consistency. The reviewer points out that having multiple 3-minute timeouts could cause the total test execution to exceed the overall 5-minute context timeout, potentially causing test flakiness. They recommend increasing the overall test timeout to 10 minutes to prevent this issue.

// Poll up to 90 seconds for eventual consistency
links, err := pollSearchLineage(t, "my-datalineage-search-tool", reqBody, sourceFQN, targetFQN, 90*time.Second)
// Poll up to 3 minutes for eventual consistency
links, err := pollSearchLineage(t, "my-datalineage-search-tool", reqBody, sourceFQN, targetFQN, 3*time.Minute)

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.

medium

Increasing the polling timeout to 3 minutes here (and another 3 minutes in runDatalineageSearchWithProcessDetailsTest) means the total potential test execution time can exceed the overall test context timeout of 5 minutes (defined at line 167). Specifically, the test performs server startup wait (up to 3 minutes), first lineage poll (up to 3 minutes), and process details poll (up to 3 minutes). If these steps take longer than 5 minutes in total, the overall context ctx will be cancelled, killing the server command and causing subsequent requests to fail. Please consider increasing the overall test timeout at line 167 (e.g., to 10 minutes) to prevent test flakiness.

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.

Cloud Build Failure Reporter: toolbox-test-on-merge (toolbox-testing-438616) failed

2 participants