Skip to content

Flaky test: area cycle native: page input previews one exact area, releases once and cancels #511

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(received).toBe(expected) // Object.is equality

Expected: true
Received: false

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate

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 macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37305523083 (refs/heads/gh-readonly-queue/main/pr-504-356c5db0ddce32eadd4021e5035fd89ce44f340c, commit 6e917c4).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  3. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37316367749 (pull request #529, commit c5a4cc2).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  4. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37323299371 (refs/heads/gh-readonly-queue/main/pr-525-65db2aa8305ee6f93326bfd57c233149910e1841, commit c66bdb0).

    Error: expect(locator).toBeVisible() failed
    
    Locator: locator('[data-cycle=area]')
    Expected: visible
    Timeout: 5000ms
    Error: element(s) not found
    
    Call log:
      - Expect "toBeVisible" locator('[data-cycle=area]') with timeout 5000ms
      - waiting for locator('[data-cycle=area]')
    
  5. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37333045200 (refs/heads/gh-readonly-queue/main/pr-520-d98a4e86911ce54198d1a9fcf60c5b1b047ad2d7, commit 87466ac).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  6. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37337729296 (refs/heads/gh-readonly-queue/main/pr-522-c29d91cf054ab62642c1062c668f81d4fe65631a, commit 6ddd0de).

    Error: expect(locator).toHaveAttribute(expected) failed
    
    Locator: locator('[data-view-tab-bar] [role="tab"][data-display][aria-label*="한글 브라우저"]')
    Expected: "true"
    Timeout: 5000ms
    Error: element(s) not found
    
    Call log:
      - Expect "toHaveAttribute" locator('[data-view-tab-bar] [role="tab"][data-display][aria-label*="한글 브라우저"]') with timeout 5000ms
      - waiting for locator('[data-view-tab-bar] [role="tab"][data-display][aria-label*="한글 브라우저"]')
    
  7. yansfil commented on Oct 5, 2026

    @yansfil
    Contributor

    Failed both attempts on macOS (lane failed, not filed as flaky): https://github.com/modakbul-gongbang/hide/actions/runs/37344296551/job/111879838826 (pull request #554, commit 5a91961, main merged at 9bb7a76).

    The same spec passed on this pull request's previous head (1d05a15), which carries the same product change; #554 changes Agent tab closes and reopen only.

  8. yansfil commented on Oct 5, 2026

    @yansfil
    Contributor

    다시 실패했습니다. 이번에는 재시도까지 둘 다 실패했습니다. 위치는 PR #556의 desktop e2e(macOS)로, browser.spec.ts:753에서 toBeVisible element not found입니다. #556은 CI 계획만 바꾸는 PR이라 이 test와 무관합니다. 첫 시도 로그는 run 37344689288의 artifact에 있습니다: https://github.com/modakbul-gongbang/hide/actions/runs/37344689288

  9. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37345860417 (pull request #559, commit 208ecdd).

    Error: the page keeps the keyboard and the shell admits it
    
    the page keeps the keyboard and the shell admits it
    
    expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  10. yansfil commented on Oct 5, 2026

    @yansfil
    Contributor

    #534(desktop e2e의 page focus를 한 번만 주도록 바꾼 PR) 머지 뒤 이 test의 실패가 늘었습니다. pr-534 queue run 37339468790에서 2/2, #556 run 37344689288의 두 attempt에서 각각 2/2 실패했습니다. 789행 'the page keeps the keyboard and the shell admits it'도 함께 실패합니다. 회귀로 보고 #534 쪽에서 원인을 고칩니다.

  11. yansfil commented on Oct 5, 2026

    @yansfil
    Contributor

    Seen again on PR #563 (Overview layout, no change to area cycling): desktop e2e run 37350375473, both attempts failed at [data-cycle=area] not visible, then "the page keeps the keyboard and the shell admits it" false.

  12. yansfil commented on Oct 5, 2026

    @yansfil
    Contributor

    Update: this now fails on main too, both attempts, on 9749fcc (run 37348869063) and 0db27d0 (run 37352905893), with the same [data-cycle=area] not found. PR #563 failed it on all four attempts the same way, so it looks broken on main rather than flaky.

  13. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37357410267 (pull request #573, commit bb0b4a9).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  14. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37360697791 (pull request #571, commit e8f2d7e).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  15. github-actions commented on Oct 5, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37372899600 (pull request #454, commit fef0231).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  16. github-actions commented on Oct 6, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37395187450 (pull request #566, commit bc052c4).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  17. github-actions commented on Oct 6, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37403778186 (refs/heads/main, commit 0f3739a).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  18. github-actions commented on Oct 6, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37405118763 (pull request #597, commit cc59168).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  19. github-actions commented on Oct 6, 2026

    @github-actions
    ContributorAuthor

    Flaky again on macOS: https://github.com/modakbul-gongbang/hide/actions/runs/37425096687 (refs/heads/main, commit 532f062).

    Error: expect(received).toBe(expected) // Object.is equality
    
    Expected: true
    Received: false
    
    Call Log:
    - Timeout 5000ms exceeded while waiting on the predicate
    
  20. yansfil commented on Oct 6, 2026

    @yansfil
    Contributor

    원인과 증거 정리입니다. 수정은 #622입니다.

    • 원인: area cycle native가 창을 setSize(1280, 800)으로 CI work area(1024 폭)보다 넓게 열었습니다. macOS는 그 크기를 두다가 test의 BrowserWindow.blur()가 창을 order out/back 할 때 1024로 줄였고, 그 직후 두 View area의 page slot이 rect를 잃어 page가 숨었습니다. blur로 취소된 hold의 page는 다시 보이지 않아 keyboard를 돌려받지 못했습니다(857행).
    • 수정 전 반복(TEMP 증거 PR TEMP evidence run for #511 (do not merge) #620, 이 spec만 macOS runner 하나): 150회 중 16 실패. 실패마다 hold 시작 때 창이 1280 폭이었고, shell의 sync 기록은 blur 직후 모든 rect가 256 px 왼쪽으로 옮겨진 뒤 다음 frame에 slot rect가 없어지는 것을 보였습니다. 통과한 run은 hold 전에 이미 1024였습니다.
    • 고정 재현: fitWindow로 연 뒤 hold 직전에 창을 native로 1280x800으로 만들면 6회 6 실패, 같은 assertion, 같은 모양(rect 1280 기하 -> 256 px 이동 -> slot 없음, 실패 뒤 창 폭 1024).
    • CSS 폭만 1280에서 1024로 좁히는 재현(zoom)은 6회 6 통과했습니다. slot이 사라지는 것은 macOS가 창 자체를 줄일 때입니다.
    • 수정 후(fitWindow(app, WINDOW), 1024x640): 40회 40 통과, 다른 run에서 6회 6 통과.
    • 함께 본 것: 창이 돌아온 뒤 shell의 DOM focus가 rail의 'This Mac' tile에 있고 그 tooltip이 열립니다. 통과한 45회 모두 같아 이 실패의 원인은 아닙니다. hold 전과 중에는 page slot에 있다가 test의 blur() 직후(창 복귀 전) 이미 rail에 있어, blur()의 order out/back에서 생깁니다. 실제 앱 전환에서도 생기는지는 확인하지 않았습니다.
  21. yansfil commented on Oct 6, 2026

    @yansfil
    Contributor

    Closing as fixed by #622 (merged as b3a1ba7).
    The cause was the test, not the product: area cycle native opened its window at 1280x800, wider than a CI runner's 1024-point work area, and macOS clamped it when the test's own blur() ordered the window out and back in; the narrower body dropped the View areas, so the page the cancelled hold owed the keyboard to was hidden and could not take it back. The fixed geometry reproduced the failure 6 of 6 times (comment above), and the fix (every desktop spec sizes its window through fitWindow, enforced by hide-e2e/window-size-through-fixture) passed 40 of 40.
    On main, the first run with the fix (verify 37431718352) passed this test on its first attempt with no flaky test reported; 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