Skip to content

Flaky test: Selecting an Agent tab moves the title width to it, and the selected tab stays in sight once the strip scrolls #754

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: 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 8 elements
      - unexpected value "8"
    11 × locator resolved to 15 elements
       - unexpected value "15"

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. github-actions commented on Oct 7, 2026

    @github-actions
    ContributorAuthor

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

    Error: expect(locator).toHaveCount(expected) failed
    
    Locator:  locator('[data-agent-tab-bar] [role=tab]')
    Expected: 16
    Received: 14
    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 3 elements
          - unexpected value "3"
        11 × locator resolved to 14 elements
           - unexpected value "14"
    
  3. github-actions commented on Oct 8, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/37715503335 (pull request #769, commit 19ddb4c).

    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 10 elements
          - unexpected value "10"
        11 × locator resolved to 15 elements
           - unexpected value "15"
    
  4. 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.

  5. github-actions commented on Oct 8, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/37760521096 (pull request #793, commit 01772e0).

    Error: expect(locator).toHaveCount(expected) failed
    
    Locator:  locator('[data-agent-tab-bar] [role=tab]')
    Expected: 16
    Received: 7
    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 7 elements
           - unexpected value "7"
    
  6. github-actions commented on Oct 8, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/37827268740 (pull request #817, commit 8eaca52).

    Error: expect(locator).toHaveCount(expected) failed
    
    Locator:  locator('[data-agent-tab-bar] [role=tab]')
    Expected: 16
    Received: 7
    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 7 elements
           - unexpected value "7"
    
  7. github-actions commented on Oct 8, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/37831451486 (pull request #817, commit 8fee2b2).

    Error: expect(locator).toHaveCount(expected) failed
    
    Locator:  locator('[data-agent-tab-bar] [role=tab]')
    Expected: 16
    Received: 4
    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 4 elements
           - unexpected value "4"
    
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