scripts/

August 9, 2026 · View on GitHub

This index routes; the owning handbook leaves explain. One row per file, with the purpose taken from the file's own header line and the grouping from the handbook leaf that owns the topic — ownership by topic, navigation by place (the rules). Root of the documentation tree: handbook/.

architecture/glue/conventions/

FilePurpose
format.pyFormat the source directory; driven by the Makefile's format-* targets.
python_helpers.pyShared file helpers for the Python scripts in this directory (imported by format.py).

architecture/r-layer/conventions/

FilePurpose
rethrow.RGenerate R/rethrow-gen.R from R/cpp11.R: wrap each rapi_* binding to rethrow errors with call context; sourced by .Rprofile on repo load.

architecture/rfuns/

FilePurpose
vendor-rfuns.shVendor the rfuns extension: copy sources from a duckdb-rfuns checkout into src/ and commit with the upstream log, one commit per import.

branches/flavors/

FilePurpose
flavor-package-name.RGuard for the flavor rename.
flavor.patch
flavor.shApply a package flavor: rewrite scripts/flavor.patch to the target name (say, duckdb.dev), apply it, and commit the rename; see BRANCHES.md.

build/configuration/

FilePurpose
setup-makeflags.RSetup MAKEFLAGS for parallel compilation.

build/fast-paths/

FilePurpose
install-duckdb-cli.shDownload the standalone DuckDB CLI matching the vendored DuckDB sources under src/duckdb/.
install-libduckdb.shInstall the libduckdb prebuilt binary matching the vendored DuckDB sources under src/duckdb/.

build/warnings/

FilePurpose
warnings.shThe compiler-warning gate: what each scope is held to, and the check itself.

meta/handbook/

FilePurpose
README.md(this index)

operations/ci/per-commit/legs/

FilePurpose
each-shard.shBuild one shard of an each-rcc plan: many commits, one job, one workspace.
rcc-one.shRun the per-commit rcc gate against the working tree, once.

operations/ci/per-commit/planning/

FilePurpose
each-cost.pyEstimate how many unity objects a change invalidates.
each-partition.pyPartition a commit range into contiguous, cost-balanced each-rcc shards.
each-plan.shPlan the sharded per-commit rcc build for the checked-out branch.

operations/ci/per-commit/selection/

FilePurpose
rcc-decided.shPrint the SHA of every commit the verdict store has decided, one per line.

operations/ci/per-commit/store/

FilePurpose
rcc-consolidate.shConsolidate the orphan rcc2 branch: drop everything past the retention window, and squash the whole history to two commits.
rcc-cutover.shOne-shot: build the rcc2 verdict store from what the old rcc branch holds.
rcc-lib.shShared helpers for the verdict store on the orphan rcc2 branch.
rcc-logs.shCollect rcc results and failure logs for commits the verdict store has no record for, and stage them for publication to the orphan rcc2 branch.
rcc-publish.shPublish a staging directory to the verdict store on the orphan rcc2 branch.
rcc-run-fields.jqThe subset of a GitHub workflow-run object that a record on the rcc2 branch carries, applied to gh api repos/{owner}/{repo}/actions/runs/<id>.
rcc-store-test.shCheck the invariants the verdict store rests on, offline, against a local bare repository -- optionally seeded from the real rcc branch.

operations/vendoring/pipeline/

FilePurpose
VENDORING.mdDuckDB R Package Vendoring
merge-version.shGit merge driver for DESCRIPTION.
rconfigure.pyRegenerate the vendored build configuration from a DuckDB checkout: src/duckdb/, src/include/sources.mk, R/version.R, the Makevars files and the logos.
setup-git.shRegister repository-local git configuration that cannot live in versioned files.
vendor-one.shVendors DuckDB sources commit-by-commit from the upstream repository.
vendor.shVendors DuckDB sources from the upstream repository (manual vendoring).

operations/vendoring/series-loop/

FilePurpose
r-universe-check.shRead-only: what did r-universe make of the refs this repository publishes?
series-advance-test.shCheck stage 5's carry of the base series' test-side fixes, offline, against a synthetic remote and clone built here -- no network, no fixtures on disk.
series-advance.shThe ref motion of the series loop, stages 3 and 5, for one series: fast-forward <S>-green over the all-green prefix, set <S>-build-base to the equivalent...
series-check.shRead-only diagnosis for the series loop: what should a firing do?
series-cutover.shAtomically replace a series with its forward counterpart.
series-forward-build.shPopulate <S>-fwd-build: replay every vendor commit of the old <S>-build onto HEAD, which must be the freshly flavored seed on current main (.claude/ski...
series-glue.shEvery R-side glue adaptation a series carries, in one read.
series-port.shBring a series' -dev branch level with main — stage 4 of the series loop (.claude/skills/series-loop.md).

testing/snapshots/

FilePurpose
snapshot-accept.shRebuild a commit, run the suite, accept the named snapshots, re-run to confirm they hold.