Repository navigation
Description
Follow-on to yamanori99/DistSSHRun.jl#362 (Run side done: destination-aware ship APIs landed and are frozen for DistSSHRun 0.2.0).
Problem
qhost: submit still transfers the job tree to the queue host with client-side rsync (stage_job_tree! / rsync_to_qhost! in src/client/stage.jl). Queue already calls pack_ship_tree at enqueue to record enqueue_content_tree_hash; that hash path is not the transfer. The staged file set and integrity therefore still follow rsync / git_send_list, not a verified Run ship to a caller-chosen destination.
Related, but not a substitute:
- #476 aligns the send list only and explicitly deferred Tar-over-SSH transport.
- #574 tracks rsync's own
.gitignoreinterpretation on non-git trees. - PR #530 is merged (snapshot persist on the worker hop, which already uses Run
setup!(:ship_tree)).
Existing draft
PR #543 (feat!: qhost submit stages with verified ship-tree) is a draft started against Run #406. It needs rebasing onto the current frozen Run API: pack_shipment / ship_project_to_dest, record file <dest>/.distssh/shipment.toml, and rev = "main" (it still pins the #406 feature branch and older names such as ship_pack / ship.toml).
Frozen Run 0.2.0 contract (do not change these on Run for Queue wiring)
Call pack_ship_tree, pack_shipment, and/or ship_project_to_dest as documented on Run d56a722 and later 0.2.0:
- Same pack rules as
ship_tree!(.gitignoresend list, path dependencies, declared-input omission). - Caller-chosen
dest(Queue stage root). The destination must be missing or an empty directory. - No
runs/<id>/allocation, no run leaf metadata, no instantiate / runtime setup on this hop. - Snapshot identity is
content_tree_hashplus optionaltransfer_idstored in<dest>/.distssh/shipment.tomlwhenwrite_record=true(default). - A missing Manifest (including versioned
Manifest-v*.tomlviamanifest_path) is a pack-time error. - A gitignored Manifest is force-shipped (
forced_ignore_ship). - A failed or unverified ship must not enqueue (no ticket, no
jobs.tomlrow). Callers must checkShipmentReceipt.ok. A failed host may leave a partial tree. - Additive Run extensions may land in 0.2.x. Do not require a Run signature or record-name change after the 0.2.0 tag.
Acceptance criteria
- Client→qhost staging uses the frozen Run APIs for the actual transfer (rsync is not the authenticity path for this hop; fetch may still use rsync).
- Staged file set matches Run ship rules, including versioned Manifest selection.
- Pack warnings (for example a gitignored Manifest) are surfaced and recorded as on Run ship.
- Transfer or hash failure leaves no enqueued job; success records
content_tree_hash/transfer_idprovenance. - No auto instantiate / runtime setup on the staging hop.
- Existing stage path and cleanup policy unchanged (#478: stages are never auto-deleted).
- Snapshot IDs stay distinct per hop (compatible with merged feat: persist ship snapshot id for instantiate, check, and detached execute #530).
- Cross-repo E2E is green on the release heads (both Julia versions).
- NEWS / migration notes for the file-set change (tracked-but-ignored files that rsync may have staged will follow Run rules).
- Draft feat!: qhost submit stages with verified ship-tree (lockstep Run #406) #543 is rebased onto the frozen API or replaced by a new PR.
Activity
yamanori99 commentedon Nov 22, 2026
Also in scope for the stage transport (still current on
50e50169):qhost:host:PORTpasses the hop (port-awarerun_on_host). Then_ssh_mkdir!and rsync use_ssh_host_args, which does not split the port (src/client/stage.jl:189-201), so they connect to a host namedhost:PORTon port 22.ssh_noninteractive_env().content_tree_hashis computed on the qhost after transfer. With ship, compare the receipt's hash with a client-sidepack_ship_treehash before enqueue..gitignorenames reaches the qhost (git_send_list) but not the workers (ship_send_list).Fetch is tracked separately in #588.