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 — ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere · Issue #5935 · developing-today/code

ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935

New issue
Copy link
New issue
Copy link
Closed
#6252
Closed
ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere#5935
#6252
Copy link
Assignees
dezren39
Labels
area/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Finding

scripts/tests/test_program_tending.py — the 8 contract tests for the program-tending scaffold (#1352, slice 1/3) — is run by no workflow in the repo, so the contracts it pins are verified nowhere:

  • .github/workflows/scripts-test.yml enumerates exactly two files: test_update_nixpkgs_inputs.py and test_worker_preflight.py (lines 31–33).
  • .github/workflows/research-workflow.yml runs test_*workflow*.py and test_plan_check.py (lines 35–37) — neither pattern matches test_program_tending.py.
  • .github/workflows/program-tending.yml (the daily schedule for the script itself) runs python3 -I scripts/program_tending.py --run (line 47) and never its tests.
  • A repo-wide search for test_program_tending / program_tending across .github/workflows/, flake.nix, and the justfile finds only the workflow's own run of the script — no test step anywhere (verified on laptop primary @ 9ddf6a8216, 2026-11-05).

This is the same gap shape as #5582 (id-native-shell in no check), in a different area: even a manual dispatch of every workflow (the house pattern since push/PR triggers were removed in 5a94833ea3) never executes these tests.

What the tests pin (and would silently lose)

Verified by running the suite on the laptop @ 9ddf6a8216: 8 tests, all pass, ~55 s.

  • the run log always covers all five sections in order (epics, roadmaps, projects, stalled-prs, loose-ends);
  • the scaffold is read-only: actions_taken == 0, every section no-action;
  • the hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit) are named in every log;
  • a per-repo fetch failure is reported in-section and never fails the run;
  • CLI contract: --run prints a valid log and exits 0; no --run exits 2;
  • the isolated-subprocess run (python3 -I) works from a clean interpreter.

The daily workflow would still succeed if most of these regressed — it only checks that one --run invocation exits 0 — so a rename of a section, a dropped hard-stop name, or a read-only violation would ship unnoticed until a human read a run log.

Secondary observation (same fix pass)

Four of the eight tests call pt.run(...) / the CLI without mocking _gh_api, so stub_stalled_prs makes a live unauthenticated api.github.com request per invocation (plus one more in the isolated subprocess). That is why the suite takes ~55 s locally and why wiring it into CI as-is imports a network dependency (unauthenticated rate limits, 30 s urlopen timeout) into the test run. The assertions do not depend on the fetch succeeding — the stub's error path returns the same section shape — so mocking _gh_api in those four tests (the pattern test_scaffold_is_read_only and test_fetch_failure_reports_never_fails already use) makes the suite hermetic and fast.

Acceptance criteria

  • Some workflow step runs python3 -m unittest discover -s scripts/tests -p 'test_program_tending.py' (e.g. a step in scripts-test.yml, matching its existing enumeration pattern), on the Python versions that workflow already matrices.
  • The four unmocked tests mock _gh_api (or an equivalent seam) so the suite passes with networking disabled and completes in seconds, not ~55 s.
  • The full suite still passes locally after the change: 8 tests OK.
  • No change to scripts/program_tending.py behavior or to the program-tending.yml schedule.

Evidence

  • File/line evidence above, read on laptop primary ~/git/code @ 9ddf6a821658c8700fb78c06b024e2a1b024f754 (HEAD == origin/main, clean tree).
  • Suite run on laptop: python3 -m unittest discover -s scripts/tests -p 'test_program_tending.py' -v → Ran 8 tests in 54.951s — OK.
  • Related: Program tending: scheduled care for roadmaps, epics, projects, and stalled PRs #1352 (parent scaffold issue, open), id(ci): id-native-shell is in no check — its contract transcript tests never run in CI, check-all, or the just recipes #5582 (same gap shape for id-native-shell).

Activity

Next
  1. dezren39
    added
    kind/ciCI/CD pipelines, workflows, and build automation
    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
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

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

    CODE-1609

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    area/ciCI/CD pipelines, workflows, and build automation (area)
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (Lane B, slug new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-11-04 21:20 CST
    • Found via: filed this run
    • Task: Filed issue ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935 — scripts/tests/test_program_tending.py (8 contract tests for the Program tending: scheduled care for roadmaps, epics, projects, and stalled PRs #1352 program-tending scaffold) is run by no workflow; verified by repo-wide workflow/nix/justfile search and a clean local suite run (8 tests OK, ~55 s) on laptop primary @ 9ddf6a8.
    • Expectation: effort s — triage decides the home workflow (scripts-test.yml enumeration is the natural fit) and whether the four unmocked live-API tests are mocked in the same pass.
    • Links: issue body carries file:line evidence; queue packet packet-5935-triage.json enqueued to repo-health-code-pilot this run.
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed (enqueue duplicate flag)

    • Agent: new-issue-creator job (Lane B, slug new-issue-creator-code-b)
    • Found via: filed this run
    • Task: The enqueue verb was invoked twice for packet packet-5935-triage.json (same dedupe_key repo-health:v1:triage:developing-today/code:issue:5935). The second call confirmed task 9833 (queued). The first call's output tail also showed a created task, so a duplicate task with the same dedupe_key may exist — the second claimant / fleet monitor should supersede or cancel it, per the precedent on issue fleet-config: HOME unset/empty falls back to "." — config, state dir, and broker socket resolve CWD-relative, and a planted ./fleet.toml loads #5737 and issue fleet(secrets-broker): SECRETS_BROKER_TTL_S=0 makes the vault-refresh loop spin — ~110 full bws refreshes/sec, no startup validation #5860.
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  7. 54 remaining items

  8. developing-today commented on Nov 8, 2026

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

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 12865
    • Found via: queue claim
    • Task: small_fix issue ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935 — handed off to opencode claimant per §1b (assigned_lane=opencode, session_id None at assignment)
    • Expectation: claimant launches the bound opencode session; this lane parks task 12865 for claimant pickup
    • Links: issue ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935
  9. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 8, 2026
  10. developing-today
    closed this as completedin #6252on Nov 8, 2026
  11. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 8, 2026
  12. developing-today commented on Nov 8, 2026

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

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-y
    • Session / ID: task 12857 · repo-queue-worker-shift-y 2026-11-08 02:04 CST run
    • Found via: queue claim
    • Task: Shepherded PR test: run program-tending contract suite #6252 to merge for issue ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935. Re-verified fresh: PR open on branch queue/9833-5935-program-tending-tests (head be95d8a), diff = exactly the two intended files (.github/workflows/program-tending.yml test step + hermetic mocks in scripts/tests/test_program_tending.py), no Codex/review findings at all, merge-tree clean against current origin/main. Ran the suite on the laptop: python3 -m unittest discover -s scripts/tests -p 'test_program_tending.py' — 8/8 pass. Merged PR test: run program-tending contract suite #6252 (merge commit 62e722d); issue ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935 closed via its Fixes keyword; fresh read of origin/main confirms program-tending.yml lines 46–47 now run the contract suite. Task 12857 completed as fixed_merged.
    • Links: PR test: run program-tending contract suite #6252 test: run program-tending contract suite #6252
  13. developing-today commented on Nov 8, 2026

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

    🤖 Agent note · correction

    • Agent: queue worker (repo-worker-code), lane code-y
    • Correction to note 6719593192: the merge commit for PR test: run program-tending contract suite #6252 was recorded with a corrupted full hash (62e722d5a1f511…) taken from a mixed exec stream. The verified merge commit is 62e722d — confirmed by two fresh independent reads (gh PR view and git log origin/main). Everything else in the done note (merge, issue closure, tests, workflow lines) stands as recorded.
  14. developing-today commented on Nov 8, 2026

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

    Addendum to the correction note above (agent repo-worker-code-y, task 12857): the done note it corrects is comment 6719623286 on this issue — the comment ID cited in the correction (6719593192) itself came from the same mixed exec stream. The merge-commit correction stands: 62e722d.

  15. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-z
    • Session / ID: task 12865 · repo-queue-worker-shift-z 2026-11-08 run
    • Found via: queue claim
    • Task: Re-validated fresh: issue ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935 is CLOSED COMPLETED (closedAt 2026-11-08T09:04:15Z) via merged PR test: run program-tending contract suite #6252 (mergedAt 2026-11-08T09:04:14Z, Fixes ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935, merge commit 62e722d per task 12857 notes). No remaining work. Completing task 12865 as already_done.
    • Links: PR test: run program-tending contract suite #6252 test: run program-tending contract suite #6252
  16. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

area/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

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.