Repository navigation
ci: require full Linux verification and macOS-native checks on pull requests - #1921
Conversation
The build and test jobs of a main push shared one concurrency group with cancel-in-progress, so the next merge cancelled them. Of 20 full main runs since 2026-11-19, 8 ended that way and reported nothing about their commit. Each push now keeps its own jobs; on 2026-11-19 that would have cost about 55 more macOS minutes out of 1788. The README shows the latest finished main result. Refs #1919
Run the verify steps on a self-hosted Linux x64 runner beside macOS. The Linux result is reported and does not decide ci-ok: the trial measures run time and finds the tests that need host support before Linux can carry full pull request verification. Refs #1919
Select Linux runners labelled `dim-verify`, which have bubblewrap, and fail the job's first step when bubblewrap cannot create a sandbox: the first trial ran on a runner without it and 33 xtask tests failed for that reason alone. Ignore off macOS the 22 Modality tests that expect a host with Apple Vision. They drive the host OCR target through a stub helper and assert its availability, so on Linux they fail on the platform reason before reaching what they test. Refs #1919
The preflight runs `echo $HOME` and compared the first output line with the run's home. The exec shell is a login shell and its output merges stderr, so a profile script that writes to stderr puts its lines first. On the Ubuntu 26.04 runners `/etc/profile.d/im-config_wayland.sh` prints "Failed to create stream fd" three times under bubblewrap, and 26 eval tests failed with "echo $HOME printed another home" although the last line was the run's home. Also remove the temporary login-shell probe job. Refs #1919
A PID recorded by a bubblewrap helper belongs to its private namespace. Check that the descendant released a file lock before returning. Only the shared-PID backends use the recorded PID for cleanup. Refs #1919
Let the child model request the tool before posting parent activity, then verify the same request survives the parent preset update. Previously the echo model could reply to a parent activity notification and never request its tool. Refs #1919
…ermissions The fixture publishes client presence and execution settings asynchronously on the new branch. Wait until both inputs reach the queue before taking the baseline and keep the exact timeline sequence comparison across the read. Refs #1919
…selines The model request can race publication of the execution settings input. Wait for all four startup inputs in both baseline fixtures before submitting the prompt, then compare the same complete wire shapes. Refs #1919
The last task can still deliver its completion input after the restart. Wait for exec/ended before waiting for the branch to idle so the echo model receives the next tool request after that notification. Refs #1919
Linux refused to spawn the private updater with ETXTBSY. Copying it inside the parallel test harness opens the executable for writing while other tests fork. Run install in its own process and wait for it to close the file before execution. Refs #1919
eric8810
left a comment
There was a problem hiding this comment.
Reviewed at head 3fb8502.
The CI half is a trial and says so: the Linux verify job runs beside macOS on a dim-verify-labelled runner, requires that bubblewrap can start a sandbox before the workspace tests, uses eight Cargo jobs against macOS's four, and carries continue-on-error while step 3 of #1919 owns making it required and choosing the macOS-native PR set. Making the sandbox check a precondition rather than a test is right — a runner that cannot confine the tools would fail every flow downstream of it.
The fixture work is the part that matters for the repository's current state, and what I read is synchronisation, not softening. default_effort now waits until four startup inputs are applied before sending its baseline turn, with a 10-second bound and a message naming the condition; sessions waits on the owner's own InputSnapshot for queued == 2 instead of racing the publish. Both are the "wait for the state your assertion observes, from the part that owns it" pattern, and both fail loudly on timeout rather than passing silently — the difference between fixing a race and hiding one. permission_flow is the one place with more deletions than additions (6/8), which I did not read line by line; nothing else in the stat suggests a removed assertion.
The scenario preflight accepting the expected run home on a complete output line even when the login profile also writes to stderr, and the private socket directory for the native probe, are the same class of repair: the fixture stops depending on an accident of the environment.
Blocking: none.
Checks are green at this head, and the description cites verify (linux) and verify both passing in run 44711421599. I read the CI diff shape, the default_effort and sessions changes and the file stat; I did not read permission_flow, scenario_eval.rs, the workload/docs edits or the CLI fixture changes, and I ran nothing.
Non-blocking: none.
# Conflicts: # .github/workflows/ci.yml # README.md # docs/release/README.md
…quests Keep full macOS verification on main. Select the PR native Rust cases from the current sources and Cargo targets, and verify each selected name against libtest before running it. Stage and layout changes retain the Apple packaging checks. Refs #1919
…rename notices A launch can commit its title before the client attaches. Check the first manual revision in session summaries and keep the live notice assertion on a rename made after attach. Refs #1919
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Reviewed at head 0d03596.
The head matches the updated title: pull request workspace verification is gated on the Linux dim-verify job, the macOS PR job runs the native selection, and main pushes keep full macOS verification. The branch also carries the fixture synchronization work and the session-title sequencing change.
Verdict: APPROVE. Blocking: none.
P3: the HostPlatform guide says Perl is required, but the test skips without it
Problem: docs/architecture/rust-agent/plugins/HostPlatform.md:333 says "This probe requires Perl." The test prints skipping the escaped-descendant probe: perl is not on PATH and returns (crates/dim-agent-capabilities/tests/host_platform_flow.rs:923-926). The old text said the probe is skipped when Perl is absent.
Failure scenario: on a dim-verify runner without Perl, the new Linux PID-namespace lock assertion never runs and the job stays green, while the guide tells a reader the probe ran.
Evidence: the guide line and the skip block above.
Fix: restore the skip wording, or install Perl on the runner and state the probe is required there.
P3: merging #1950 conflicts in the gate wiring and the CI guide
Problem: the two heads conflict in .github/workflows/ci.yml at the ci-ok needs line (ci.yml:389), in scripts/ci-changes.mjs at the groups array (line 4), and in the CI paragraph of docs/release/README.md (line 183). #1950 adds static-checks and the static group; this PR adds macos-native and macos_scripts.
Failure scenario: resolving the needs conflict by taking one side drops a gating job, so the other PR's checks stop blocking. Resolving the README paragraph with #1950's text leaves "the web job runs ... alongside macOS verify", which is false for pull requests after this change.
Evidence: git merge-tree on the two heads reports these three files; #1950's needs line is [changes, dependencies, static-checks, windows-cli, web, verify, acp-registry].
Fix: rebase the later PR and keep both macos-native and static-checks in needs, both groups in groups, and merge the paragraph to name verify (linux), static-checks and macos-native for pull requests.
Optional coverage note
The native selection runs every macOS-gated test. I ran it: 55 tests passed across 12 targets. It does not run portable tests with macOS-only branches, such as spawn_isolates_the_environment_and_terminate_releases_its_tree (crates/dim-agent-capabilities/tests/host_platform_flow.rs:102) and the macOS branch at crates/dim-app-server/tests/transport_flow/process_typescript.rs:2592. Those run only on Linux in PR CI and on macOS after merge. If that boundary is intended, one sentence in docs/architecture/build.md would state it.
Verification
node --test scripts/ci-changes.test.mjs scripts/test-macos-native.test.mjs: 11 passed.node scripts/test-macos-native.mjs: 55 passed, 5 manual cases ignored, 12 targets, on macOS ARM64.node --test --test-name-pattern='^native package staging' scripts/release.test.mjs: 2 passed.cargo test -p dim-session-title --test initial_title_flow: 5 passed.cargo fmt --all -- --check --config error_on_line_overflow=true: clean.cargo build -p xtaskandxtask check: passed, including 26 plugin documents.- CI at this head: changes, dependencies, windows-cli, web and macos-native passed; verify (linux) was still running its workspace tests, and ci-ok follows it.
The gating is real: no continue-on-error remains, ci-ok fails on any failure or cancellation, a missing bubblewrap fails the host support step before the build, and an unavailable runner leaves the check pending rather than passing.
The session-title change removes the racy requirement that the launch title's notice arrive after attach, and keeps the state checks (title, source, revision 1) plus the live rename notice. The generic notice path stays covered by the App Server title tests. No meaningful assertion is weakened.
The temporary probe commits left no code in the head; the linux-probe job is gone.
| `a_confined_helper_returns_when_an_escaped_descendant_holds_its_pipes` checks the lifetime of a | ||
| descendant that left the group. On Linux with bubblewrap, the descendant's file lock must be | ||
| released when the call returns. On macOS and unconfined Linux, the caller cleans up the surviving | ||
| descendant. This probe requires Perl. |
There was a problem hiding this comment.
This says the probe requires Perl, but the test prints skipping the escaped-descendant probe: perl is not on PATH and returns (crates/dim-agent-capabilities/tests/host_platform_flow.rs:923-926). On a runner without Perl the new Linux PID-namespace lock assertion never runs while the job stays green. Restore the old "skipped when perl is absent" wording, or install Perl on the dim-verify runner and make it required there.
eric8810
left a comment
There was a problem hiding this comment.
复审 0d03596a:这是从 advisory 试运行切到正式门禁的新版本,我重新核对了路由。PR 的 Linux 全量验证与选中的 macOS 原生检查都进入 ci-ok;主分支 push 仍跑 macOS 全量,手动触发保留两平台。Linux 端保留 bubblewrap 前置检查。旧 Linux run 中 renamed-fork 测试超时;新版从已提交的启动标题校验内容、来源和 revision,同时仍要求 attach 后的重命名收到匹配实时通知,未放松要保护的行为。
本提交的 CI 已确认 verify (linux)、macos-native 和 ci-ok 全绿。未在本地运行分支脚本。非阻塞:macOS 原生选择不等于旧的全量 PR 覆盖;合并 #1950 时按现有评论保留两边新增的门禁。
Summary
Refs #1919. This PR moves pull request workspace verification to Linux and splits out the macOS-native checks. The base is
main, which includes #1920.dim-verify, eight Cargo jobs, working bubblewrap)mainpush selecting the full suiteci-okrequires both selected PR jobs. A failure or cancellation in either fails the gate. Documentation-only changes retain the existing path selection. Interactive tmux tests continue to run locally.Coverage and CI fixes
node scripts/test-macos-native.mjs --listprints the selection. It covers the macOS clipboard, Seatbelt, filesystem metadata and OCR paths, including all fourdim-ocrlibrary tests. Existing manual Apple Vision/PDFium cases retain their ignore status.Verification
0d03596a8passed, includingci-ok. Full Linux verification took 18m 17s onlinux-runner-005, including the renamed-fork and portable image/OCR tests.macos-5. The runner passed 55 Rust tests in 12 test programs and four native packaging and layout script tests. The five pre-existing manual Rust cases stayed ignored.actionlint, the development and release script tests, the native selector fixture,cargo fmt, the ADR freeze check, and failure/cancellation and event routing evaluated with GitHub's Actions expressions library. All five session title flow tests and 64 repetitions of the renamed-fork case passed.Design rule checklist
This PR changes CI, test fixtures and the eval preflight. It adds no plugin, service, or Timeline event. The build, release and HostPlatform guides describe the affected behavior.