Prepare source and resume an upload

Check which files a job will upload and resume an interrupted submission.

Captured files

From the repository root, inspect the selected files:

git status --short
git ls-files --cached --others --exclude-standard

The capture includes tracked files and non-ignored untracked files, including uncommitted changes. Ignored untracked files are omitted; ignore rules do not remove tracked files from capture. Keep credentials outside this selection, and make sure required generated inputs are available through the captured source or the supported environment.

Relative symlinks must resolve within the captured tree. Absolute or escaping links are refused. Submodule contents of the submitted repository are not included as ordinary source.

Use sorus.toml at the repository root. The job uses the configuration captured with the source. For an older checkout, follow configuration-file compatibility and keep only one root configuration file.

Upload limits

Limit Value
Regular-file content 1 GiB
File and link entries 250,000
Metadata 32 MiB
Transfer chunk 4 MiB

Scratch and execution capacity are separate from these upload limits. The client checks the server’s source-transfer capability before uploading and refuses an incompatible service.

If the service temporarily limits source transfer, the client retries the same request with the same upload and submission key. It waits up to five minutes in total before returning exit 4; you can then resume with that key.

Resume a submission

Keep the original submission key and the client’s local recovery record.

  1. Find the submission key printed by the interrupted command.
  2. Return to the original invocation directory with the same endpoint and account.
  3. Repeat the original command and arguments, adding --submission-key <key>.

For an interrupted workspace test:

cargo sorus test --workspace --locked --submission-key <key>

Replace <key> with the original key. The client resumes the original capture, so later working-tree edits are not included. Changing the endpoint, account, invocation directory or command options causes a conflict. Submit changed inputs as a new job instead.

Recovery records and expiry

Recovery records live under $XDG_STATE_HOME/lathe/submissions, or $HOME/.local/state/lathe/submissions when the variable is unset. The directory retains the earlier product name. Records contain no credentials.

The client removes its local source copy after the job acknowledgement is durably recorded and retains the request and job receipt for recovery. If an upload expires before admission, it preserves the original archive and reports the refusal; it does not silently capture changed source or create another job.

If admission may already have succeeded, inspect the job before starting a new submission.