feat: download artifacts matching glob patterns after each batch#126
Draft
feat: download artifacts matching glob patterns after each batch#126
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add try_download_artifacts() to TestRunner which:
1. Runs `find -path` in the sandbox to resolve configured glob patterns
2. Downloads all matched files in a single sandbox.download() call
3. Stores files under {output_dir}/{sandbox_id}/{batch_id}/
This is best-effort — download failures are logged but never fail a batch.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
download_globsconfig field to[report]section — a list of glob patterns for files to download from sandboxes after each batch executionfind -pathin the sandbox to resolve globs (RT1), then downloads all matched files in a singlesandbox.download()call (RT2){output_dir}/{sandbox_id}/{batch_id}/preserving relative directory structureConfig example
Files changed
src/config/schema.rs—download_globs: Vec<String>onReportConfigwith#[serde(default)]src/orchestrator/runner.rs—build_find_command(),try_download_artifacts(), new fields + builderssrc/orchestrator/spawn.rs— wirebatch_idx,download_globs,output_dirinto runnerexamples/tests/test_artifacts.py— pytest tests that produce JSON, log, CSV, XML artifactsoffload-pytest-artifacts.toml— e2e config exercising the featureTest plan
cargo fmt --checkpassescargo clippy --all-targets --all-featurespassescargo nextest runpasses (134 tests including 6 new)./target/release/offload -c offload-pytest-artifacts.toml --verbose rundownloads 4 artifact files per sandbox totest-results-artifacts/{sandbox_id}/{batch_id}/artifact-output/🤖 Generated with Claude Code