Skip to content

Manual pm-dispatch run #12776

Closed
Closed

Description

@developing-today

The PM console on this host (amd) has stopped taking merges. Find out why, fix it, and say what it was.

Evidence, from outside: https://pm-console-edge.developing-today.workers.dev/console/health shows hostVersion 6226e4d, which is main as of 2026-11-23T00:20Z. Main has had five merges that touch pm-stack/console since 02:04Z (55f0bdd, 2bec21c, ce26128, 45191b4 and whatever follows). hostSeen in the same answer is fresh, so pm-console.service is up and reporting, on old code. Before 00:20Z each console merge was in service within about four minutes.

The chain is: pm-git-sync (every 30 s) keeps ~/git/code at origin/main; pm-console-redeploy.timer (every minute) runs pm-stack/console/redeploy.sh, which compares the checkout's pm-stack/console tree with ~/.local/state/pm-console/deployed, self-checks the new code, and runs install.sh, which restarts pm-console.service.

Find which link is broken:

  1. Is ~/git/code at origin/main? git -C ~/git/code status -sb, git -C ~/git/code log --oneline -3, systemctl --user status pm-git-sync.service pm-git-sync.timer, journalctl --user -u pm-git-sync.service -n 40. A local commit that is not on origin (a rebuild commit that changed flake.lock is the known case, Rebuild commits that change files still leave the laptop's main ahead and behind at once #12520), or uncommitted changes, stops the pull.
  2. Is the redeploy failing or standing aside? journalctl --user -u pm-console-redeploy.service -n 40, ~/.local/state/pm-console/redeploy.log, and the files deployed and deploy-failed beside it. redeploy.sh exits quietly, changing nothing, while anything under pm-stack/console in the checkout differs from HEAD (git -C ~/git/code diff --stat HEAD -- pm-stack/console pm-stack/systemd).
  3. Is the machine simply too loaded for the timers to run in time (the watchdog recorded load15 near 34 on 16 cores and 5% disk free at 02:10Z)? systemctl --user list-timers | grep -E 'pm-git-sync|pm-console' shows when each last ran.

Fix the cause. Do not discard anyone's uncommitted or unpushed work in ~/git/code: if something has to be moved out of the way, keep it (a branch or a stash with a name that says what it is) and say where it went. Never force-push main. Then let the sync and the redeploy run, and confirm that the health address above shows a hostVersion that contains 45191b4 (git -C ~/git/code merge-base --is-ancestor 45191b4e2e14 <hostVersion>).

Report on a new issue titled "pm-console on amd stopped taking merges at 2026-11-23T00:20Z": which link was broken, the evidence (the journal lines), what you changed, and what would have caught it sooner. If the cause is the flake.lock case, say so on #12520 as well. If the cause is something this prompt did not think of, fix that instead; the goal is the console running main's code.


Launched by pm-dispatch for developing-today/code. Queue task and OpenCode session ids follow in a comment below.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    ContributorAuthor

    Dispatch launch confirmed.

    • Queue task: #21097 (repo-health-code-pilot, status: claimed, worker: dispatch-opencode)
    • OpenCode session: ses_e5df9c13957ffeNRuP5FuwTnX3
    • Launched by: GitHub Actions OIDC (repo developing-today/code, actor dezren39, workflow developing-today/code/.github/workflows/pm-dispatch.yml@refs/heads/main)
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    Lane NT (archer) claiming queue task 21097 for diagnosis: pm-console on amd stopped taking merges at 2026-11-23T00:20Z. The original dispatched session's lease expired without a completion record, so I am picking this up fresh. Diagnosing the git-sync → redeploy → service chain on the laptop now.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    Done — Lane NT (archer), queue task 21097.

    Cause: link 1 of the chain. ~/git/code carried a local never-pushed commit (8e472164d4cf, opencode-claimant poll timeout 30s -> 300s, 2026-11-22 20:04 CST), so pm-git-sync's git pull --ff-only failed every ~30 s from 2026-11-22 20:11:16 CST ("Not possible to fast-forward, aborting") and the checkout froze on the 00:20Z code. Not the flake.lock case.

    Fix: the checkout was restored to main and fast-forwarded at 2026-11-23 01:46:57–01:47:00 CST; redeploy fired within the minute (pm-console.service restarted 01:47:51 CST) and sync fast-forwards have run clean since. The unpushed commit was preserved, not discarded: branch parked/opencode-claimant-poll-timeout-20261122 in ~/git/code.

    Verified 2026-11-23 ~02:50 CST: health shows hostVersion fe34e5cd9da1 with fresh hostSeen; fe34e5cd9da1 is 384 ahead / 0 behind 45191b4e2e14 (contains it, per the acceptance test); zero pm-stack/console/pm-stack/systemd changes between fe34e5cd9da1 and current main, so the deployed console is current; checkout on main at origin/main; all three units active.

    Full report with journal evidence and the would-have-caught-it recommendation: #13126.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions