pytracer-runner
Layer 4 infrastructure for pyTracer: the per-commit isolated runner behind
"try on this branch". It checks out an arbitrary branch or commit into a clean
workspace, runs a command there (typically installing dependencies and running
pytracer run), and returns the result, so a captured failing trace can be
replayed against a different branch with the model version and recorded tool
responses held frozen and only the agent code varying (guide section 5).
Each run happens in its own fresh workspace, because two branches may have different dependency versions and must not share an environment.
from pytracer_runner import CrossBranchRunner, GitSourceProvider, DockerExecutor
runner = CrossBranchRunner(GitSourceProvider("/path/to/repo"), DockerExecutor())
result = runner.reproduce(
ref="feature/fix-bug",
collection_path="tests/collection.yaml",
frozen_trace="baseline.jsonl", # the failing trace, held frozen
trace_dest="tests/traces/summarize.jsonl",
)
The source and execution backends are pluggable (SourceProvider,
Executor), so the orchestration is testable with fakes and the real git and
Docker backends are used in production.
Metadata
Release files for pytracer-runner 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytracer_runner-0.1.0.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytracer_runner-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / pytracer_runner-0.1.0.tar.gz
| Download URL | pytracer_runner-0.1.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7584bff86211d050a3473d018cd647e7dfb7d8436c5bbcb138d846a9f89bfba
|
|
BLAKE2b-256 checksum How to use checksums |
0c7630e42431ca2d93deec2bcbe3c03c82da59c843590eaa2d9eee7413baafcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / pytracer_runner-0.1.0-py3-none-any.whl
| Download URL | pytracer_runner-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7af300716231a94d621a79084fd72a0bfb8f3e07a07c0d72ea1216ea3e1fbb2
|
|
BLAKE2b-256 checksum How to use checksums |
ca8fc1fa0a0172f12b64286d954ebfd57a3c8b6066ca8ebeef1dd08db577739a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|