Skip to content

Reduce macOS runner demand in pull request CI #267

Closed

Description

@yansfil

The task you are doing when you want this

Review a pull request and get a timely required verify result.
In run 36582083452, the Ubuntu checks job started 3 seconds after job creation, while the five macOS jobs started 8 minutes 30 seconds to 10 minutes 6 seconds later.
GitHub reported macOS runner capacity constraints on that run.

What hide does today

The pull request workflow requests five macos-15 jobs: the Rust workspace, three web end-to-end shards, and desktop end-to-end.
The checks and unit suites already run on Ubuntu.
The workflow records that an earlier attempt to run web end-to-end on Linux failed 22 of 87 tests because of a terminal control socket pipe failure, an empty headless Chromium clipboard, and scrollbar geometry.
Issue with-hide/hide#231 tracks intermittent failures on macOS runners; this issue tracks runner demand and queue time.

What it should do instead

Reduce the number of required macOS jobs while preserving the checks that prove the shipped macOS app works.

  • Assess which Rust workspace checks can run on Ubuntu, and move portable coverage there.
  • Reproduce and resolve the Linux web end-to-end failures by fixing platform assumptions in the product or fixtures, then move portable browser flows to Ubuntu.
  • Keep a macOS lane for Electron, native window behavior, and any other behavior that specifically requires macOS.
  • Keep the required verify gate dependent on every required lane; do not make a previously covered flow optional or skip a failing test to obtain a green run.
  • Report the before and after macOS job count, queue time, job execution time, and total time for representative pull request runs.

Completion means the workflow requests fewer macOS jobs, the moved suites pass on Linux, and the retained macOS suite still checks native behavior.
If a suite cannot move, document the exact platform dependency and keep only the smallest necessary macOS portion.

Where the authority for it lives

  • .github/workflows/pr.yml defines the runner placement, three web shards, and required verify dependencies.
  • web/playwright.config.ts defines the browser suite's single worker per runner.
  • CONTRIBUTING.md, docs/BUILD.md, and docs/VERIFICATION.md describe the corresponding local checks and evidence boundaries; update them with any lane change.

Activity

  1. added
    enhancement
    on Sep 29, 2026
  2. yansfil commented on Oct 3, 2026

    @yansfil
    ContributorAuthor

    2026-10-03 점검: runner 수요와 대기는 개선됐지만, 원문의 테스트 필수성 조건 때문에 이슈를 유지합니다.

    #285의 Rust/Linux 이동, #294의 Linux web와 macOS platform 분리, #305의 한 번 빌드·6 shard, #307의 macOS 계약 통합으로 macOS job이 5개에서 2개로 줄었습니다.
    .github/workflows/pr.yml의 verify는 모든 필수 lane의 성공을 요구하며 native macOS desktop과 platform 검사를 유지합니다.

    jobs API의 생성→시작을 대기, 시작→완료를 실행 시간으로 계산했습니다.
    macOS 실행 합계는 job별 실행 시간의 합계이며 청구 금액을 뜻하지 않습니다.
    전체 시간은 첫 job 생성부터 마지막 job 완료까지입니다.

    실행 macOS job 대기 macOS 실행 합계 전체 시간
    36582083452 5 510~606초 49분 23초 24분 53초
    37099242574 2 8~9초 14분 17초 8분 59초
    37104455723 2 8~9초 16분 11초 9분 21초
    37108182870 2 8~9초 14분 16초 8분 31초
    37109728798 2 7~8초 14분 26초 9분 23초
    37109822193 2 9~12초 16분 36초 10분 46초
    37117905991 2 6~8초 13분 45초 8분 57초
    37119287897 2 7~7초 15분 9초 8분 47초

    최근 대표 PR 7개 실행의 macOS job 14개는 대기 p90 9초, 최대 12초입니다.
    37109728798과 37109822193은 서로 겹친 실행이며 macOS job 4개가 7~12초에 시작했습니다.
    이는 대표 사례 측정이며 장기간의 대기 시간 보장은 아닙니다.

    남은 조건: 원문은 기존에 검사하던 flow를 optional로 만들지 말라고 요구합니다.
    현재 web 5개와 desktop 1개가 @flaky 비차단 단계에서 돌아 이 조건은 충족되지 않았습니다.
    #231, #286, #287, #303, #308, #311의 해결과 필수 검사 복구를 #288과 함께 확인한 뒤 종료해야 합니다.

  3. yansfil commented on Oct 10, 2026

    @yansfil
    ContributorAuthor

    정리: 완료 조건인 'PR이 요청하는 macOS job 수 감소'는 #285, #294, #305, #307로 충족됐습니다(macOS job 5개에서 2개로). 그 뒤 #555, #574, #597, #604로 core나 hided 변경에는 macOS job이 계획되지 않습니다.
    남은 일(desktop @platform의 Linux/Windows 이동, PR run 100개 사후 측정)은 #561에서 이어서 추적하므로 이 이슈는 닫습니다.

  4. added a commit that references this issue on Oct 29, 2026
    d8880b8
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions