Skip to content

Flaky test: Agent tabs shrink in stages, the selected one keeping its title longest, and marks come only when nothing else fits #756

Closed

Description

@github-actions

CI found this test flaky: it failed, then passed on the one retry in the same job, so the run passed.

First attempt's failure:

Error: expect(locator).toHaveCount(expected) failed

Locator:  locator('[data-agent-tab-bar] [role=tab]')
Expected: 16
Received: 8
Timeout:  5000ms

Call log:
  - Expect "toHaveCount" locator('[data-agent-tab-bar] [role=tab]') with timeout 5000ms
  - waiting for locator('[data-agent-tab-bar] [role=tab]')
    14 × locator resolved to 8 elements
       - unexpected value "8"

Fix the cause or delete the test by the expiry date; a flaky test is not left running. A longer timeout, more retries or a lower expectation does not end this issue. Each later flaky run adds a comment here.

Activity

  1. added
    bug
    quarantine
    on Oct 7, 2026
  2. yansfil commented on Oct 8, 2026

    @yansfil
    Contributor

    Evidence so far, no cause named: Linux CI with 4 to 6 busy loops and retries 0 ran the checkout-owner specs 180 times (3 tests x 60) and the tab-strip, pane and drop specs about 20 times each with 0 failures of this kind; macOS under load 12 to 20 runs each, 0. The core's replica code (herdr-core/src/session_sync/replica.rs) shows no deterministic path that loses a tab_created; the open hypothesis is a tab_created applied while the replica is still in Reconcile mode (within 1 s of the bootstrap snapshot) or held back until its layout_updated. #790 makes the next failure record Herdr's tab lists and the page's strip at the moment the wait gives up. Left open to the expiry; then fixed or deleted per TESTING.md.

  3. github-actions commented on Oct 8, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/37810892341 (refs/heads/main, commit 7a42024).

    Error: expect(locator).toHaveCount(expected) failed
    
    Locator:  locator('[data-agent-tab-bar] [role=tab]')
    Expected: 16
    Received: 9
    Timeout:  5000ms
    
    Call log:
      - Expect "toHaveCount" locator('[data-agent-tab-bar] [role=tab]') with timeout 5000ms
      - waiting for locator('[data-agent-tab-bar] [role=tab]')
        14 × locator resolved to 9 elements
           - unexpected value "9"
    
  4. github-actions commented on Oct 8, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/37850720529 (refs/heads/main, commit 0a5afc8).

    Error: expect(locator).toHaveCount(expected) failed
    
    Locator:  locator('[data-agent-tab-bar] [role=tab]')
    Expected: 16
    Received: 15
    Timeout:  5000ms
    
    Call log:
      - Expect "toHaveCount" locator('[data-agent-tab-bar] [role=tab]') with timeout 5000ms
      - waiting for locator('[data-agent-tab-bar] [role=tab]')
        3 × locator resolved to 11 elements
          - unexpected value "11"
        11 × locator resolved to 15 elements
           - unexpected value "15"
    
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

    bugquarantine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions