Skip to content

test(logging): make ITTailLogsTest robust against backend tailing delay#13366

Draft
lqiu96 wants to merge 3 commits into
mainfrom
fix-bug-482176323
Draft

test(logging): make ITTailLogsTest robust against backend tailing delay#13366
lqiu96 wants to merge 3 commits into
mainfrom
fix-bug-482176323

Conversation

@lqiu96
Copy link
Copy Markdown
Member

@lqiu96 lqiu96 commented Jun 4, 2026

Removes @ignore and transitions from a static 10s delay single write to 1-second periodic writes during real-time tailing session startup.

Fixes: #11908

… delay

Removes @ignore and transitions from a static 10s delay single write to 1-second periodic writes during real-time tailing session startup.

Fixes: b/482176323

Fixes: #11908
@lqiu96 lqiu96 requested a review from jinseopkim0 June 4, 2026 19:44
Copy link
Copy Markdown
Contributor

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

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 re-enables the integration test testTailLogEntries in ITTailLogsTest by removing the @Ignore annotation and reducing the timeout. It replaces a static sleep with a background thread that writes log entries periodically until they are intercepted. A critical issue was identified in the log name comparison: log.getLogName().equals(LOG_ID) will always evaluate to false because getLogName() returns a fully qualified path while LOG_ID is a simple identifier. This would cause the test to hang and time out. The reviewer suggested using endsWith(LOG_ID) instead.

lqiu96 added 2 commits June 4, 2026 20:00
Resolves PR 13366 feedback by comparing fully qualified log names returned by the streaming tailing RPC using .endsWith(LOG_ID).
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.

[java-logging] Flaky ITTailLogsTest: test timed out

1 participant