GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row · Issue #6598 · developing-today/code

fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row #6598

New issue
Copy link
New issue
Copy link
Closed
#6721
Closed
fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row#6598
#6721
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 6, 2026
Issue body actions

Bug: fleet(dispatch-test) submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row

pkgs/fleet/crates/fleet-dispatch-test/src/lib.rs, verb_submit (verified at laptop origin/main 867c695518):

  1. :947 — INSERT the job row with status='queued'.
  2. :982 — UPDATE the row: status = 'dispatched', with the chosen target_repo.
  3. :990-1004 — only afterwards: GET the repo's default_branch (:992, errors if absent) and POST /repos/{repo}/actions/workflows/fleet-dispatch-test.yml/dispatches.

Every failure in step 3 — a workflow that lacks the workflow_dispatch trigger (422), a missing workflow file (404), a repo body with no default_branch, a transport error — returns Err to the caller, but the row already says dispatched, and nothing ever corrects it. There is no later writer for a job whose workflow never started: status (:1056) faithfully reports dispatched forever for a job that will never run.

The ordering was clearly considered for the other failure window: the no-eligible-scope error at :974 explicitly notes "(job {id} remains queued in the store)" — true and recoverable there, because step 2 has not run yet. The step-3 window has the opposite property and no such handling.

Verification (laptop probe, this run)

Probe crate ~/git/fleet/probe-dispatch-test on the laptop: the crate's real lib.rs with exactly two seams redirected — GITHUB_API_BASE pointed at a local stub GitHub, resolve_named returning a stub token (the Turso URL is config, pointed at a recording stub store). All submit logic byte-identical.

  • Case A (dispatch POST returns 422 "Workflow does not have workflow_dispatch trigger"): submit prints fleet dispatch-test: HTTP 422: GitHub API: ... and exits 4. The recording Turso stub's write sequence for the job ends with UPDATE jobs SET target_repo = 'acme/fleet', status = 'dispatched', ... WHERE id = 'dt-mw5b5m76-4ac2' — and no corrective write of any kind follows. The store's final state claims the job was dispatched; no workflow run exists.
  • Case B (control, dispatch POST returns 204): exit 0, report JSON status: "dispatched" — the same write sequence, this time truthful.

Why it matters

The jobs store is the tracking surface for this explicit-dispatch CI system (#6580): operators and agents read row status to know whether a test job ran. A dispatched row that never dispatched is indistinguishable from a real in-flight job — it will be waited on, and its missing results read as a hung run rather than a failed submit. The caller does see the submit error, but anyone (or any automation) consulting the store afterwards is misled, and there is no retry path that starts from the row's stated state.

Acceptance criteria

  • A submit whose dispatch POST (or the preceding default_branch fetch) fails does not leave the row in dispatched: either the dispatched UPDATE moves after a successful dispatch response, or the failure path writes a truthful terminal/intermediate status (e.g. back to queued, or a dispatch_failed status carrying the error).
  • A regression test pins the ordering/state: with the dispatch call failing, the row's final stored status is not dispatched (stub GitHub + stub store, as in the probe); the success control still ends dispatched.
  • The no-eligible-scope behavior (:974, row remains queued) is unchanged.

Design reference: #6580.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    CODE-2010

  3. dezren39
    added
    queue/queuedHas a queued queue task
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (Lane B, new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b run 2026-11-06 12:20 CST
    • Found via: filed this run
    • Task: Filed after verifying on the laptop: probe crate ~/git/fleet/probe-dispatch-test (the crate's real lib.rs, only the GitHub base URL and secret-resolution seams redirected to local stubs) — a 422 from the dispatch POST makes submit exit 4 while the recording Turso stub's last write for the job is UPDATE status='dispatched', with no corrective write; the 204 control ends truthfully dispatched. Design: issue Design: fleet dispatch-test — explicit-dispatch CI over fleet runner capacity #6580.
    • Expectation: effort s — triage confirms and routes the fix (move the dispatched UPDATE after a successful dispatch, or write a truthful failure status).
    • Links: packet packet-6598-triage.json (hidden_files)
  5. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-code-k — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-k posts progress markers; after 30 minutes of silence any other worker may pick this up.)

    Lane K triage: verifying the verb_submit dispatched-before-dispatch ordering claim against current main (fleet-dispatch-test lib.rs).

  6. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 7, 2026
  7. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-k — FALLBACK MODE (queue backend down; the fallback claim marker on this issue is the claim of record)
    • Session / ID: cron repo-queue-worker-shift-k run 2026-11-06 20:33 CST; fallback worker id repo-worker-code-k (issue fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row #6598 is the task in fallback mode)
    • Found via: fallback scan — claimable item in scan order (claim state re-checked free immediately before claiming; several neighbours were live-claimed by other lanes in the same minutes)
    • Task: triage — verify the claim that verb_submit in pkgs/fleet/crates/fleet-dispatch-test/src/lib.rs writes status='dispatched' before the dispatch call, so any dispatch failure leaves a permanently lying row, against current main.
    • Expectation: s — done = verdict comment with fresh file:line evidence on current main + fix routed on this same issue (task/small-fix + queue/queued), or an already-fixed verdict with evidence.
    • Links: fallback claim marker: fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row #6598 (comment)
  8. dezren39
    added
    status/in-progressQueue worker lifecycle state
    on Nov 7, 2026
  9. 25 remaining items

  10. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: repo-queue-worker-shift-p cron run 2026-11-06 20:17 CST — FALLBACK MODE (queue backend down, code#6619; fallback markers are the claim of record, no broker task id this shift)
    • Found via: queue fallback scan (queue/queued label, scan order)
    • Task: issue fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row #6598 complete — fix implemented on branch queue/6598-dispatch-order, PR fix(fleet/dispatch-test): mark dispatched only after the dispatch succeeds (#6598) #6721 merged (3f48289), issue auto-closed
    • Expectation: nothing further; labels stripped to the terminal state
    • Links: PR fix(fleet/dispatch-test): mark dispatched only after the dispatch succeeds (#6598) #6721
  11. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
  12. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Picked up by repo-worker-code-i — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-i posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  13. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 7, 2026
  14. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-i
    • Session / ID: repo-queue-worker-shift-i, 2026-11-06 20:28 CST — FALLBACK MODE (queue backend down: fleet queue health HTTP 503 PGRST002, exit 4; outage tracked as issue infra: repo-queue PostgREST timeout: global failures lane-visible again — recurrence after #6450 closed (2026-11-06 21:15-21:31Z) #6619). Fallback claim on issue fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row #6598.
    • Found via: fallback scan (claimable, released/free by lane code-k)
    • Task: Fix the fleet dispatch-test submit ordering in pkgs/fleet/crates/fleet-dispatch-test/src/lib.rs: the row is marked dispatched before the dispatch call, so a failed dispatch leaves a permanently lying row. Dispatch first, mark after success (a failure leaves the row queued, like the existing no-eligible-scope path), with a regression test on stub GitHub + stub store.
    • Expectation: effort s — lib.rs reorder + extracted dispatch_and_mark + stub-server regression tests, branch + PR, merge under the standing criteria if verified.
    • Links: branch queue/fallback-6598-dispatch-order, laptop worktree ~/git/fleet/fb-6598
  15. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Progress from repo-worker-code-i: picked up: verb_submit read on current main — UPDATE dispatched (step d) precedes default_branch fetch + dispatch POST (step e); fix reorders via dispatch_and_mark, regression test on stub servers; next: worktree + implementation

  16. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-i
    • Session / ID: repo-queue-worker-shift-i, 2026-11-06 20:28 CST — FALLBACK MODE (queue backend down; outage issue infra: repo-queue PostgREST timeout: global failures lane-visible again — recurrence after #6450 closed (2026-11-06 21:15-21:31Z) #6619)
    • Task: dispatched-before-dispatch fix — ALREADY DONE by a concurrent lane; this claim raced it and is closed on verification, not on my own change.
    • Result: verified already_done. PR #6721 "fix(fleet/dispatch-test): mark dispatched only after the dispatch succeeds (fleet(dispatch-test): submit marks the job dispatched before the dispatch call — a failed dispatch leaves a permanently lying row #6598)" merged 2026-11-07T03:17:44Z (commit 105207e). Checked against the issue's acceptance criteria on current main (700ed0e): the submit tail now records target_repo with the row still queued, dispatches, and only then marks dispatched, sequenced through run_dispatch_sequence; three regression tests pin the contract (order target→dispatch→mark; a dispatch failure never reaches the mark step; a target-write failure stops before dispatch); the no-eligible-scope behavior is unchanged.
    • State at close: issue already CLOSED with status:done by the fixing lane. My in-flight labels from this claim are removed with this note; nothing of mine was pushed (my draft worktree was deleted uncommitted).
  17. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    on Nov 7, 2026
  18. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    Released by repo-worker-code-i (outcome: done). already fixed by PR #6721 (merged 03:17Z, commit 105207e); verified against all acceptance criteria on current main — claim raced the fixing lane

  19. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
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

    app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)status:donetask/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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.