Skip to content

feat: Workspace Smoke nightly when a main moved, commit_shas input (M3.7d) #354

Closed

Description

@Jammy2211

Overview

The full workspace sweep runs weekly, and library PR CI runs no workspace script. Shift merges will carry only a targeted smoke, so the sweep has to run nightly to find a break within a day, and accept pinned SHAs so a red run can be bisected. Human ruling S4, 2026-11-19.

Plan

  • Nightly schedule on workspace-smoke.yml, skipped quickly when no library or workspace main moved since the last successful run.

  • A commit_shas dispatch input passed through to workspace-validation.yml.

  • Every run records the SHAs it tested.

  • A skipped night must not age Heart's evidence into STALE.

  • Say whether run 43034177136 (2026-11-11) was a real failure or a flake.

  • effective level: supervised; merge mode: human /prm

Detailed implementation plan

Affected Repositories

  • PyAutoHeart (primary)

Suggested branch: feature/workspace-smoke-nightly

Implementation steps, key files and the witness are in the prompt below ("Shape", "Witness:").

Original Prompt

Click to expand starting prompt

M3.7d Workspace Smoke runs nightly when a main moved, and accepts pinned SHAs

Type: feature
Target: PyAutoHeart
Repos:

  • PyAutoHeart
    Difficulty: small
    Autonomy: supervised
    Priority: high
    Status: draft
    Filed: 2026-11-19
    Epic: autonomous-orchestrators
    Phase: 10
    Consequence: judge
    Witness: (1) .github/workflows/workspace-smoke.yml has a nightly schedule: and a workflow_dispatch input commit_shas that it passes to workspace-validation.yml; (2) a scheduled run on a night when no library or workspace main SHA differs from the last successful run's ends in under 2 minutes with the summary line "no main moved since run " and conclusion success; (3) gh workflow run workspace-smoke.yml -f commit_shas='{"PyAutoGalaxy":"<sha>"}' runs the workspaces against that SHA and records it in the run's commit_shas.json; (4) every run writes the SHAs it tested to its summary and to an artifact, in a form gh run view --json or gh run download can read; (5) Heart's test_run leg still reads the latest completed run as before, and a skipped night does not make it STALE
    Lane: any
    Unattended: ready

Request (verbatim)

Human, 2026-11-19, in chat, on the cloud verification lane of the orchestrator speed review: "approved, all rulings yes".

Why

workspace-smoke.yml is the only run of every workspace against the libraries' main. It runs on Mondays at 03:00 UTC and takes 26 to 36 minutes. Library PR CI runs no workspace script. After M3.7b a shift's merges carry only a targeted smoke, and the human's /prm merges already carry no sweep, so main can hold a workspace break for up to a week. The sweep moves after the merge and has to run often enough to find a break within a day.

commit_shas is an input of workspace-validation.yml and release-integrate.yml but not of workspace-smoke.yml, whose workflow_dispatch takes no inputs. Bisecting a red run needs it.

Ruling (human, 2026-11-19)

  • S4 (Heart half). The nightly CI minutes are accepted.

Shape

  • workspace-smoke.yml: add a nightly cron (keep Monday's as the same schedule); a first job that compares the current main SHAs of the libraries and workspaces with those recorded by the last successful run and skips the body when none moved; the commit_shas input passed through to workspace-validation.yml.
  • Record the tested SHAs per run so M3.7e can print "workspaces verified through <sha>" and name the suspect PRs between two runs.
  • Check how Heart's readiness reads this workflow (gh run list --workflow workspace-smoke.yml) and keep a skipped night from ageing the evidence into STALE.
  • Look at run 43034177136 (2026-11-11, dispatched by hand, failed) and say in the PR whether it was a real failure or a flake, because M3.7e blocks merges on a red run.

Order

Independent of M3.7a to M3.7c; may be built in parallel. M3.7e needs it.

Activity

  1. Jammy2211 commented on Nov 19, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged in #355 (8ab527d) by the human's /prm, 2026-11-19. M3.7d of the autonomous-orchestrators epic.

    • Nightly workspace-smoke.yml with a SHA gate: it skips when no workspace main moved and the latest run was green, runs a full sweep at least every 7 days, and takes a force input.
    • A SHA record artifact is uploaded on every run, and smoke runs are pinned to the gate's SHAs.
    • A separate workspace-smoke-pinned.yml for bisect runs.
    • Heart test_run reads only runs on main and re-attests a skipped night.
    • Covered repos are read from workspace-validation.yml (fixes the tenant-firewall CI red).

    Review (Fable 5.2): round 1 FINDINGS (1 high, 1 medium, 2 low), fixed. Run 43034177136 (2026-11-11) was a real failure on a feature branch.

    Outstanding verification: witness items 2 (a skipped night), 3 (a pinned dispatch) and 4 (the SHA record on a real run) need runs on main and are not yet verified.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions