Job environment
Look up the tools, filesystem, Git behavior and network access available to a job.
Managed jobs run in an Ubuntu 24.04 Linux x86_64 guest as an unprivileged user. Each job has its own VM, captured source, writable scratch space and selected Rust toolchain. The client runs on macOS or Linux; the remote execution environment remains Linux.
Dependencies and network
A job cannot reach public package registries or arbitrary internet services. Sorus generates Cargo configuration for a per-attempt dependency gateway, which supplies crates.io inputs and locked public HTTPS Git dependencies. Crate files are checked against their recorded checksums. Repository Cargo configuration keeps its normal precedence.
Use --locked with the committed dependency resolution. --offline prevents fetching missing dependencies even through the gateway. Workspaces with no external dependencies can run offline.
Tests can communicate over guest-local TCP, UDP and Unix sockets and bind unprivileged ports from 1024 upward. Declared PostgreSQL and Redis services are not yet offered to customer jobs. Guest-local networking does not provide access to a database outside the VM.
Installed programs and libraries
| Tool or runtime | Version or behavior |
|---|---|
| Rust | See toolchains. |
| cargo-nextest | 0.9.146; repository configuration applies. |
| Python | 3.12.3 |
| Go | 1.22.2 |
| Node.js | 24.19.0 |
| Bun | 1.3.14 |
| pnpm | 11.22.0 |
| cargo-deny | 0.20.2 |
| cargo-hack | 0.6.45 |
| wasm-pack | 0.15.0 |
Jujutsu (jj) |
0.40.0 |
| Lean and Lake | 4.34.1, requires guest release 2026.10.21.1 |
| LLVM | Versioned LLVM 22.1.8 tools; the default Clang remains 18. |
The image also includes C/C++ build tools, CMake, pkg-config, Git, curl, protoc and its well-known Protobuf types. System development libraries include OpenSSL, SQLite, PostgreSQL, libudev, libdw, libusb, hidapi, SASL, ALSA, X11/xcb, GLib, Wayland, xkbcommon, VA-API, fontconfig and FreeType.
Installed system libraries can affect crates that choose between a system and vendored dependency. For example, pcre2-sys can link the installed PCRE2 library; set its supported vendoring option or PCRE2_SYS_STATIC=1 if your build requires a static copy. Match the library and feature choices when comparing artifacts with another environment.
An installed program still needs all its inputs. cargo-deny advisories needs a RustSec database that the image does not supply. wasm-pack may need matching wasm-bindgen or wasm-opt binaries that it cannot download during a job.
Lean limits
Guest release 2026.10.21.1 provides lean, lake, leanc, leanchecker and leanmake at version 4.34.1. Check provenance.units[].image.release in the job record before relying on those tools. It does not include elan, and a repository’s lean-toolchain file does not select another version. Check the version explicitly when that pin matters.
Lake cannot fetch network dependencies or Mathlib caches. Supply the inputs the command needs in the captured source. Native suites that need a systemd user manager, writable cgroups or additional sandbox tools require a different environment.
Filesystem and runtime directories
/tmp is writable scratch storage, fresh for each attempt. TMPDIR points there unless the job declares another value. Its files share scratch capacity with the source, home directories and other temporary build data.
XDG_RUNTIME_DIR names a private directory with mode 0700. It supports Unix sockets and is empty at job start. Its tmpfs storage, like /dev/shm, counts toward the job’s memory limit. Runtime and temporary directories are not durable storage.
Jobs have no root capabilities. Common local socket operations, shared memory, memfd_create and io_uring are available. Raw sockets, ICMP, user namespaces, userfaultfd, fanotify and BPF are unavailable.
Git work tree
Source capture excludes your local .git directory. When the uploaded files exactly match their submitted commit, Sorus constructs a shallow Git work tree at that commit. Commands such as git rev-parse, git status, git log -1, git show and git diff can then inspect it.
The work tree has no remote, tags or earlier history. Dirty or untracked source, missing filters such as Git LFS, or a failed reconstruction can leave the job without a Git work tree. The job reports lathe: no git work tree: <why> and continues with the captured files. A build that requires Git metadata should check that requirement explicitly.
Test services
The implemented test-service catalogue contains PostgreSQL 18.6 and Redis 7.0.15, but customer admission still refuses every service declaration. They are not yet available for customer jobs. See Declare test services for configuration examples and the test services reference for the schema, runtime behavior and availability restriction.
Environment variables
The guest does not inherit the submitting machine’s environment. Use --env NAME=VALUE for accepted job settings, for example:
cargo sorus test --locked --env RUST_BACKTRACE=1
Caller credentials authenticate the client; they are not build inputs. Keep SORUS_TOKEN out of declared job variables. Use the CLI reference for submission settings and the security explanation for the relevant boundaries.