Skip to content

Split workspace validation into smoke and release-integrate channels (fixes #121) - #122

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/split-validation-channels
Jul 30, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/split-validation-channels

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Fixes #121 — CI/release-audit series task 3.

One workflow file per meaning, so gh run list --workflow <file> is unambiguous and a failed nightly rehearsal can never overwrite the continuous smoke verdict:

  • workspace-validation.yml → workflow_call-only shared body (all jobs unchanged — they already key off the resolved mode output; filename kept so tests/test_verify_install_script.py and Build-capability docs stay true).
  • workspace-smoke.yml (new entry): Monday 03:00 schedule (moved from the body) + bare dispatch → body mode=smoke. This is the run history test_run.py now reads (VALIDATION_WORKFLOW = "workspace-smoke.yml").
  • release-integrate.yml (new entry): dispatch + workflow_call with testpypi_version / commit_shas → body mode=release. Deliberately no mode input — the channel is the mode. Artifacts (workspace-validation-report, release-stage-report) attribute to this caller's runs, so validate --ingest and test_run's artifact fetch each see only their own channel.
  • tests/test_workflow_wiring.py (new): parses the three files — body is call-only, the smoke entry owns the schedule, the release entry has no mode input, and VALIDATION_WORKFLOW names an existing entry — so the split cannot silently drift back to one channel.
  • Docs/capabilities updated to name the channels (release_validation.md, health_agent/capabilities.*, validate.py docstrings).

⚠ MERGE ORDER: merge this, then the companion PyAutoBrain PR back-to-back, before tonight's 02:00 UTC nightly — between the merges the nightly's Stage 3 would dispatch workspace-validation.yml, which no longer accepts workflow_dispatch, and the night would page.

Suite: 320 passed (4 new wiring tests). All three workflow files YAML-parse clean.

Residue (docs-only, separate sweep): PyAutoHands docs/nightly_release_design.md / docs/internals.md mentions + one release.yml comment.

🤖 Generated with Claude Code

… channels

workspace-validation.yml served two meanings — weekly mode=smoke (the
continuous readiness signal) and nightly mode=release (Stage 3 rehearsal) —
and test_run read the latest run of the FILE regardless of mode, so every
failed rehearsal overwrote the smoke verdict (PyAutoHeart#121; gh run list
cannot filter dispatch inputs).

One workflow file per meaning:
- workspace-validation.yml → workflow_call-only shared body (jobs unchanged).
- workspace-smoke.yml: schedule (Mon 03:00, moved) + bare dispatch → mode=smoke.
- release-integrate.yml: dispatch + workflow_call with testpypi_version/
  commit_shas → mode=release; deliberately NO mode input — the channel is the
  mode.
- test_run.py: VALIDATION_WORKFLOW = workspace-smoke.yml (the continuous
  verdict may only come from the smoke channel).
- tests/test_workflow_wiring.py: parses the three files so a trigger or mode
  drifting back onto the body fails loudly.
- docs + health_agent capabilities updated to name the channels.

MERGE ORDER: the companion PyAutoBrain PR (validate.sh/overnight_status
repoint) must merge in the same window — between the two merges the nightly
would dispatch workspace-validation.yml, which no longer accepts
workflow_dispatch. Suite: 320 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 969b4c8 into main Jul 30, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/split-validation-channels branch July 30, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split workspace validation into smoke and release-integrate channels

1 participant