Skip to content

test(fleet): seven Python suites in pkgs/fleet (tests/ + archer-slack) are run by nothing — wire them into CI #17753

Done

Description

@developing-today-fleet

Gap (fresh orphan census at origin/main 2ad7afc, lane 0900-GL, 2026-11-30)

Seven Python test suites under pkgs/fleet/ are run by nothing:

  • pkgs/fleet/tests/test_heartbeat_lease.py (the broker's heartbeat SQL against an isolated SQLite database)
  • pkgs/fleet/tests/test_laptop_agent_delegate.py (cutover readiness gate for fleet: cut laptop-agent entrypoints over to the deployed binary #16089; oracle: the public verbs/flags documented by pkgs/fleet/laptop-agent.py)
  • pkgs/fleet/tests/test_laptop_agent_fetch_failure.py (fetch-failure parity for the legacy laptop agent, fleet-laptop-agent: route the Python client through the deployed binary #16088)
  • pkgs/fleet/tests/test_python_client_selector.py (the documented Python CLI v1 selector contract)
  • pkgs/fleet/tests/test_tailnet_proxy_env.py (tailnet proxy environment contract for the Python-side tooling)
  • pkgs/fleet/archer-slack/collector/test_collector.py
  • pkgs/fleet/archer-slack/puller/test_puller.py

Evidence, all firsthand at current main:

  • No workflow in .github/workflows/ names any of these files or discovers pkgs/fleet/tests or pkgs/fleet/archer-slack (full-workflow text search for each basename and both directory paths: zero hits).
  • A full-repo git grep for each basename finds no runner — the only hits are the test files themselves, the fleet book (pkgs/fleet/book/development/testing.md, which catalogues these suites as the Python test surface), and a stale audit record.
  • No flake check runs them: flake.nix and pkgs/fleet/*.nix carry no reference to pkgs/fleet/tests or the suite names.
  • The fleet book's testing chapter presents these suites as live coverage of the broker heartbeat/lease SQL, the laptop-agent cutover gate (fleet: cut laptop-agent entrypoints over to the deployed binary #16089/fleet-laptop-agent: route the Python client through the deployed binary #16088), the Python client selector contract, and the tailnet proxy env contract. Decorative pins are worse than none — they read as coverage.

Not covered by the sibling orphan filings: #17716 (scripts/fleet), #17717 (scripts/id), #17718 (scripts/recovery), #17720/#17739 (scripts/tests), #17724 (infra/github-backup/systemd), #17727 (scripts-test hermetic bash), #17729 (pkgs/laptop-agent/tests), #17740 (.github/scripts), #17745 (pkgs/dot-bridge) — this is the pkgs/fleet Python family only.

Fix

Wire the suites into CI: a fleet-python-tests workflow (modelled on the existing per-area python test workflows, e.g. fleet-queue-backup-tests / cold-store-reaper) running python3 -m unittest discover -s pkgs/fleet/tests and the two archer-slack suites on pushes/PRs touching pkgs/fleet/** and the workflow itself. If a suite fails from bit-rot at wiring time, fix the rot in the same PR or register the failure explicitly in the workflow with a tracking note — never silently skip.

Filed + claimed by lane 0900-GL (xaltha, wave 0900), 2026-11-30. Working this now: workflow wiring in a fresh worktree, verification via remote dispatch at the PR head, PR with Closes on this issue, merge on own verification.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T22:13:34Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    kind/test
    priority/normal
    effort/s
    on Nov 30, 2026
  2. added a commit that references this issue on Nov 30, 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

    effort/skind/testpriority/normal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions