Skip to content

tools/verdict.w reports a finished battery log as OPEN: it waits for an rc line battery.w never writes there #2521

Closed

Description

@ehartford

Seen 2026-10-20, four batteries in a row (stack #2516): after tools/battery.w finished and printed battery rc=0 … battery: GREEN, with run tools/verdict.w out/battery/battery.log answered

out/battery/battery.log: OPEN (still running; no rc line yet)

and the same for a red run (RED so far: battery-uat battery, still "OPEN"). The battery guard hook makes verdict.w the only sanctioned way to read a battery log, so a verdict that never closes sends the reader to status.txt and the task output instead. The rc line verdict.w waits for is not what battery.w writes to battery.log (it prints battery rc=N wall=… and GREEN/RED to its own stdout, and out/battery/status.txt / battery.done carry the verdict).

Expected: verdict.w reads battery.done / status.txt when they exist and reports the closed verdict (GREEN or RED: <targets>), reserving OPEN for a log whose done marker is absent.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced.

    $ cat out/battery/status.txt   # a finished battery (fix-2575 worktree, 2026-10-23)
    battery rc=0 wall=387s
    GREEN
    BATTERY_DONE
    $ with run tools/verdict.w out/battery/battery.log
    out/battery/battery.log: OPEN (still running; no rc line yet)
    

    post-release: internal battery tooling; the status file already carries the verdict.

  2. added this to the post-v0.16.0 milestone on Oct 28, 2026
  3. added a commit that references this issue on Nov 7, 2026
  4. ehartford commented on Nov 7, 2026

    @ehartford
    ContributorAuthor

    Fixed in #3056 (merged as afbdbb1).

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions