Skip to content

ci(pm-stack): scheduled-history collector test (19 checks) runs nowhere and pm-stack-tests paths omit pm-stack/scheduled-history/** #10423

Closed

Description

@dezren39

Summary

pm-stack/scheduled-history/test_collect.py is a 19-check regression suite for the scheduled-history reconciler/collector (pm-stack/scheduled-history/collect.py, added for #2174 / Gap 1). It passes locally on current main, but no CI workflow, flake check, or test-suite registry entry runs it, and changes under pm-stack/scheduled-history/** are not covered by the pm-stack-tests workflow path filters.

Evidence

  • Suite: pm-stack/scheduled-history/test_collect.py (19 checks, script-style suite; prints 19/19 checks passed on success).
  • Implementation/readme: pm-stack/scheduled-history/collect.py, pm-stack/scheduled-history/README.md (documents python3 test_collect.py).
  • Local verification on developing-today/code @ e77ed21264b8 (2026-11-15):
    • python3 -m unittest pm-stack/scheduled-history/test_collect.py → Ran 0 tests in 0.000s / NO TESTS RAN (not unittest-discoverable)
    • python3 pm-stack/scheduled-history/test_collect.py → exits 0 with 19/19 checks passed
  • CI wiring:
    • .github/workflows/pm-stack-tests.yml path filters include pm-stack/scripts/**, pm-stack/opencode-claimant/**, etc. but do not include pm-stack/scheduled-history/**.
    • pm-stack-tests.yml job steps run aggregator/projector/dispatch suites and specific script/python suites, but never invoke pm-stack/scheduled-history/test_collect.py.
    • rg -n "scheduled-history|test_collect" .github nixos returns no matches (no workflow/flake reference).
  • Dedupe: gh issue list -R developing-today/code --state all --search "scheduled-history OR test_collect" returns no issue tracking this test/wiring (checked 2026-11-15).

Why it matters

The scheduled-history collector is the durable per-run/outcome/token dataset for OpenChamber scheduled tasks (#2174). Without CI coverage, regressions in reconciliation/finalization/enrichment/windowing can land unnoticed, and edits under pm-stack/scheduled-history/ currently won't even trigger the pm-stack test workflow.

Acceptance criteria

  • CI runs pm-stack/scheduled-history/test_collect.py (e.g. python3 pm-stack/scheduled-history/test_collect.py) and fails the job on failure/non-zero exit.
  • .github/workflows/pm-stack-tests.yml (or an equivalent appropriate workflow) includes pm-stack/scheduled-history/** in its path filters so changes to the collector/tests trigger the run.
  • The wiring is documented/registered consistently with repo conventions if applicable (e.g. .github/test-suite-registry.json entry when suites of this kind are tracked there).
  • A run demonstrates the 19 checks pass in CI on current main.

Activity

  1. developing-today commented on Nov 15, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · fix implemented, PR awaiting CI — task 19262 (lane code-a)

    • Gap re-verified fresh (2026-11-17, origin/main): pm-stack/scheduled-history/test_collect.py exists; zero references to it or scheduled-history in .github/workflows/pm-stack-tests.yml, .github/test-suite-registry.json, or any workflow/flake wiring. The suite passes locally: 19/19 checks passed, exit 0.
    • Fix — PR ci(pm-stack): run the scheduled-history collector suite in pm-stack-tests (#10423) #11011 (queue/19262-10423-scheduled-history-ci, commit 2a046b2): a new step "Test scheduled-history collector Python suite" in the pm-stack-tests test job, in the file's established orphan-suite pattern (file asserted to exist first, script run directly since it is not unittest-discoverable, non-zero exit fails the job, and the suite's own checks-passed line is required so an empty run cannot pass silently) + registry entry pm-stack.scheduled-history.collect. Workflow YAML and registry JSON both parse; the step's shell logic was simulated verbatim in the worktree (exit 0).
    • Acceptance item 2 (path filters) — disposition recorded, not skipped: the issue was filed against a push/PR-triggered workflow; on 2026-11-16 the workflow moved to the nightly-main-CI policy (workflow_dispatch + nightly cron, no path filters exist), so there is no filter list to extend. Step coverage in the nightly run is the equivalent guarantee, and it is stronger than a path filter (the suite runs every night regardless of what changed).
    • Remaining: PR ci(pm-stack): run the scheduled-history collector suite in pm-stack-tests (#10423) #11011 checks + merge; the first nightly pm-stack-tests run on main after merge is the acceptance-item-4 CI demonstration. Task 19262 parks on the PR.
  3. added
    kind/ciCI/CD pipelines, workflows, and build automation
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 17, 2026
  4. added a commit that references this issue on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  6. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Correction to the note above (task 19262): issue #10423 was in fact closed by PR #11011's merge linkage (merge commit ca4d8da) — it is CLOSED with status:done, not open as my note said. The remaining evidence is unchanged: the first nightly pm-stack-tests run on main is the CI demonstration of the wired-up suite; if that run fails on the scheduled-history suite, reopen this issue.

  8. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    state: verified_closed / already_done
    task: 20691 (repo-health-code-pilot, lane oc-code-03)
    issue: #10423 — scheduled-history collector tests not wired in CI

    Fresh check 2026-11-18: issue CLOSED (status:done). Fixed by PR #11011, MERGED 2026-11-17T07:19:43Z (merge commit ca4d8da). .github/workflows/pm-stack-tests.yml:140-155 now runs pm-stack/scheduled-history/test_collect.py and fails on a missing suite file. Watch the first nightly pm-stack-tests run on main; reopen if the suite fails.

    Disposition: already_done, no follow-on.

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

Metadata

Metadata

Assignees

Labels

kind/ciCI/CD pipelines, workflows, and build automationstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions