Skip to content

build.w: :test alone cannot go green: test-green demands out/.build-state/selfcheck.state but the test group never runs selfcheck #2887

Closed

Description

@ehartford

Found running the v0.16.0.0 Linux release gates on a fresh worktree (eric-5090, ~/with-release-v0.16.0.0, seed-driven):

error: test-green: missing build state out/.build-state/selfcheck.state; run `with build :test`
survey: skipping 'test' (dependency 'test-green' did not succeed)

build/retention.w (ret_append_state_file at the test-green evidence) demands selfcheck's state, but selfcheck is a dep of verified-existing-stage and of the gate, not of the test group (build.w ~4677). On the Mac the battery runs :gate first, so the state exists; a lane or host that runs build :test as the runbook and the selfhost lanes do (./src/main build :test) can never record a green. Every scheduled lane of 2026-10-31 is red.

Release workaround: src/main build :selfcheck before :test. Fix: one owner for the evidence set, the test group deps what test-green demands (or test-green records what ran).

Activity

  1. added
    bug
    on Nov 1, 2026
  2. ehartford commented on Nov 7, 2026

    @ehartford
    ContributorAuthor

    Fixed on main by #2915 (:test runs selfcheck, whose state test-green's evidence requires) and #2921 (every test lane starts after selfcheck: test_lane(...).dep("selfcheck"), build.w:1205). tools/release_local.w's legs run :test without a hand :selfcheck since #2898. Verified 2026-11-07 reading the graph; closing from the weekend burn-down.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions