Skip to content

Backport(v1.19): test: stabilize in_tail compatibility notification test (#5565) - #5571

Open
github-actions[bot] wants to merge 1 commit into
v1.19from
backport-to-v1.19/pr5565
Open

github-actions[bot] wants to merge 1 commit into
v1.19from
backport-to-v1.19/pr5565

Conversation

@github-actions

Copy link
Copy Markdown

Which issue(s) this PR fixes:
Backport #5565

None.

What this PR does / why we need it:

The compatibility test can race with the stat watcher: after writing the
file, the watcher may call on_notify before the test's explicit call.
That consumes the test subclass's one-time false response, so the read
position has already advanced when the assertion runs.

Disable the stat watcher in this test so its explicit notifications control
the call order.

The failure reported by PR #5529 (GitHub Actions run 39210929391) is this
test-ordering instability, not a failure caused by the multithreading
implementation. The test uses the default synchronous mode, and this
stabilizes a compatibility test introduced by a separate refactoring.

Docs Changes:

None.

Release Note:

None; this only makes a test deterministic.

Assisted-by: LLM GPT-6 Luna (OpenAI)

**Which issue(s) this PR fixes**:

None.

**What this PR does / why we need it**:

The compatibility test can race with the stat watcher: after writing the
file, the watcher may call on_notify before the test's explicit call.
That consumes the test subclass's one-time false response, so the read
position has already advanced when the assertion runs.

Disable the stat watcher in this test so its explicit notifications
control
the call order.

The failure reported by PR #5529 (GitHub Actions run 39210929391) is
this
test-ordering instability, not a failure caused by the multithreading
implementation. The test uses the default synchronous mode, and this
stabilizes a compatibility test introduced by a separate refactoring.

**Docs Changes**:

None.

**Release Note**:

None; this only makes a test deterministic.

Assisted-by: LLM GPT-6 Luna (OpenAI)

---------

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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