Skip to content

[Bug][CI]: macOS test shards run up to their 20-minute limit and a full dispatch was cancelled mid-suite #6978

Closed

Description

@lidge-jun

Client or integration

Other

GitHub Actions: the sharded platform-macos job (macos 1/2, macos 2/2) in .github/workflows/ci.yml, not an installed client.

Area

Platform (Windows / macOS / Linux)

Summary

The two macOS test shards now run close to their 20-minute job limit (timeout-minutes: 20 on platform-macos), and one full dispatch was cancelled at the limit while tests were still passing. This is a CI budget problem, not a hang: the shard was producing (pass) lines until 4 seconds before the cancel, which is different from the silent stalls tracked in #4956.

Durations of the macOS shards in the last eight full workflow_dispatch runs on dev (job wall time, minutes):

dev head macos 1/2 macos 2/2
7af092c 15 16
9b6f4b2 19 15
3649d58 15 18
d49df2f 17 19
aeebf11 19 16
53b8369 17 19
777b377 17 18
8eb1fc3 17 20 (cancelled)

The job spends about 1 minute on checkout, install, GUI build and coreutils before the test step, so the test step has roughly 19 minutes, and recent shards use 14 to 18 of them. Any slow runner or a few new test files push a shard over.

Expected: each macOS shard finishes with a real pass/fail result with headroom, the way #4905 settled the unsharded macOS control. Assertion failures and crashes must stay failures.

Reproduction

  1. Full dispatch run https://github.com/lidge-jun/opencodex/actions/runs/38214884055 on dev 8eb1fc3.
  2. Job macos 2/2 (114697966974): step "Test in fresh-process batches" ran 07:03:21 to 07:22:41 UTC and ended with ##[error]The operation was canceled.; the last test line is at 07:22:37 and is a pass. Every other job in the run succeeded.

Version

dev 8eb1fc3

Operating system

GitHub-hosted macos-latest

Provider and model

Not applicable.

Logs or error output

2026-10-12T07:22:37.8239620Z (pass) update stops the running proxy before replacing files > both paths abort when the stop fails, and REPAIR a managed service after success [0.18ms]
2026-10-12T07:22:41.6639660Z ##[error]The operation was canceled.

Screenshots and supporting files

No response

Redacted configuration

No response

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    on Oct 12, 2026
  2. added
    platform
    on Oct 12, 2026
  3. Ingwannu commented on Oct 12, 2026

    @Ingwannu
    Owner

    Opened Draft #6985 at 8287deb467: the existing two macOS shards get a bounded 25-minute whole-job cap instead of 20. The 300-second batch deadline, one worker, full membership, first-failure verdict and 75-minute control are unchanged; this is not a fix for the distinct silent-exit stall in #4956.

    Update: I subsequently discovered #6983's broader seventeen-run analysis and three-shard alternative under the original 20-minute cap, then closed my #6985 unmerged to avoid competing fixes. #6983 is the active implementation to review. Its actual three-shard shell ownership and assertion-failure cases independently passed here (4 tests / 71 assertions); those synthetic checks are not a completed hosted macOS run.

    The new contract failed before the YAML change and passed afterwards. Locally: 22 scope-contract tests plus the existing whole-workflow budget contract passed; structure and file-size gates passed under hard resource limits. These source-as-data checks do not establish actual macOS completion. Exact-head hosted macOS results, root typecheck/full-suite CI and independent workflow-boundary review remain outstanding, so I have not closed this issue or marked the fix shipped. Review requested from @lidge-jun on the PR.

  4. lidge-jun commented on Oct 12, 2026

    @lidge-jun
    OwnerAuthor

    Rerun evidence: attempt 2 of run https://github.com/lidge-jun/opencodex/actions/runs/38214884055 reran only the cancelled macos 2/2 on the same dev head (8eb1fc3) and it passed in 18m success, which made the whole dispatch green. The same tests that hit the 20-minute limit on attempt 1 pass on a rerun, so this is the job budget rather than a hang or a test failure. A fix is in progress on a separate branch.

  5. lidge-jun commented on Oct 12, 2026

    @lidge-jun
    OwnerAuthor

    Fixed on dev by #6983 (03a9d31): the macOS suite now runs in three shards under the same 20-minute cap. At the merged head the shards finished in 14:01 / 15:04 / 12:16 (PR run 38222137968) and 14:09 / 15:25 / 10:36 (dispatch 38222141865), leaving about 4.6 minutes of headroom on the slowest. Shard imbalance from the stale duration table is tracked in #6982.

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

    bugplatform

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions