Skip to content

Per-piece PITHEAD_IMPL launcher and release-default table #4214

Closed

Description

@pithead-developer

What's the problem

The selector on go-port/3811 is one whole-binary switch (PITHEAD_IMPL=go|bash). The owner wants each piece to become the default in its own release, so the selector must be per piece. It is also unspecified what sits at the installed entry point and how timers, path units and sudo (which drop the environment) select a mode.

What it impacts

Every piece issue; operators and the fleet harness choosing a mode.

How I found it

Reading PARITY.md (Build and selection) and the tracker: the launcher exec-falls back to Bash with the same argv, streams and exit status plus a recursion marker, but has no per-verb granularity and no persistent override. Unknown: how the fleet harness would pass a per-piece value. PITHEAD_DASHBOARD_IMPL is out of this issue until the dashboard piece.

How important is it

High: it blocks every piece. Land it first so the first default flip is already per-piece.

Acceptance criteria

  • The installed entry point is the Go launcher (or a tiny shim) that execs the Bash script, at a fixed script path, for any argv it does not own.
  • A verb-to-piece map plus a default table (piece, default, release flipped) decide the mode; PITHEAD_IMPL=bash forces Bash for all pieces; an unknown piece name fails loudly.
  • Overrides come from the environment and from a persistent root-owned source (file or unit drop-in); a timer-style run with no environment uses the table default.
  • A missing or failing Go side falls back to Bash with identical argv, streams and exit status, with no recursion.
  • Existing Bash suites run unchanged in both modes (the lib scrubbing hook adds a Go entry point without touching assertions).
  • A test fails if the table and docs disagree.

Possible solutions

Harvest the launcher and fallback dispatch from go-port/3811 and key it by piece. Alternative: one flag plus a compiled-in allowlist of ported verbs; simpler, but no per-piece override. A fleet per-job selector in bench-ci follows only if a piece needs it.

Activity

  1. added
    enhancement
    refactor
    size:M
    on Nov 17, 2026
  2. pithead-developer commented on Nov 21, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. bench-ci endpoint refused all reads and submits (Errno 64 host is down / Errno 65 no route to host, port 8765 refusing while GitHub is reachable) starting right after job 1025@fbc9b1861c1b9985558c836ae799083d7e8e10fc completed; the tier4-e2e retry submit on fbc9b18 was never acknowledged. The runner re-checks it (first at 2026-11-21T18:15Z, at most 5 times).

  3. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #4269.

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

    enhancementrefactorsize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions