Skip to content

Bound Git and compiler subprocess work during std installation #1016

Closed

Description

@LunaStev

Motivation

The compiler's std installer uses Command.output() for Git operations and each staged source check without a deadline or captured-output budget in this path. A stalled Git/helper can keep the update pending indefinitely; the CI Runner's limits do not apply here.

Starting point: src/std.rs:294.

Validation

Audited canonical Wave 540728c2eb6cc12f5c69c3fb3fdb96e07ba059a4 (0.0.1-alpha-dev), whose tree matches the local checkout. Validation: Inspected every installer subprocess launch and cleanup path. Executed compiler probes use the matching checkout-built compiler and std on Linux amd64 (Rust 1.89.0 / LLVM 21.1.8). Source/header or mocked checks are not native execution on another OS.

Scope

Choose installer-specific subprocess time/output limits and preserve useful failure evidence and cleanup. This is a bounded installer change, not a new global compiler execution framework.

Related: #379, #768. These links do not claim those broader or completed scopes are unfinished.

Design discussion required

This issue records a proposal or an unresolved contract; it is not approval to choose new semantics. Please mention @LunaStev to discuss the design before starting implementation.

Completion criteria

  • Controlled hanging and output-flooding helpers terminate under the agreed budget.
  • Previous std remains usable and temporary ownership is cleaned safely.
  • Diagnostics identify the operation and preserve bounded stdout/stderr evidence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionenhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions