NativeLink v1.9.0
A platform and reliability release, and the first minor release since v1.8.0. Windows is now supported: each release ships a signed x86_64-pc-windows-msvc binary next to the Linux and macOS builds. It links the C runtime statically, so it runs on a clean Windows Server host without the Visual C++ Redistributable. Windows workers now stay connected to their scheduler, where before they dropped into a reconnect loop right after registering. On a console shutdown signal they finish their running actions before exiting. This was tested on Windows Server 2025 workers behind a staging scheduler. This release also wraps up the GPU and multi-cloud work of the 1.8 line. Since v1.8.7, the resource hints have a GPU dimension: a size class can state a share of a device, and an action gets the smallest GPU slice that holds the device memory it was measured using. Alibaba Cloud OSS joined the S3, GCS and Azure stores in v1.8.6, the Azure store gained request limits and upload cleanup in v1.8.0 and v1.8.2, and this release fixes removal through the ONTAP S3 existence cache. One NativeLink deployment can now serve Linux, macOS, Windows and GPU workers across clouds. The scheduler is also more reliable under load: a slow store no longer times out live workers, a refused Redis change notice no longer fails the write it follows, and a result the store refuses is kept instead of run again. Workers can name themselves, the first step toward keeping their actions across a reconnect.
GetCapabilities now reports update_enabled: false for an instance whose Action Cache is read_only, and the server warns once at startup when workers that aren't single_use share a writable Action Cache. A worker no longer uploads do_not_cache results to the Action Cache. A forwarding scheduler reports a lost upstream as UNAVAILABLE, not INTERNAL, so clients retry, and a MISSING precondition subject now names a non-default digest function. The worker API gains an optional worker_id and an ExecuteResultAccepted update, sent only to a worker that named itself, so a mixed-version fleet works. directory_cache.experimental_clone_executables is new and off by default; v1.8.7 and older reject the key, so keep it out of shared config until every worker runs v1.9.0.
What's Changed
⛰️ Features
- Warn at startup when shared workers and a writable action cache are combined by @modernmedici in (#3252) - (7116c7c)
- Scheduler: tell a worker that named itself when its result is settled by @amankrx in (#3261) - (d86e178)
- Scheduler: a worker can name itself, and a reconnect under that name ends its earlier connection by @amankrx in (#3260) - (f401455)
- Windows: handle console shutdown signals and publish signed release binaries by @anduril-rvanderzee in (#3264) - (8a38e0a)
- Clone executable inputs into the directory cache on macOS by @erneestoc in (#3191) - (6887a3f)
🐛 Bug Fixes
- fix(store): invalidate ExistenceCacheStore entries on remove by @mvanhorn in (#3231) - (63f26f9)
- Report update_enabled per instance in GetCapabilities by @modernmedici in (#3250) - (6884cde)
- Redis store: a refused change notice no longer fails the write it follows by @amankrx in (#3257) - (39a37a7)
- Scheduler: a worker is heard from when its message arrives, so a slow store cannot time out live workers by @amankrx in (#3256) - (92b086a)
- Scheduler: keep a refused result, report a lost upstream as Unavailable, and the rejoin and clock-step fixes by @amankrx in (#3222) - (09bfb7e)
- Name the digest function in MISSING precondition subjects by @rajputdivyanshu81 in (#3157) - (6bf322b)
- Keep do_not_cache results out of the Action Cache on the worker by @rajputdivyanshu81 in (#3159) - (c41faed)
- Gate empty-file mode change to macOS by @MarcusSorealheis in (#3242) - (5201eb1)
📚 Documentation
- Add CI-safe example config with single_use workers by @modernmedici in (#3251) - (517afc0)
🧪 Testing & CI
- Respect platform timestamp precision in scheduler ordering tests by @MarcusSorealheis in (#3272) - (daffed0)
- Compare the swept attempts with assert_eq so nightly Clippy accepts the empty check by @ashishsonamm in (#3271) - (24826fb)
- Use same version of rust as nix, not "stable" by @palfrey in (#3249) - (060a984)
- Disable namespaces for job control tests by @palfrey in (#3247) - (6e81e84)
- Bound the pre-build garbage collection wait on the retained client by @MarcusSorealheis in (#3248) - (9736eae)
- Hold the Nix client lock through artifact transfer by @MarcusSorealheis in (#3266) - (4694deb)
- Scope trusted build permissions to the reporting job by @MarcusSorealheis in (#3263) - (41268e4)
- Client stream tests: a forwarding scheduler ends its client's stream however the upstream ends, and an unreadable record is an error by @amankrx in (#3259) - (d4e1265)
- Keepalive tests: sends stay on their grid, a failed one reconnects, and one costs the store the same whatever the worker holds by @amankrx in (#3258) - (ded74d9)
- Scheduler test: a burst is served oldest first when room opens mid-pass, on both backends by @amankrx in (#3255) - (7deea71)
- Scheduler tests: retention follows real listeners, and the queue order during a rolling upgrade by @amankrx in (#3254) - (cf04ada)
- Scheduler tests: expiring fake Redis, a faithful mock instant, and the retention cases by @amankrx in (#3225) - (e082ab1)
- Scheduler test base: run a case on both backends, show a test fails with its fix reverted, and stop new wall-clock sleeps by @amankrx in (#3176) - (8674f01)
- Run the cluster and Nix lanes on the AWS deployment only by @amankrx in (#3245) - (e75c2e0)
⬆️ Bumps & Version Updates
- Resolve url and chrono RustSec advisories by @MarcusSorealheis in (#3267) - (49a7754)
New Contributors
- @anduril-rvanderzee made their first contribution in #3264
Full Changelog: v1.8.7...v1.9.0