Repository navigation
Conversation
…ensions The record measures, at 3b7bea3, that an edit to `src/vendor/extensions/http.c` leaves `ext-http.o` as it was, with `R CMD INSTALL` and with `pkgbuild::compile_dll()`. Listing the vendored file in `src/ext-http.dd` makes the build recompile it, and the next regeneration of that file drops it again. With GCC, the filter in `src/Makevars.deps` also lets absolute and vendored paths through, because GCC indents continuation lines by one space where the filter expects two. `experiments/README.md` is the registry, following the convention of cynkra/handbook-tools. `.Rbuildignore` leaves the directory out of the package, which `R CMD build` confirms. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
|
CI note: the smoke test failed before any R code ran, because the runners could not resolve the Ubuntu package mirrors while installing Generated by Claude Code |
|
Review of this pull request at 66591de, by a Claude Code reviewer with clean context that read the description, #836, the experiments convention page and stub in cynkra/handbook-tools, all five changed files ( What was run
What holds
HighNone. Medium1. A failed build leaves no trace of why. By reading: Low1. The driver's requirements are unstated. By reading: 2. The committed output is not reproducible from a truly fresh checkout. Confirmed: 3. The README understates the side effects on a developer's checkout. Confirmed: 4. The record is stamped "at commit 3b7bea3", but run from this branch the script prints "commit 66591de". Confirmed: 5. #836 links the record by the branch URL, Generated by Claude Code |
The driver wrote each build's output only to a log in a temporary directory, and the exit trap deleted that directory before anyone could read it. A failed build now prints the step and the last 30 lines of its log to stderr before the driver restores its files and exits. The README now says what the driver needs and that it is Linux only as written. It also says that the driver overwrites an in-place build of `src/`, that the record was measured at 3b7bea3 and a run from this branch prints a later commit, and that step 1 may not list `cpp11.dd` in a fresh checkout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
|
Review of the fixes at a483418 (the commit after 66591de), by a Claude Code reviewer with clean context that read the first review, the diff What holds
HighNone. Medium1. The failure report can still miss the compiler error when the failing step is the pkgbuild build (steps 6 and 7). Confirmed: echo "Step $step failed: $*" >&2
grep -E -A3 ': (fatal )?error|make: \*\*\*|^ERROR' "$work/$step.log" | head -n 30 >&2 || true
echo "--- last 30 lines of the log:" >&2
tail -n 30 "$work/$step.log" >&2With this, the same step 6 failure printed Low1. The README says the driver "prints the step and the tail of its log", which stops being accurate with the Medium's fix. By reading: 2. The README sentence on the commit stamp is slightly off. By reading: Generated by Claude Code |
When the pkgbuild build of step 6 or 7 fails, the last 30 lines of its log are R's backtrace, and the compiler error is just above them, in a log that is deleted on exit. The failure handler of `run.sh` now prints the log lines that report an error before the tail, separated from it by a line of its own. The README and the header comment of `run.sh` say so. The README also says that running the driver from a later commit on this branch prints that commit, with the same findings, since those commits change nothing under `src/`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
|
Review of the fixes at c26fdef (the diff What holds
HighNone. MediumNone. Low1. The README explains why the line 2. In step 1 the "last 30 lines" block still shows mostly noise. Confirmed: Generated by Claude Code |
The line depends on whether the untracked `src/.Rconfig` exists and matches `R CMD config --all`. `--preclean` rebuilds every object either way, so the findings are unaffected. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3gjmufoKCWVDBPCgE
Accepted limitationsThe first clean review found one Medium and five Low issues, the second one Medium and two Low ones about those fixes, and the third nothing above Low. All are fixed up to 444b6b7, except the one below; the link in #836 now points at the record as of that commit. This remains:
Generated by Claude Code |
|
Fix in an idiomatic way. Either a minimal change in the generation of the |
The reproducer for #836, as an experiment record: an incremental build is not something a reprex can host. It follows the experiment convention of cynkra/handbook-tools:
experiments/README.mdis the registry and names every record, and each record is a directory named for its date and topic, whoseREADME.mdsays what it measures, when and on what, and what it supports, followed by the method, the findings and how to replicate them, with the driver and its output beside it. RSQLite has no handbook, so a record supports an issue instead of a handbook page. Nothing underexperiments/runs on its own or gates a merge, and.Rbuildignoreleaves the directory out of the package;R CMD buildgives a tarball without it.The record,
experiments/2026-11-11-incremental-build-vendor/, measures at 3b7bea3 that an edit tosrc/vendor/extensions/http.cleavessrc/ext-http.oas it was, withR CMD INSTALLand withpkgbuild::compile_dll(), whichdevtools::load_all()calls. Listing the vendored file insrc/ext-http.ddby hand makes the next build recompile it, but the next regeneration ofsrc/ext-http.dddrops it again. It also finds that the filter insrc/Makevars.depsexpects the two-space indentation of clang's dependency output, while GCC indents by one space, so with GCC a regenerated.ddfile keeps absolute and vendored paths, andpkgbuild::compile_dll()rewritessrc/cpp11.ddto 721 lines, leaving the working tree dirty. That second finding matters for the "regenerate" step of #836.Three clean reviews (first, second, third) confirmed the findings by running the driver; their fixes make a failed build print its error lines before the driver restores the files, and the README now says what the driver needs, what it leaves in
src/, and which step-1 lines depend on the state of the checkout. What remains is under Accepted limitations.Generated by Claude Code