Skip to content

Run the remote mailbox lane in its own Linux job - #555

Merged
yansfil merged 8 commits into
mainfrom
ci/mailbox-own-job
Oct 6, 2026
Merged

yansfil merged 8 commits into
mainfrom
ci/mailbox-own-job

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

web e2e (macOS) was the longest job of a pull request run (14.4 minutes in the 2026-10-05 queue run): a 4.4-minute build of every CLI binary, the 6.8-minute @platform suite, then the 3.2-minute remote mailbox lane.
The mailbox lane (herdr-core/tests/remote_delivery.rs) now has its own remote mailbox job, and the macOS job builds only hided and runs only the @platform suite, like the other lanes.

  • web-e2e.yml loses the remote-mailbox input, its nextest and flaky-report steps and the mailbox cache key.
  • pr.yml gains the remote mailbox job (cache key web-e2e-mailbox) and verify needs it.
  • ci-plan.py plans the new lane by the crates it builds and tests (MAILBOX_CRATES: a change reaching herdr-core, hided, hide-agent-hooks or hide-host, plus the paths that plan every lane), never by a web or desktop path; test_ci_plan.py, docs/TESTING.md and CONTRIBUTING.md follow.
  • The failure artifact leaves out the staged binaries, the copies the install places under each account's helper and bin, and the SSH keys.

Review

  • 결정됨: Linux-only execution is decided by with-hide/hide-private#100 (section B). The job runs on Linux, not macOS. The lane covers the SSH return route, helper attestation, reverse-forward intake and the durable mailbox; the fixture's only macOS-specific code is an ad-hoc codesign of the staged binaries. What differs by system under it (process lookup, files, the local stream) is owned by os-contract and windows check. This drops the macOS execution of the lane: nightly.yml ran it through verify, which plans every lane, and after this merge no CI job runs it on macOS, so the fixture's macOS branches (codesign, BSD ps and strip, the SFTP server path) go unrun until a nightly macOS run exists (Run macOS jobs in pull request checks only when needed and start fewer jobs per run #574 adds remote mailbox (macOS) to nightly.yml).
  • 조심해서 볼 파일: .github/workflows/pr.yml (remote-mailbox job: zsh and SFTP server install, Linux Herdr asset), scripts/ci-plan.py (MAILBOX_CRATES and its one rule in classify).
  • 질문: none open.

Evidence

  • 확인한 것: python3 -m unittest discover -s scripts/tests passes (135 tests), including a test that remote-mailbox is planned for the mailbox crates and the test itself, for a path that plans every lane, and not for web, desktop or documentation paths. nightly.yml does not use the removed input.
  • 확인한 것: the lane's first Linux run failed with "timed out waiting for consented private helper". A probe run of the lane alone showed the cause: the device helper install's SFTP read-back took 46 ms per 32 KB read (401 reads, 18.4 s) against 2.3 ms per write, a Nagle plus delayed-ACK stall on the fixture's SSH server sockets (no TCP_NODELAY, unlike OpenSSH); the 79.7 MB staged hide then needed about 110 s and crossed the product's 120 s install bound.
  • 확인한 것: the fixture's server now sets TCP_NODELAY on accepted sockets (best-effort, after the connection cap check), as OpenSSH does, and a probe run with the fixture change alone passed in 36.7 s. The production client is unchanged: no measurement shows it needs the flag, and it would be its own change. The helper diagnostics print a read-only process list and start nothing.
  • 확인하지 못한 것: this pull request's own verify result with the fix, until it finishes; the before/after job times.

@yansfil
yansfil marked this pull request as draft October 5, 2026 16:56
@yansfil
yansfil marked this pull request as ready for review October 5, 2026 17:35
@yansfil
yansfil force-pushed the ci/mailbox-own-job branch from d3d8294 to f2ac7f4 Compare October 6, 2026 00:57
@yansfil
yansfil force-pushed the ci/mailbox-own-job branch from f2ac7f4 to 829deff Compare October 6, 2026 01:06
@yansfil
yansfil force-pushed the ci/mailbox-own-job branch from 829deff to 2dd8749 Compare October 6, 2026 01:17
@yansfil
yansfil merged commit 8a1d735 into main Oct 6, 2026
29 checks passed
@yansfil
yansfil deleted the ci/mailbox-own-job branch October 6, 2026 02:05
yansfil added a commit that referenced this pull request Oct 6, 2026
…r jobs per run (#574)

Part of #561

## Summary

A pull request asked for up to 23 jobs, five of them on macOS, and the
organization runs 20 jobs at once and five on macOS, so runs queued
behind each other.
Now a pull request starts a macOS job only for what a macOS runner alone
proves, and a full run starts at most 17 jobs.

- The macOS web `@platform` job is gone from pull requests; Linux
(`web-e2e`) and Windows run the same tests there, and the nightly runs
them on macOS.
- The remote mailbox lane is planned from the crates it builds and
tests, runs on Linux in pull requests and on macOS in the nightly
(`remote-mailbox.yml`).
- The OS contract's macOS leg is its own job, planned for
`hide-platform` and `hide-herdr-client` changes; `desktop e2e` no longer
follows it.
- A `herdr-core` or `hided` change starts 14 jobs and none on macOS; the
nightly runs each macOS check once; `desktop e2e` runs for `desktop/`
and the web code it drives.
- `web checks` and `desktop checks` are one job, `web-e2e.yml` loses its
`plan` and `fetch zsh` jobs (zsh is cached by runner image), and Linux
web e2e runs four shards instead of six.
- #555 (remote mailbox in its own Linux job, merged) is the base of that
lane; the helper and bin copies stay out of its failure artifact in
`remote-mailbox.yml` too.

## Review

- **판단해 주세요**: a change to the core or daemon alone no longer gets a
macOS `@platform` run before merge; the nightly finds it the next day.
- **판단해 주세요**: four Linux shards instead of six trade fewer queued jobs
for longer shards; the issue named four, balance by past durations is
not done.
- **조심해서 볼 파일**: `scripts/ci-plan.py` - `NIGHTLY_ONLY`, `OS_LANES` and
the `os-contract-macos` rule decide what skips macOS.
- **조심해서 볼 파일**: `.github/workflows/web-e2e.yml` - the shard list is
picked by index, and zsh now comes from the `build` job.
- **조심해서 볼 파일**: `.github/workflows/os-contract.yml` - takes a `systems`
input; clippy now also runs on macOS.

## Evidence

- **확인한 것**: `python3 -m unittest discover -s scripts/tests` passes (136
tests): lane reach for 25+ paths, no macOS lane for core/daemon changes,
and the job count (17) counted from the workflows and matched to
`docs/TESTING.md`.
- **확인한 것**: a review pass over the diff found two stale
`CONTRIBUTING.md` lines, fixed.
- **확인하지 못한 것**: the new job shapes on real runners (indexed shard
matrix, `os contract (macOS)` with clippy on macOS) are first exercised
by this pull request's own `verify`.
- **확인하지 못한 것**: remaining from #561: `desktop/src/main` changes running
desktop `@platform` on Linux and Windows (waits for the desktop OS scope
change), Linux shard balancing by past durations, and the post-merge
measurements (median wall time, share of runs with Linux shards waiting
over 10 minutes, shard times at four).
- **확인한 것**: origin/main (with #555 merged) is merged into this branch
without rebase; the `remote mailbox` job here is #555's Linux job
through `remote-mailbox.yml`, and the nightly adds `remote mailbox
(macOS)` on the same file.
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.

1 participant