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 #550

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]')
    2 × locator resolved to 5 elements
      - unexpected value "5"
    2 × locator resolved to 6 elements
      - unexpected value "6"
    - locator resolved to 7 elements
    - unexpected value "7"
    - locator resolved to 12 elements
    - unexpected value "12"
    8 × locator resolved to

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

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/37373519242 (pull request #577, commit cf04a54).

    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]')
        - locator resolved to 4 elements
        - unexpected value "4"
        2 × locator resolved to 5 elements
          - unexpected value "5"
        - locator resolved to 6 elements
        - unexpected value "6"
        - locator resolved to 7 elements
        - unexpected value "7"
        - locator resolved to 12 elem
    
  3. yansfil commented on Oct 6, 2026

    @yansfil
    Contributor

    Closing as fixed by #569 (merged 2026-10-06 00:40Z), the same cause as #579: the last recurrence (2026-10-05 21:40Z, Linux, 16 tabs with 15 shown) predates #569, whose pane.get confirmation keeps a tab created in the project folder from binding to the /tmp cwd Herdr's pane_created can carry. No recurrence in the 19 completed verify runs since; the flaky report reopens this if it comes back.

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