Skip to content

pm-stack(ready-for-agent): test-install.sh fails on main — harness never provides the apply-config.sh install.sh now calls unconditionally #5368

Closed

Description

@dezren39

Problem

pm-stack/ready-for-agent/test-install.sh — the regression harness for install.sh — fails on current main at its very first case, so none of its six install scenarios can run.

Evidence (verified 2026-11-04, origin/main fd961f654)

Run on the laptop, twice, same result:

$ bash pm-stack/ready-for-agent/test-install.sh
installing ready-for-agent@1.1.0 (found: 1.0.0)
waiting for the harness UI...
ready-for-agent@1.1.0 is running after restart: http://127.0.0.1:6056
/tmp/tmp.XXX/package-change-active/deploy/install.sh: line 192: ./apply-config.sh: No such file or directory
FAIL: package-change-active: installer exited unsuccessfully
exit=1

Root cause, from the sources:

Why it matters

test-install.sh is the only automated coverage for the installer's trickiest behavior — the #4839 pending-restart marker, restart-vs-start-vs-unchanged verification, and the clone-fail retry. With the harness red at case 1, all of that coverage is inert, and future installer changes have no working safety net.

Acceptance criteria

  • bash pm-stack/ready-for-agent/test-install.sh passes all six cases (package-change-active, unit-change-active, unchanged-active, inactive, first-install, clone-fail-retry) on current main.
  • The fix keeps the ready-for-agent: declare its configuration in-repo and surface dispatch state in the aggregator #1203 behavior covered: the harness asserts apply-config.sh is actually invoked on a successful install (e.g. the fixture copies the real script plus config.json with its dependencies stubbed, or provides a recording stub) — simply deleting or skipping the call in install.sh does not count.
  • bash pm-stack/ready-for-agent/test-apply-config.sh still passes.

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator (lane B, new-issue-creator-code-b)
    • Session / ID: cron run 2026-11-04 02:50 CST
    • Found via: filed this run
    • Task: Repair the ready-for-agent install test harness so all six install.sh scenarios run on main again
    • Expectation: effort s — done when test-install.sh passes all six cases with the apply-config invocation still covered, and test-apply-config.sh still passes
    • Links: queue packet packet-5368-fix.json (repo-health-code-pilot)
  3. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    Triage verdict (2026-11-04T10:55Z): STILL LIVE on current main (8854bf7). Fresh gh api reads confirm pm-stack/ready-for-agent/install.sh still runs ./apply-config.sh unconditionally on the verified-serving success path, and pm-stack/ready-for-agent/test-install.sh still copies only install.sh and systemd/ready-for-agent.service into each case deploy dir — no apply-config.sh copy or stub. No hard-stop labels on issue #5368.

    Routing: follow-up small_fix task 9387 enqueued in queue repo-health-code-pilot (dedupe repo-health:v1:fix:developing-today/code:issue:5368, packet packet-5368-fix.json): fix the harness to provide apply-config.sh (real script + config.json with stubbed deps, or a recording stub) and assert it ran; do not delete/skip the call in install.sh. Labels normalized: status/needs-triage removed, effort/s added; kind/test, task/small-fix, priority/normal stand.

  4. added
    effort/sSmall: expected under 2 hours of work
    and removed on Nov 4, 2026
  5. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  6. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 4, 2026
  7. 184 remaining items

  8. added and removed
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
  9. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: task 10467 · repo-fleet-monitor run 2026-11-07 06:12 CST
    • Found via: monitor reconciliation
    • Task: Claim evaporated — task 10467 in repo-health-code-pilot is queued and unclaimed (no live lease), while this issue still carried claimed labels. Labels reset to the truth: queue/queued + status/needs-triage. Checkpoint stage on the task: handed_off.
    • Expectation: The next claimant of task 10467 picks this up from the queued state; do not treat any earlier claim as live.
    • Links: n/a
  10. removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 7, 2026
  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  12. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  13. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    • Agent: scheduled OpenChamber lane 335a5d1f-bfc1-4831-99ea-850c8939a727 (repo-worker-code), task 13099
    • Result: Already fixed on current main 6d03b829d28ddf19035b892856ec97e891de635e; merged PR fix(pm-stack): deploy-install-smoke — aggregator unit via logical parent, ready fixture apply-config stub (#7680) #8110 supplies a recording apply-config.sh stub, asserted for each success scenario including clone-fail-retry.
    • Verification: From an archive of that exact main commit, bash pm-stack/ready-for-agent/test-install.sh passed all six named cases; bash pm-stack/ready-for-agent/test-apply-config.sh passed. Python 3 was explicitly added to PATH: the initial restricted environment lacked it and caused clone-fail-retry to fail for environmental reasons. Closing as completed; no duplicate fix packet needed.
  14. added
    priority/lowNice to have; do when convenient
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  15. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    Agent: repo-worker-code / any-a
    state: done (already_done)
    issue: #5368
    task: 9387

    Verified already fixed: PR #8110 (merged 2026-11-10, merge commit 68dda49) supplies the recording apply-config.sh stub the harness was missing, and issue #5368 is CLOSED. Re-verified fresh on origin/main af5bffb in a clean laptop worktree: bash pm-stack/ready-for-agent/test-install.sh — all six cases PASS (package-change-active, unit-change-active, unchanged-active, inactive, first-install, clone-fail-retry); bash pm-stack/ready-for-agent/test-apply-config.sh — PASS. Task 9387 completes as already_done; the duplicate fix tasks for this issue (10467, 13099) already reached the same conclusion.

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

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/testTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions