<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aur-build/src/bin/makechrootpkg.rs, branch ai/main</title>
<subtitle>Unnamed repository
</subtitle>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/'/>
<entry>
<title>comments: say why, not what</title>
<updated>2026-11-19T17:09:59+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-19T17:09:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=e757979f1a2afdbe7146066345bb9acd19d3b151'/>
<id>e757979f1a2afdbe7146066345bb9acd19d3b151</id>
<content type='text'>
Every module-level `//!` header is gone, and the comments that remained
either re-explained the line below them or had grown into paragraphs.

Density went from one comment line per 6.7 lines of code to one per 10.
827 insertions against 2194 deletions across 86 files.

What survived: the invariants (I1-I12), the design cross-references into
DESIGN.md, and the notes recording a bug that was found and fixed — those
are the comments that carry weight, because they answer a question the
code cannot answer about itself. What did not: restating a function
signature in prose, and narration of the statement underneath.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Every module-level `//!` header is gone, and the comments that remained
either re-explained the line below them or had grown into paragraphs.

Density went from one comment line per 6.7 lines of code to one per 10.
827 insertions against 2194 deletions across 86 files.

What survived: the invariants (I1-I12), the design cross-references into
DESIGN.md, and the notes recording a bug that was found and fixed — those
are the comments that carry weight, because they answer a question the
code cannot answer about itself. What did not: restating a function
signature in prose, and narration of the statement underneath.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: toolchain shims and the fake-package corpus (§16a)</title>
<updated>2026-11-17T21:30:38+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-17T21:30:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=a6f69962e85ccf0f0cfd86f7c85bf0f9a2c8c09e'/>
<id>a6f69962e85ccf0f0cfd86f7c85bf0f9a2c8c09e</id>
<content type='text'>
The harness that makes the rest of this developable. Six real binaries
named exactly like the tools the pipeline shells out to, sharing one
shim module, driven entirely by environment so no production code path
is test-only:

  AUR_SHIM_DIR       where invocations are recorded (jsonl)
  AUR_SHIM_MANIFEST  the fixture manifest to obey
  AUR_SHIM_FAIL      optional tool forced to fail

makechrootpkg emits real .pkg.tar.zst files with .PKGINFO and
.BUILDINFO (the full chroot world, which is why §10.1 filters it),
makepkg answers --printsrcinfo and --vercheck for Stage B, repo-add
rebuilds a gzip'd .db with %FILENAME%/%VERSION%/%SHA256SUM% DESC
entries, gpg writes a detached signature, mkarchroot creates a warm
root. Each one records its invocation so tests assert on what actually
ran.

testcorpus/ holds 17 fixtures, each a PKGBUILD plus a manifest with the
scripted outcome: plain-make, with-patch, install-hooks, skip-checksum,
split-pkgbase, build-fails, check-fails, missing-dep, dep-cycle,
epoch-bump, pkgrel-reset, downgrade, digest-drift, pin-drift,
git-sourced, git-submodules, unresolvable. The harness commits a fixture
into a real git repo standing in for AUR, materialises a local upstream
git repo for VCS fixtures, and swaps payload bytes for the drift cases.

Config.child_env is what puts the shims on PATH for child processes, so
the pipeline runs completely unmodified under test.

Part of P0 (DESIGN.md §17).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The harness that makes the rest of this developable. Six real binaries
named exactly like the tools the pipeline shells out to, sharing one
shim module, driven entirely by environment so no production code path
is test-only:

  AUR_SHIM_DIR       where invocations are recorded (jsonl)
  AUR_SHIM_MANIFEST  the fixture manifest to obey
  AUR_SHIM_FAIL      optional tool forced to fail

makechrootpkg emits real .pkg.tar.zst files with .PKGINFO and
.BUILDINFO (the full chroot world, which is why §10.1 filters it),
makepkg answers --printsrcinfo and --vercheck for Stage B, repo-add
rebuilds a gzip'd .db with %FILENAME%/%VERSION%/%SHA256SUM% DESC
entries, gpg writes a detached signature, mkarchroot creates a warm
root. Each one records its invocation so tests assert on what actually
ran.

testcorpus/ holds 17 fixtures, each a PKGBUILD plus a manifest with the
scripted outcome: plain-make, with-patch, install-hooks, skip-checksum,
split-pkgbase, build-fails, check-fails, missing-dep, dep-cycle,
epoch-bump, pkgrel-reset, downgrade, digest-drift, pin-drift,
git-sourced, git-submodules, unresolvable. The harness commits a fixture
into a real git repo standing in for AUR, materialises a local upstream
git repo for VCS fixtures, and swaps payload bytes for the drift cases.

Config.child_env is what puts the shims on PATH for child processes, so
the pipeline runs completely unmodified under test.

Part of P0 (DESIGN.md §17).
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: scaffold cargo project, toolchain shim binaries, git baseline</title>
<updated>2026-11-17T20:47:03+00:00</updated>
<author>
<name>aur-build</name>
<email>aur-build@localhost</email>
</author>
<published>2026-11-17T20:47:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.jnsn.dev/cgit/aur-build/commit/?id=3762c7ce9f765283f47e5716b708e04590339375'/>
<id>3762c7ce9f765283f47e5716b708e04590339375</id>
<content type='text'>
Provisions rustup + devtools from the distro package set and lays down the
crate skeleton: library, CLI binary, and one binary per external tool the
pipeline shells out to (mkarchroot, makechrootpkg, makepkg, repo-add, gpg,
pacman) so the §16a PATH shims are real executables that cargo builds and
tests can locate via CARGO_BIN_EXE_*.

Part of P0 (DESIGN.md §17).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Provisions rustup + devtools from the distro package set and lays down the
crate skeleton: library, CLI binary, and one binary per external tool the
pipeline shells out to (mkarchroot, makechrootpkg, makepkg, repo-add, gpg,
pacman) so the §16a PATH shims are real executables that cargo builds and
tests can locate via CARGO_BIN_EXE_*.

Part of P0 (DESIGN.md §17).
</pre>
</div>
</content>
</entry>
</feed>
