Skip to content

[Bug]: TestS3FSIOMerger flaky — ioMerger.Merge timing assertion fails on CI runner #25550

Closed

Description

@matrix-meow

Problem

TestS3FSIOMerger in pkg/fileservice/s3_fs_test.go:1428 fails intermittently on CI:

s3_fs_test.go:1428: Error: Should be true

The test verifies IO operations are properly merged by the ioMerger. On CI runners under load, ioMerger.Merge takes ~200ms (vs expected fast merge), causing the merge timing assertion to fail.

Slow event trace shows:

<204.03899ms ioMerger.Merge begin>
<204.041955ms ioMerger.Merge wait>
<428.383411ms ioMerger.Merge end>

Recent Occurrences

Date PR/Run Job
2026-07-09 PR #25549 UT Test on Ubuntu/x86

Root Cause

The test relies on timing-sensitive IO merge behavior. Under CI runner load, disk cache wait/update operations take longer (~200ms), causing concurrent IO requests to not merge as expected, or the merge assertion to evaluate before merge completes.

Suggested Fix

  1. Increase timing tolerance in the merge assertion
  2. Or use synchronization primitives instead of timing-based assertions
  3. Or skip the test on CI when runner load is high

Activity

  1. added
    kind/bug
    severity/s0
    on Jul 9, 2026
  2. added theissue type on Jul 9, 2026
  3. added this to the MO-202607 milestone on Jul 9, 2026
  4. LeftHandCold commented on Jul 15, 2026

    @LeftHandCold
    Collaborator

    fixed

  5. ghost closed this as completedon Jul 15, 2026
  6. added a commit that references this issue on Nov 13, 2026
    9937f1b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugseverity/s0

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions