Repository navigation
ci: add opt-in macOS test suite workflow - #6039
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Reviewed .github/workflows/tests-macos.yml at head 2fcb8af.
Scope: in-repo CI configuration, which this repository owns. The workflow mirrors the tests.yml suite list and pytest invocations (sdk with -n auto, tools with --forked, agent_server/workspace with -n auto, and cross with the same --basetemp / tmp_path options), and keeps the same trust model as tests.yml (pull_request, contents: read, no secrets). fail-fast: false is set, the matrix parses as 5 well-formed entries, and the if / concurrency expressions handle the workflow_dispatch case correctly (|| short-circuits, and github.ref is the fallback group key). No correctness, security, or compatibility defect found in the workflow itself.
Blocker — the current head fails a repository check. The head is red on Validate PR description (.github/workflows/pr-description-check.yml -> .github/scripts/check_pr_description.py, 7 failure annotations): the first visible line must be HUMAN:, a >=20-char human note must sit between HUMAN: and AGENT:, and the ## Why / ## Summary / ## How to Test template sections must be present. The current body starts with ## Why, carries ## Validation instead of ## How to Test, and links no issue. Every recently merged PR I sampled on its head (#6036, #6009, #5998, #5991, #5987) shows this check green, so this is an unresolved condition on this head rather than normal noise. It is not a required merge status check, but it is a repository gate and should be fixed before merge.
Context, not defects:
- The
test-macoslabel does not exist in the repository (confirmed via the labels API), so the label trigger cannot fire and onlyworkflow_dispatchis usable until the label is created. The PR description already calls this out. - This head has not been exercised on a
macos-latestrunner, so real pass/fail of the matrix is unverified. That is the stated purpose of the PR and is acknowledged in the description; some suites may fail for pre-existing macOS reasons.
The workflow change itself is sound; the outstanding item is the failing PR-description gate.
🔄 CHANGES REQUESTED
Co-authored-by: openhands <openhands@all-hands.dev>
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Reviewed .github/workflows/tests-macos.yml at head 9a213ba (this supersedes my earlier comment on 2fcb8af, which the two follow-up commits have replaced).
Scope: in-repo CI configuration, owned by this repository. The change adds an opt-in macOS mirror of the tests.yml suites and nothing else.
What I verified on this head:
- The workflow parses as valid YAML; the matrix holds the five expected suites with the same pytest invocations as
tests.yml(sdk-n auto,tools--forked,agent_server/workspace-n auto,crosswith the same--basetemp/tmp_pathoptions),fail-fast: falseis set, andcontents: readwith no secrets matches thetests.ymltrust model. - The refined job
if:is correct.github.event_name == 'workflow_dispatch'short-circuits first, so thegithub.event.pull_request.labels.*.namedereference is never reached for manual runs; forsynchronize/reopenedtheaction != 'labeled'branch runs when the label is present; forlabeledit requires the newly added label to bemacos-test-run, which prevents unrelated label events from triggering the suite. Theconcurrencygroup falls back togithub.refon dispatch for the same reason. - The trigger label
macos-test-runnow exists in the repository (confirmed via the labels API), so the label path is usable. - The
fetch-depth: 0that everytests.ymljob sets is absent here. I checked the covered suites for a real-repo history dependency and found none: git-touching tests build throwaway repos undertmp_pathor monkeypatchrun_git, and the one real-repo call (cas.git("rev-parse", "HEAD")intests/cross/test_verify_agent_server_skill.py) succeeds in a depth-1 clone. Not a defect. - Current-head checks: the required set (
build-binary-and-test (ubuntu-latest),pre-commit,Check OpenAPI Schema,sdk-tests,tools-tests,agent-server-tests,cross-tests) all pass, and the earlierValidate PR descriptionfailure is resolved — the validator now passes on the current body (HUMAN:note present,## How to Testand## Issue Numberfilled in). ThemacOS ${{ matrix.suite }} testsjob reportsskipped, which is the intended opt-in behavior since the label is not applied to this PR. - Linked issue #6043 carries
ready-for-dev(plusenhancement,ci,priority:medium,testing) and is still open. - I ran the focused tests that exercise this area locally (
tests/cross/test_check_pr_description.py,tests/tools/terminal/test_session_factory.py,tests/tools/terminal/test_terminal_tool_auto_detection.py): all pass.
No correctness, security, or compatibility defect found. The suites have not been exercised on a macOS runner for this head, which the PR states explicitly and which the opt-in label is designed to test.
✅ APPROVED
HUMAN:
Periodically run tests on a MacOS runner so contributors working on MacOS have a good dev experience and don't face a test suite with spurious failures on MacOS.
AGENT:
Why
No existing workflow runs the test suite on macOS.
server.ymlhas a macOS leg, but it only builds and smoke-tests the agent-server binary.tests.ymlruns on Linux, plus a reduced tools-only Windows job. macOS-specific failures (for example #6036, #6038 and #5619) are therefore only found after the fact.Summary
.github/workflows/tests-macos.yml, which runs the same suites and pytest commands astests.yml(sdk,tools,agent_server,workspace,cross) onmacos-latest, one matrix job per suite withfail-fast: false.macos-test-runlabel to a PR (it re-runs on each push while the label is present) or manually with "Run workflow" in the Actions tab, which defaults tomainonce this is merged. There is no changed-files gating, so every suite always runs, as on merge tomain.Issue Number
Refs #6043
How to Test
Add the
macos-test-runlabel to this PR and check that the fivemacOS <suite> testsjobs start. The label does not exist in the repo yet, so it must be created first. So far the workflow file has only been checked by parsing it as YAML and comparing its suites and flags withtests.yml. It has not run on a macOS runner, and some suites may fail on macOS for existing reasons.Video/Screenshots
N/A. CI workflow change only.
Design Doc
N/A.
Type
Notes
The
HUMAN:note is intentionally left for the author. The description validator also requires a linked issue carryingready-for-dev, which this PR does not have yet.This PR was drafted by an AI agent (OpenHands) on behalf of the user.
🐳 Agent Server images for this PR — GHCR package, pull/run commands, and all pushed tags (click to expand)
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdkpython-node-runtimepython-node-runtimepython-node-runtimegolang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:9a213ba-pythonRun
All tags pushed for this build
About Multi-Architecture Support
9a213ba-python) is a multi-arch manifest supporting both amd64 and arm649a213ba-python-amd64) are also available if needed