Skip to content

Flaky test: switching checkouts is one focus_checkout, and a plain folder's Overview opens from its row #495

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: page.goto: net::ERR_NO_BUFFER_SPACE at http://127.0.0.1:50346/?probe=1#token=8a32069426c910367b2e1e9083bc748f761ca458ab4ca9b4790da2d0c9064724
Call log:
  - navigating to "http://127.0.0.1:50346/?probe=1#token=8a32069426c910367b2e1e9083bc748f761ca458ab4ca9b4790da2d0c9064724", waiting until "load"

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. yansfil commented on Oct 5, 2026

    @yansfil
    Contributor

    원인 조사 결과: fixture 쪽 포트 고갈로는 설명되지 않고, 지금은 runner 일시 현상으로 본다.

    재발 범위

    • 최근 verify와 nightly run의 Windows e2e job 100개를 훑었다. ERR_NO_BUFFER_SPACE는 이 issue의 첫 run(37285624440) 1건뿐이다.
    • 그 실패는 shard의 28개 test 중 7번째, 앞에 6개 test가 돈 뒤 첫 page.goto에서 났다. 그 job의 Windows 시도 약 280회 중 1회다. 같은 test의 재시도는 통과했다.

    연결 수 측정

    • 이 test(s2.spec.ts "switching checkouts ...")를 macOS에서 한 번 돌리면서 netstat -an -p tcp를 0.1초 간격으로 샘플링해, 127.0.0.1의 고유한 연결(클라이언트 포트, 서버 포트 쌍)을 모았다. hided가 듣는 포트로 향한 연결을 세었다.
    • 결과는 test 하나에 연결 5개다(page의 HTTP, WebSocket, fixture의 /health 확인 등). 두 번 돌려 같은 수를 얻었다.
    • shard 하나는 28 test x 5 = 약 140개다.

    계산

    • Windows의 TIME_WAIT는 기본 120초이고 동적 포트 범위는 16384개다. 포트가 바닥나려면 새 연결이 초당 약 130개 이상이어야 한다.
    • shard 전체가 6.9분에 약 140개이므로 몇백 배 모자란다. fixture의 /health 확인은 daemon이 응답하면 끝나고(100ms 간격), page의 WebSocket 재연결은 500ms backoff이며, 로그에서도 test당 연결 거부는 종료 시 1회뿐이다.
    • /health 응답 body를 읽지 않는 것은 연결 1개 차이라 원인이 아니어서 코드는 바꾸지 않았다.

    재발하면 볼 것

    • 실패한 test 앞에서 그 job이 몇 개의 test를 돌렸는지.
    • 같은 시각에 runner에서 동시에 돌던 프로세스와 열려 있던 연결 수.
    • 같은 job의 다른 test 첫 goto에서도 났는지.

    닫는 조건

    • 만료일 2026-10-12까지 같은 시그니처가 재발하지 않으면 위 근거로 이 issue를 닫는다. 재발하면 위 항목을 모아 다시 본다.
  3. yansfil commented on Oct 6, 2026

    @yansfil
    Contributor

    Second occurrence of the same symptom, on another test: nightly 37391023049 (main, commit 9d5072f), web/e2e/s7.spec.ts "dragging a tab reorders, moves or splits once on a valid drop...", page.goto: net::ERR_NO_BUFFER_SPACE on the loopback page, passed on retry (#582).
    Both occurrences were in Windows jobs that ran the whole web suite.
    Since #566 (f2cc994) Windows runs only the @platform web tests, so each Windows job now starts far fewer pages; #582 is closed because its test is untagged and no longer runs on Windows.
    This issue stays open because its test is @platform and still runs on Windows in pull requests and nightly.
    Not confirmed: whether the narrower Windows runs end the symptom; the Windows @platform runs before the 2026-10-12 expiry decide whether this closes or needs a cause found in the runner's socket use.

  4. yansfil commented on Oct 8, 2026

    @yansfil
    Contributor

    No recurrence found. ERR_NO_BUFFER_SPACE is a Windows loopback socket exhaustion; the Windows socket summary on each failed attempt (web/e2e/windows-sockets-reporter.ts) is already in place and will name who holds the sockets on the next failure. Left open to the expiry; then fixed or deleted per TESTING.md.

  5. yansfil commented on Oct 9, 2026

    @yansfil
    Contributor

    같은 증상이 with-hide/hide-private#296(s3, run 37851351062)에서 다시 났습니다. 그때 socket 요약은 연결 63개, TimeWait 2로 고갈이 아니었습니다. 근거는 #840의 comment에 있습니다.

  6. github-actions commented on Oct 14, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38533594049 (pull request #1100, commit 5301665).

    Test timeout of 90000ms exceeded.
    

    This issue is past its expiry date. Decide now: fix it, delete the test, or say here why not.

  7. github-actions commented on Oct 14, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38534103429 (pull request #1094, commit f68e09d).

    Test timeout of 90000ms exceeded.
    

    This issue is past its expiry date. Decide now: fix it, delete the test, or say here why not.

  8. github-actions commented on Oct 14, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38535358414 (pull request #1098, commit a2fd7c5).

    Test timeout of 90000ms exceeded.
    

    This issue is past its expiry date. Decide now: fix it, delete the test, or say here why not.

  9. github-actions commented on Oct 14, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38540458582 (pull request #1098, commit f0eb6ca).

    Test timeout of 90000ms exceeded.
    

    This issue is past its expiry date. Decide now: fix it, delete the test, or say here why not.

  10. added a commit that references this issue on Nov 9, 2026
    7f73512
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