mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-01 02:04:24 +00:00
The CLI's integration tests seeded runs by appending legacy run events and waited on legacy event names. Now every seeded run is a real dry run: the fixtures start the run through the CLI, read the run id from its output and wait for the stream's terminal lifecycle record. Waits, assertions and snapshots read `RunStreamItem`s (`run.finished`, the platform `run.lifecycle` record, `derived.parsed.kind == "question"`). Test changes: - support.rs: `run_completed_dry_run`, `wait_for_run_finished`, `wait_for_lifecycle`, `wait_for_stream_item`; the `append_seeded_*` writers, `wait_for_event_names` and the git-backed seeded fixtures are gone (the checkpoint patch is not in the projection yet). - diff.rs keeps only the help test; inspect.rs drops the git-backed checkpoint test; events.rs, dump.rs, create.rs, attach.rs and dry_run_examples.rs snapshots are re-recorded over Petri's rendering with redactions for epoch millis, digests and commit shas. - run.rs: the remote foreground mock serves stream pages and a run state with a conclusion and a `report` stage response; the event history test checks `run.finished` and the terminal lifecycle item. - runner.rs / attach.rs: question ids containing `#` are percent-encoded in answer URLs. Production fixes the ports surfaced: - petri_worker.rs: a cancelled run exits without reporting a failure. - runner.rs: resuming a run that already finished fails its precondition instead of starting a worker. Left failing on purpose, each bound to a Petri-side gap reported to the lead rather than to the port: sandbox_cp (4), sandbox_preview and sandbox_ssh (the projection carries no sandbox instance), the artifact collection tests in workflow::artifacts and run.rs (no artifact collection for Petri runs yet), and the two dump blob-ref tests (blob refs are not visible in the inspect output). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| agent_linear.rs | ||
| artifacts.rs | ||
| command_agent_mixed.rs | ||
| command_pipeline.rs | ||
| command_routing.rs | ||
| conditional_branching.rs | ||
| dry_run_examples.rs | ||
| full_stack.rs | ||
| hooks.rs | ||
| human_gate.rs | ||
| mod.rs | ||
| plugin.rs | ||