Skip to content

windows-aarch64 release lane red on v0.16.0.2 (run 41308889345): unit-return-review has no origin/main on a tag checkout, speed budgets on the arm64 runner, a killed capture orphans its grandchild and the debug-alloc lane shares one capture file #2902

Closed

Description

@ehartford

Nightly-release run 41308889345 (tag v0.16.0.2, source fb8ba12), job "Verify and package windows-aarch64" (job 124854929061, runner image windows-11-vs2026-arm64, WITH_BUILD_JOBS=4): the seed built the release compiler, stage2 == stage3 held, then src/main.exe build :test went red and the platform published nothing. D137: filed, not waited on. D180: the release is not done until this platform ships its compiler and SDK, so this is pre-release work for the next patch tag.

Failing targets (survey)

failed: native-phase-tests      timed out in test/phase/dump_typed_top_level_string_sidecar_key.w (1 of 75)
failed: internals-tests         9 failed: conan_http_temp_test, conan_cmake_env_test, conan_pick_package_test, conan_library_names_test,
                                conan_requirement_ref_test, conan_version_range_test, conan_facade_system_headers_test, lock_pins_test, … (timed out)
failed: behavior-tests          timed out in behav_1915_windows_program_imports_in_box_dlls.w (1 of 2024)
failed: debug-alloc-tests       da_2019_cancel_inside_lazy_adapter_chain.w (exit -1 after 60777 ms, stdout empty)
                                da_2049_record_update_moves_owned_fields.w (its two lines, then an unlisted 'm_drops=0 live=0')
failed: stdlib-complexity       btree-set-str-ascending n=1000 small_ns=4464285 large_ns=31250000 within_bound=false (stdlib.w:454)
failed: unit-return-review      fatal: bad revision 'origin/main'
failed: tools-tests             tools_annotate_receivers.check and tools_debug_sema_layout.check: exit 124 (the check timed out)
failed: test-green, test        (dependents)

Wall: behavior-tests 974.9 s, debug-alloc-tests 710.8 s, tools-tests 605.0 s, native-compile-error-tests 558.7 s; total 1694.5 s across 40 lanes.

Causes, by class

  1. unit-return-review has no origin/main on a tag checkout. build.w runs tools/unit_return_review.w origin/main unless WITH_UNIT_RETURN_BASE is set; actions/checkout@v4 at default depth on a tag push fetches no main. Every "Verify and package" job in every nightly-release run fails this way (41301119293: linux-x86_64 and windows-x86_64 too), so the CI release lane has never been green on any platform. Fix: fetch main in the workflow, or set WITH_UNIT_RETURN_BASE to the release's parent, or make the target skip with a named reason when the base does not exist.

  2. Per-test speed budgets on a slow 4-core runner. The exit 124 and "timed out" rows are the harness's fixed budgets (the debug-alloc lane's run_to_files(..., 60000) in tools/debug_drop.w; with check of a tool in tools-tests; the per-file timeout in with test). with test: a fixed 120 s per-file limit fails a passing test on a slower host (exit 124 reported as a run failure) #2362 already ruled a test binary gets a thirty-minute hang guard, not a speed budget; these paths kept their own. The complexity row is stdlib-complexity: on Windows the 15.6 ms CPU-time tick is a quarter of the 50 ms sample, so a linear row reads 7.8x at n×4 and fails (btree-map-str-descending, v0.16.0.1 Windows leg, twice) #2894's class (CPU tick quantization under load; PR stdlib-complexity: a sample spans at least 20 ticks of the CPU clock (#2894) #2895).

  3. A killed capture leaves its grandchild running, and the debug-alloc lane reuses one capture file (the crossed output). rt/windows_x86_64.w / windows_aarch64.w win_wait_process_slot: on WAIT_TIMEOUT it calls TerminateProcess(h, …) on the direct child only (no job object; POSIX uses a process group). tools/debug_drop.w captures every test of the lane to /tmp/debug_drop_{pid()}_out.txt, the same path for each test, and the child (with run --debug-alloc fixture.w) hands that handle on to the program it runs. Sequence in the log: da_2019_cancel_inside_intrinsic_closure passed in 21291 ms; da_2019_cancel_inside_lazy_adapter_chain (same expected line resumed=0 item_drops=0 live=0) hit the 60 s budget with 0 lines: its with run was terminated, its program was not; da_2049_record_update_moves_owned_fields then printed its own two lines and, after them, m_drops=0 live=0, a line only the two da_2019 fixtures print, written by the orphaned program through its inherited handle into the reopened file. Both halves are defects: the Windows capture timeout must take the whole tree down (a job object with KILL_ON_JOB_CLOSE, as the POSIX spawners' process group does), and the lane's capture path must be per test, not per harness pid.

What is not yet known

Whether behav_1915_windows_program_imports_in_box_dlls, dump_typed_top_level_string_sidecar_key and the conan_* internals are only slow here or hang on this platform: each is a timeout with no output captured. The run's artifacts carry no per-test stdout. A re-dispatch with the budgets lifted (class 2) separates the two.

Route

Fix class 1 and class 3 (runtime + harness), lift the class-2 budgets to the #2362 rule, re-dispatch nightly-release.yml for the tag, then cut v0.16.0.3 with every platform's compiler and SDK (D180).

Activity

  1. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Fixed and shipped: #2904 (job objects per spawned child on Windows, per-fixture debug_drop captures, hang guards in BuildGraphTests/main.w/debug_drop, the workflow's main fetch), #2910 (tools lane hang guard, lane captures), #2912 (every selfhost ceiling and every test lane a hang guard), #2916 (every spawned target off the driver's default ceiling), #2921 (lanes start after selfcheck). Released in v0.16.0.3 through v0.16.0.7. The remaining windows-aarch64 blocker is a different defect: #2922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions