test(e2e): cross-process harness over the §12 seams #66
Merged
naps62-yolo
merged 3 commits from 2026-08-22 21:26:16 +01:00
issue/44-e2e-harness into main
Labels
Clear labels
area/api
area/ci
area/compat
area/core
area/daemon
area/db
area/dl
area/indexer
area/infra
area/meta
area/parse
area/probe
area/subs
area/web
difficulty/easy
difficulty/hard
difficulty/moderate
difficulty/trivial
phase/1-skeleton
phase/2-logic
phase/3-sourcing
phase/4-movies
phase/5-ui
phase/6-tv
phase/7-people
phase/8-compat
phase/9-subtitles
type/bug
type/chore
type/feature
type/test
arr-api
CI and test harness
arr-compat
arr-core
arr-daemon
arr-db
arr-dl
arr-indexer
workspace and tooling
arr-meta
arr-parse
arr-probe
arr-subs crate: providers, extraction, translation, sync
web/
bounded, obvious approach, few files
subtle correctness or cross-cutting
multiple files, judgement, an interface to design
one file, mechanical, no design decisions
workspace, CI, config, database, empty API and SPA
parsing and policy engine, pure, no network
TMDB and Prowlarr, read-only
movies end to end
search, buckets, library views, queues
seasons, episodes, tracking, derived status
owner tags and notifications
Jellyseerr shim
build order: subtitles, DESIGN.md §15
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: yolo/arr#66
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #44.
Adds the e2e harness: the real
arrbinary spawned as a child process,wiremockfakes for Prowlarr and TMDB serving recorded fixtures, and a real Transmission container (CI service,just e2e-uplocally). Never a live tracker.arr-e2ebecomes a harness library (FakeProwlarr,FakeTmdb,Daemon) plus three cross-process tests: daemon boot with all upstreams healthy and the movie API over the wire, fixture round-trips through the realarr-indexer/arr-metaclients, and the Transmission torrent lifecycle.ARR_TMDB_URLseam so the daemon can be pointed at the fake; rejected in the config file, matching the secrets rule.arr-meta/arr-apichanges too.The issue's acceptance run (add-to-imported) needs the reconcile loop (#21), grab pipeline (#22) and import pipeline (#23); it lands on this harness once those exist. Warm e2e run is ~1 s locally, well under the two-minute budget.
🤖 Generated with Claude Code
@@ -66,0 +290,4 @@// The test binary runs from target/<profile>/deps/; the daemon lands// one directory up, whatever the target directory and profile are.let mut path = std::env::current_exe().expect("current test binary path");Cargo nextest runs the test from target/nextest//debug/deps, but cargo build -p arr-daemon writes arr to target//arr. This lookup therefore panics before the daemon test starts; resolve Cargo's target directory instead of deriving it from the staged test executable.
Fixed in
cee6677by taking cargo's own answer: the build now runs with--message-format json-render-diagnosticsand the harness uses thecompiler-artifactmessage'sexecutablepath, so no target-layout assumptions remain.For the record, the original lookup did work — nextest executes test binaries in place from
target/<profile>/deps(target/nextest/<profile>only holds run metadata), and the suite passed 3/3 undercargo nextest run -p arr-e2ebefore this change. But resolving the path from cargo is sturdier either way.Reviewed
cee6677121. No findings.