Skip to content

ci(planning): run the shared Python suites on macOS - #9083

Merged
kyle-sexton merged 4 commits into
mainfrom
ci/planning-shared-macos
Oct 22, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
ci/planning-shared-macos

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #9080

Summary

plugins/planning/shared/README.md says the shared session supports Windows, macOS and Linux, but no CI leg ran on macOS. This adds an informational macOS job that runs the planning shared Python suites (plugins/planning/shared/tests/test_*.py) on macos-26.

Fix

  • pr-test-windows.yml gets a test-macos-planning-shared job with one step per module. Each step is gated by the same select-tests-windows selection as the Windows steps, and the job stays outside ci-status, as the Windows jobs are. A change to pr-test-windows.yml, .python-version, a schedule run or a dispatch runs every step.
  • scripts/test-windows-plan.txt gets nine plan lines, one per module. plan-test-lanes.test.sh live checks hold them in step with the workflow.
  • docs/ci-runner-routing.md names the macOS job.
  • Typo fix: behaviour becomes behavior on the file's existing line 160, because the pre-push typos hook scans the whole file.

Step timeouts are 3× each module's Linux CI median in scripts/suite-seconds.txt (lines 419–427, 336 s in total), with a 2-minute floor: server 7, share 7, tunnel 3, the others 2. The job timeout is 32 minutes. In scheduled run 39756027481, the Windows test_s*.py step took 382 s against a Linux sum of 265 s, which is 1.4×. No macOS timing exists yet.

Verification

  • scripts/plan-test-lanes.test.sh: PASS=41 FAIL=0, including both live workflow/plan consistency checks.
  • scripts/plan-test-lanes.sh -- plugins/planning/shared/share.sh gives windows_jobs=["test-windows-worktree","test-macos-planning-shared"].
  • actionlint is clean.
  • Runner policy: with the current synced policy the job fails runner-target-contract on macos-26. With the standards PR's policy.json it passes.
  • Local Linux timings (WSL, nice): cfdns 18 s, load 13 s, owner_ops 21 s, people_proposals 7 s, schema_shapes 2 s, session 11 s, all OK. Server, share and tunnel were not finished locally.
  • The macOS job has not run. Draft PRs skip this workflow, and nothing was dispatched. Its first run will be on ready or on the next schedule.

Related

  • Merge order: the standards PR that approves macos-26 merges first. The standards sync PR into .github/standards/runner-policy/ merges next, then this PR. Until the sync lands, this PR's runner-policy gate (inside ci-status) fails.
  • Possible failures on macOS: /bin/bash is 3.2, and support.py copies whichever bash is on PATH for the fake cloudflared. The /proc cases already SKIP.

🤖 Generated with Claude Code

https://claude.ai/code/session_0134VnRFcSNehg9ngFzVCxFh

Add test-macos-planning-shared to pr-test-windows.yml: one step per
plugins/planning/shared/tests/test_*.py module on macos-26, each gated
by a plan line in scripts/test-windows-plan.txt like the Windows steps.
It is informational and outside ci-status, as the Windows jobs are.

Closes #9080

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0134VnRFcSNehg9ngFzVCxFh
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 22, 2026 17:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T17:59:19.165993Z c8042f6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of c83ba11ad6e7be8c51276210f85d56ee7539db84: no file of this pull request changed since the review of f40a8ca.

Security review: PR #9083 at c8042f6

No security findings.

The PR adds an informational test-macos-planning-shared job to .github/workflows/pr-test-windows.yml. It also adds matching rows to scripts/test-windows-plan.txt and a sentence to docs/ci-runner-routing.md.

  • Trigger and token: The workflow runs on plain pull_request, not pull_request_target or workflow_run. Its top-level permissions is contents: read, and the new job adds no permissions and uses no secrets.
  • Checkout: persist-credentials: false, so no push credential stays in the macOS checkout.
  • Action pins: actions/checkout and actions/setup-python are pinned to full commit SHAs, matching the existing jobs.
  • Expression injection: Every run: line is a fixed python -m unittest discover command. No github context value reaches a shell. The if: conditions only test fromJSON(needs.select-tests-windows.outputs.steps) with contains against literal paths.
  • Runner routing: macos-26 is a GitHub-hosted runner. It does not use a self-hosted or fleet label, so it breaks no routing rule in docs/ci-runner-routing.md.
  • Instruction surface and manifests: The diff deletes or softens no standing instruction. It changes no plugin.json or marketplace.json, so there are no manifest <field> lines.

I did not check whether a PR-controlled test-windows-plan.txt can inject extra job names or step paths. Those values only feed contains checks against literal strings, and the code that runs the tests is the same code pull_request already runs on every other lane.

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of c83ba11ad6e7be8c51276210f85d56ee7539db84: no file of this pull request changed since the review of f40a8ca.

Code review: PR #9083 (ci(planning): run the shared Python suites on macOS)

I found nothing that blocks the merge, so I posted no inline comments.

What I checked (by reading the three changed files and the planner and selector scripts):

  • Plan to workflow: The nine plan lines in scripts/test-windows-plan.txt match the nine step conditions, and the job's if: names test-macos-planning-shared as the job column. Both live checks in scripts/plan-test-lanes.test.sh compare these two files.
  • Step timeouts: The step timeouts follow from the Linux medians in scripts/suite-seconds.txt. I took the medians from the lines of the file that list the planning shared suites. Three times the median, with a 2-minute floor, gives server 7, share 7, tunnel 3 and the rest 2. The step total is 27 minutes against the 32-minute job timeout.
  • Standing: The job is not in ci-status.needs, so it stays informational.
  • Closing issue ci(planning): run the shared Python suites on macOS #9080: The decision and plan are met: a macos-26 job, the same selection as the Windows jobs, one step per module, and outside ci-status.
  • Manifests, path-scoped rules and paved paths: The diff hits none of them.

Observations, not findings:

  • Shared step key: The macOS test_server.py step uses the same step key as the existing Windows steps. Per the planner, a key in two jobs runs in both (scripts/plan-test-lanes.sh:419-432). The Windows line's plugins/planning/shared/*.py pattern is broader than the macOS line's single-file pattern. So a change that selects only another shared test, such as test_cfdns.py, would probably also run the 7-minute macOS server step. That is extra runtime on an informational lane, and the PR text ("each step runs when the change selects its module") slightly overstates how narrow the selection is. I could not run the planner here to confirm it, because the sandbox denied it.
  • Unverified claims: The PR body says actionlint is clean, plan-test-lanes.test.sh passes (PASS=41), and the runner-policy gate fails until the standards sync lands. These are author-claimed, and I did not run any of them. The macOS job itself has never run, as the author states.
  • Merge order: The PR body says ci-status will fail the runner-policy check on macos-26 until the standards sync PR merges. The merge order in that body matters.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit dc9d959 Oct 22, 2026
28 checks passed
@kyle-sexton
kyle-sexton deleted the ci/planning-shared-macos branch October 22, 2026 22:26
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.

ci(planning): run the shared Python suites on macOS

1 participant