Report structured repository revision snapshots - #15334
Draft
szgupta wants to merge 2 commits into
Draft
Conversation
Co-Authored-By: Warp <agent@warp.dev>
Member
Author
|
This PR was generated with Warp. Comment |
Co-Authored-By: Warp <agent@warp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Non-blocking design
Each repository writes to a unique
.warp/repository-revisions/<snapshot_uuid>/<index>.headpath through a temporary file plus atomic rename. Capture commands end in a best-effort fallback, so revision lookup or file-write failures cannot alter clone success. Snapshot parsing omits missing/invalid SHA-1 or SHA-256 IDs and cleans up result directories best effort. HTTP serialization, timeout handling, and retries happen only afterBackground::spawn(...).detach(); no network future is awaited by environment preparation.Wire payload
POST /api/v1/agent/runs/{run_id}/repository-revisionsTop level:
snapshot_uuid,captured_at,unresolved_repository_count,repositories.Repository:
code_forge,owner,repo,checkout_path, optionalcheckout_ref,head_sha.Validation
Passed:
cargo fmt --all --manifest-path /workspace/warp/Cargo.toml -- --checkgit -C /workspace/warp --no-pager diff --checkcargo metadata --manifest-path /workspace/warp/Cargo.toml --no-deps --format-version 1Sandbox memory limitation (all reached the monolithic
warpcrate, emitted no Rust diagnostic, and were killed by SIGKILL):cargo check --manifest-path /workspace/warp/Cargo.toml -p warp --libCARGO_BUILD_JOBS=1 cargo test --manifest-path /workspace/warp/Cargo.toml -p warp --lib git_object_id_validation_accepts_sha1_and_sha256_only --no-runCARGO_BUILD_JOBS=1 cargo check --manifest-path /workspace/warp/Cargo.toml -p warp --lib --no-default-featuresCARGO_BUILD_JOBS=1 CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_DEV_INCREMENTAL=false cargo check --manifest-path /workspace/warp/Cargo.toml -p warp --libPlans:
Co-Authored-By: Warp agent@warp.dev