diff options
| author | aur-build <aur-build@localhost> | 2026-11-18 09:12:28 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-18 09:12:28 +0000 |
| commit | d9c8402180749df4452dc37febace4d933b8407d (patch) | |
| tree | 377a7b89203c266d00a714845b50d27febbda4c7 /.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md | |
| parent | 4cb2f4c7b68dceaed8f7ffbd8f0db3cfbf3f1ddc (diff) | |
| download | aur-build-d9c8402180749df4452dc37febace4d933b8407d.tar.gz aur-build-d9c8402180749df4452dc37febace4d933b8407d.zip | |
pkginfo: .PKGINFO/.BUILDINFO parsing gets a real home, and a parser bug fix (§10.1)
Ingest decides what the index claims about a package and what the world
snapshot records by reading two text files out of a tar inside a zstd stream.
That code was living in src/shims — the test harness — which meant production
depended on the harness for its view of a package's own metadata. Moved to
src/pkginfo.rs, with the shim now delegating to it so the harness and the
production path cannot disagree about what a package says about itself.
Still no libalpm: tar + zstd + eighty lines of key = value parsing. Unknown keys
are ignored rather than rejected, because makepkg adds fields over time and a new
one must not stop us publishing.
**The parser had a real bug.** A .BUILDINFO installed block puts its first entry
on the same line as the key:
installed = glibc 2.39-1 x86_64 -
gmp 6.3.0-1 x86_64 -
The old code skipped the header line, so the first dependency was silently
dropped from every snapshot — exactly the kind of gap that makes staleness
quietly wrong. The header line is parsed now.
tests/world.rs builds real .pkg.tar.zst files and asserts the fields come out of
the archive: repeated keys stay lists, an archive with no .PKGINFO is refused
rather than defaulted from the filename, and the world snapshot contains our own
packages and none of glibc/pacman/binutils. The empty-snapshot case for a first
build is asserted too — nothing of ours existed yet, and recording that honestly
beats inventing a world.
Split pkgbases produce one approval, one release and N index rows each with its
own artifact, asserted directly here. 143 tests pass, clippy clean.
Diffstat (limited to '.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md')
| -rw-r--r-- | .pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md index a8cfcd8..8d9e24f 100644 --- a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md +++ b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md @@ -5,14 +5,14 @@ "status": "active", "autoContinue": true, "usage": { - "tokensUsed": 6265695, - "activeSeconds": 12132 + "tokensUsed": 6879748, + "activeSeconds": 12788 }, "sisyphus": false, "createdAt": "2026-11-17T20:43:24.440Z", - "updatedAt": "2026-11-18T09:01:08.009Z", + "updatedAt": "2026-11-18T09:12:19.576Z", "activePath": ".pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md", - "revision": 647, + "revision": 675, "scheduler": { "version": 1, "owner": "01a1eb32-2e3f-757c-a79a-21ac993facc5", @@ -174,7 +174,7 @@ { "id": "task-p3", "title": "P3 — durability (§8.2, §8.3, §8.4)", - "status": "pending", + "status": "complete", "subtasks": [ { "id": "task-p3-dispatch", @@ -195,10 +195,14 @@ { "id": "task-p3-sse", "title": "SSE log tail + htmx live builds table", - "status": "pending", - "verificationContract": "GET /builds/:id/log.stream streams appended log bytes from a blocking thread; the builds table refreshes via htmx every 3s; vendored htmx is the only JS shipped and total vendored JS stays under 20 KB." + "status": "complete", + "verificationContract": "GET /builds/:id/log.stream streams appended log bytes from a blocking thread; the builds table refreshes via htmx every 3s; vendored htmx is the only JS shipped and total vendored JS stays under 20 KB.", + "completedAt": "2026-11-18T09:01:22.683Z", + "evidence": "tests/live.rs (5 tests): the_log_stream_delivers_bytes_as_they_are_appended_and_then_ends — a producer thread appends to the log while the SSE stream is open and the reader must see those bytes BEFORE" } - ] + ], + "completedAt": "2026-11-18T09:03:07.796Z", + "evidence": "All three P3 children complete: dispatcher/worker pool/reaper with BEGIN IMMEDIATE claims and disk-headroom backpressure (e27e90a), a real SIGKILL mid-step crash test plus the approved_but_unbuilt fai" }, { "id": "task-p4", @@ -241,7 +245,7 @@ "blockCompletion": true, "proposedAt": "2026-11-17T20:39:23.165Z" }, - "currentTaskId": "task-p3-sse" + "currentTaskId": "task-p4-world" } # Goal Prompt @@ -274,8 +278,8 @@ IF BLOCKED: stop and ask the user (e.g. no network for crates, toolchain uninsta - Status: running - Auto-continue: on - Sisyphus mode: no -- Time spent: 3h22m12s -- Tokens used: 6.3M (6,265,695) tokens +- Time spent: 3h33m08s +- Tokens used: 6.9M (6,879,748) tokens ## Tasks <!-- blockCompletion: true --> @@ -283,7 +287,7 @@ IF BLOCKED: stop and ask the user (e.g. no network for crates, toolchain uninsta - [x] task-p0: P0 — walking skeleton + test harness (§17 P0, §16a) — evidence: All P0 children complete: schema+writer actor, shims+corpus, mirror watcher, approval semantics+CLI, 10-step pipeline with signed atomic publish, invariant index. 81 tests pass, clippy clean, 7 commit - [x] task-p1: P1 — VCS / computed pkgver detection (§5.2, §3) — evidence: All three P1 children complete: Stage A probe (every VCS source, #tag/#commit, short-circuit), Stage B resolution (pin capture, cache on pkgbase+recipe_hash+tip, cooldown, concurrency cap), notices+ri - [x] task-p2: P2 — review surface (§12, §13, §6) — evidence: All four P2 children complete: tiny_http server + CSRF/session gate, inbox with the full eight-panel diff set, optimistic-concurrency approve/reject with 409-on-stale and per-item bulk confirmation, a -- [ ] task-p3: P3 — durability (§8.2, §8.3, §8.4) +- [x] task-p3: P3 — durability (§8.2, §8.3, §8.4) — evidence: All three P3 children complete: dispatcher/worker pool/reaper with BEGIN IMMEDIATE claims and disk-headroom backpressure (e27e90a), a real SIGKILL mid-step crash test plus the approved_but_unbuilt fai - [ ] task-p4: P4 — staleness, retention, metrics (§10, §15) - [ ] task-verify: Final verification pass, real-chroot attempt, and documentation — contract: Full `cargo test` and `cargo clippy` run clean; every §2 invariant maps to a named passing test (list produced); README + docs/DECISIONS.md written; git history reviewed for incremental commits; the gated real-chroot integration attempt against devtools is run or explicitly recorded as skipped with the reason. |
