Skip to content

[Bug]: Windows GUI DST child passes but its parent times out on Bun 1.4.4 #7716

Closed as not planned

Description

@luvs01

Client or integration

Other — GUI test runner; no live provider request.

Area

Platform (Windows / macOS / Linux)

Summary

On unmodified dev, the Santiago DST regression prints its completion marker and passes eight assertions, but the parent reports exitedDueToTimeout: true at the existing 12-second child deadline. The whole file finishes with 37 passed, 1 failed, 479 assertions.

This reproduces a failure also observed while validating #7420. It is not exclusive to that PR's integration candidate; the physical cause and any product-facing impact remain unconfirmed.

Reproduction

At commit 323a5e11772c38c15b271d23c7696c5947bb97da, with matching GUI dependencies and official Bun 1.4.4+38afee6c8, run from gui:

bun --no-env-file --no-install ../scripts/test-with-pinned-bun.ts --isolate --timeout 60000 tests/usage-custom-range.test.tsx

Run the entire file, including preceding cases. The parent recursion flag is unset and parent TZ is absent; the original nested case supplies TZ=America/Santiago. Isolated HOME/TEMP/cache paths were used. Runtime and test-runner pins were both 1.4.4.

The original child-test 10-second, spawnSync 12-second, and parent-test 15-second bounds were unchanged. No source instrumentation, timeout increase, forced exit or package upgrade was used for this control. This is one baseline reproduction, not a measured failure rate.

Version

OpenCodex dev 323a5e11772c38c15b271d23c7696c5947bb97da; official Bun 1.4.4 revision 38afee6c8.

Operating system

Windows 11 Pro x64, build 26300.

Provider and model

Not applicable.

Logs or error output

Failing case: America/Santiago midnight DST retains final-day activity and tooltip, gui/tests/usage-custom-range.test.tsx:300.

  • Nested output: OCX_SANTIAGO_CASE_COMPLETED, 1 passed / 8 assertions, 734 ms test summary.
  • Parent: exitedDueToTimeout was true; elapsed 12,093 ms.
  • Entire file: 37 passed / 1 failed / 479 assertions.
  • The outer wrapper naturally exited 1, both streams reached EOF, and no direct children remained. Its 68.05-second elapsed time and Bun's 33.53-second file summary are separate timing domains.

Nested body success does not prove process termination or pipe completion. The original synchronous fixture does not expose those nested timestamps.

Screenshots and supporting files

Text-only test failure. A separately instrumented child under a .NET observer exited successfully in about 1.04 seconds; a private Bun.spawn replacement still exceeded the same 12-second deadline. Neither is an adopted fix or proof of cause.

#4956 records an older child-process issue fixed in Bun 1.4.3. This observation uses 1.4.4; a shared cause is unconfirmed. The next diagnostic should distinguish nested process exit from pipe completion while preserving the DST assertions and deadlines.

Redacted configuration

Not applicable; no provider, account or trust configuration was changed.

Checks

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

Activity

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

    @Ingwannu
    Owner

    The baseline control is useful: this is an open Windows child-process/test-harness failure, not a demonstrated #7420 regression or a reproduced user-facing DST defect.

    Current dev still checks the child completion marker and exitedDueToTimeout, signal and exit status. The marker establishes that the nested assertions ran; it cannot make the parent timeout a pass. Please keep the complete-file invocation, TZ/recursion preconditions, all DST assertions and the existing 10/12/15-second bounds in the control.

    The next useful diagnostic separates four timestamps: nested test completion, actual child process exit, stdout EOF, and stderr EOF, with process identity/remaining descendants recorded independently of captured output. Compare that diagnostic against the unchanged invocation rather than replacing its result. #7715 corrects timeout classification in a different temporary-file diagnostic helper; it does not establish a repair for this GUI child. A shared cause with #4956 is still unproven. I cannot reproduce the Windows path on this Linux host, so no Windows fix or pass is claimed.

  4. lidge-jun commented on Oct 27, 2026

    @lidge-jun
    Owner

    Investigation update (Windows 11, Bun 1.4.4, current dev). No fix is proposed yet because the cause is still unproven.

    • Separating the nested child's events with async Bun.spawn observation: in one reproduction the completion marker came at 9.95 s and stdout/stderr EOF just before 10 s, but process exit only at 21.8 s. So the delay was in native process exit after output had closed, not in pipes held open by a grandchild. An import-only child (no render, no window) also exceeded 12 s in that run.
    • A second round bisected 103 minimal children: plain bun -e, an empty bun test, with and without the GUI preload, --isolate, TZ=America/Santiago, and pipe/ignore/inherit stdio. All of them exited within the deadline. The full gui/tests/usage-custom-range.test.tsx also passed 38/0, both on an idle host and under a 16-CPU background load. A short gap between EOF and native exit was visible, but nothing close to 12 s.

    The 12 s exit delay therefore looks intermittent and environment-dependent rather than tied to any of the tested inputs. The 10/12/15 s bounds and the marker, exit-status and signal assertions remain unchanged.

  5. lidge-jun commented on Oct 28, 2026

    @lidge-jun
    Owner

    No recurrence: gui/tests/usage-custom-range.test.tsx has not failed in any batched dev CI run since 2026-10-23, the nine ci.yml dispatches through 40617484699. The earlier finding stands: in the one reproduction, the native process exit came about 12 s after stdout and stderr EOF, and no tested input reproduced it. The 10/12/15 s bounds and the marker, exit-status and signal assertions remain unchanged. Leaving this open in case it recurs.

  6. lidge-jun commented on Nov 3, 2026

    @lidge-jun
    Owner

    Closing as not reproducible. On Windows 11 with Bun 1.4.4, 103 minimal child variants and the full gui/tests/usage-custom-range.test.tsx all completed within the existing 10/12/15-second bounds, idle and under load; the single reproduction showed a native process-exit delay after stdout/stderr EOF that no tested input reproduced. CI runs gui/tests only on Linux, so it gives no Windows signal either way. If the parent timeout appears again, please reopen with the run's timestamps for test completion, stdout/stderr EOF and process exit.

  7. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: English.

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

    bugguiplatform

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions