Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
148e284
chore: point ci3 at the steps spike (aztec-labs-eng/ci3 cl/step-targets)
charlielye Nov 25, 2026
a71d8c4
feat(build): first make targets as ci3 steps, with a build plan (spike)
charlielye Nov 25, 2026
6d34a75
chore: ci3 steps spike: compact plan
charlielye Nov 25, 2026
ad2e131
feat(build): avm-transpiler installs its outputs into $STEP_OUT
charlielye Nov 25, 2026
cca405a
chore: ci3 steps spike: STEP_OUT
charlielye Nov 25, 2026
ef46ccf
feat(build): test targets are ci3 steps (step_tests); ci3: early cuto…
charlielye Nov 25, 2026
30cad4a
chore: bump ci3 to the steps spike with step_tests and early cutoff
charlielye Nov 25, 2026
58a1567
feat(build): noir-projects/fnd targets are ci3 steps
charlielye Nov 25, 2026
2d8dccb
feat(build): l1-contracts, docs and the small leftovers as ci3 steps
charlielye Nov 25, 2026
33a9e01
feat(build): barretenberg's non-C++ projects and their tests are ci3 …
charlielye Nov 25, 2026
c455406
chore: pin ci3 to the steps spike with early cutoff and step_tests
charlielye Nov 25, 2026
833d88b
feat(build): noir, ipc-codegen, ipc-runtime, constants-codegen and th…
charlielye Nov 25, 2026
9d806a3
Merge branch 'cl/steps-base-libs' into cl/step-targets
charlielye Nov 26, 2026
4d3a13f
Merge branch 'cl/steps-bb-rest' into cl/step-targets
charlielye Nov 26, 2026
d082c51
Merge branch 'cl/steps-noir-projects' into cl/step-targets
charlielye Nov 26, 2026
dc17006
Merge branch 'cl/steps-l1-docs' into cl/step-targets
charlielye Nov 26, 2026
dbf1590
chore: pin ci3 to the steps spike with path-list stamps
charlielye Nov 26, 2026
bc4a8ff
chore: pin ci3 to the steps spike with step_benches
charlielye Nov 26, 2026
beb0917
feat(build): benches and the labs identity come from ci3 steps; drop …
charlielye Nov 26, 2026
bcfbd91
feat(build): barretenberg C++ targets are ci3 steps
charlielye Nov 26, 2026
fd35613
Merge branch 'cl/steps-bb-cpp' into cl/step-targets
charlielye Nov 26, 2026
02862ab
feat(build): the last chained hashes go; benches for bb; release-stam…
charlielye Nov 26, 2026
5812571
chore: pin ci3 to the steps spike with the tracked-outputs guard
charlielye Nov 26, 2026
2b57239
fix(build): ipc-codegen's outputs name what the TS examples generate,…
charlielye Nov 26, 2026
0a09e21
Merge remote-tracking branch 'origin/next' into cl/step-targets
charlielye Nov 26, 2026
60cd408
fix(build): ipc-codegen's TS package example no longer writes build/;…
charlielye Nov 26, 2026
023a264
fix(acir_tests): refresh the lockfile for ipc-runtime's removed bin e…
charlielye Nov 26, 2026
98d434c
fix: restore the labs gitlink, which a local patched commit had replaced
charlielye Nov 26, 2026
8330529
test(labs-patches): test_cmds are keyed by $STEP_KEY
charlielye Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .claude/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
"$(git rev-parse --show-toplevel)/bootstrap.sh" init || exit 1
source $(git rev-parse --show-toplevel)/ci3/source_bootstrap

# Hash everything agents_symlink_test inspects, not just .claude/: the .codex mirrors and the root
# AGENTS.md/CLAUDE.md symlinks live outside .claude/, so a change there must still rerun the test.
hash=$(cache_content_hash "^.*.claude" "^.*.codex" "^AGENTS.md" "^CLAUDE.md")

# Keyed by the claude-tests make step ($STEP_KEY), whose inputs are everything agents_symlink_test inspects, not
# just .claude/: the .codex mirrors and the root AGENTS.md/CLAUDE.md symlinks live outside .claude/.
function test_cmds {
# source_base cd's us into .claude/, so glob relative-to-here, but emit paths
# relative to the git root (same convention used by ci3/bootstrap.sh).
for f in tests/*; do
[[ -x "$f" ]] || continue
echo "$hash ./.claude/$f"
echo "${STEP_KEY:-disabled-cache} ./.claude/$f"
done
}

Expand Down
13 changes: 10 additions & 3 deletions .claude/skills/adding-benchmarks/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,22 @@ with open("bench-out/my-component.bench.json", "w") as f:

### Step 2: Register in bootstrap.sh

Add to the package's `bench_cmds` function:
Add to the package's `bench_cmds` function. The key comes from the package's `<target>-benches` make target (ci3
`step_benches`, listed in `BENCH_CMDS` in the root Makefile), whose `INPUTS` and prerequisites must cover what the
benchmark reads:

```bash
function bench_cmds {
local hash=$(hash)
echo "$hash BENCH_OUTPUT=bench-out/my_component.bench.json yarn-project/scripts/run_test.sh <package>/src/my_bench.test.ts"
echo "${STEP_KEY:-disabled-cache} BENCH_OUTPUT=bench-out/my_component.bench.json yarn-project/scripts/run_test.sh <package>/src/my_bench.test.ts"
}
```

```make
my-component-benches: private INPUTS := ^my-component/
my-component-benches: my-component
$(call step_benches,$@,my-component)
```

**Options:** `:ISOLATE=1`, `:CPUS=8`, `:MEM=16g`, `:TIMEOUT=7200`

**CPUS Suggestion:** For long running or compute-heavy benchmarks allocate CPUs (`:CPUS=N`). Benchmarks have strict scheduling, so if you request X CPUs, you'll have them available for consistent results.
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ __pycache__
# Local opt-in: install nargo from the matching official noir release instead of building from source.
noir-from-release.flag
npm-release

# Outputs of ci3 steps ($STEP_OUT): see ci3/step.
ci3-out/
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ State lives in `.git/modules/labs/labs-patches.state` (stamp of base + series, a
<labs_build_tooling>
How the labs submodule is built and tested against this tree (all foundation-owned):

- `make labs-deps` builds what labs consumes from here (`bb-ts`, which builds the generated `barretenberg/ts` packages too, `wsdb`, `ipc-runtime`, `l1-contracts`, `constants-codegen`, `noir-projects-fnd`, `fnd-artifacts-stage`). `make labs-use-local` then runs `labs/labs-aztec-toolchain/bootstrap.sh use-local` (manifests → `portal:` to this tree), `scripts/labs_fnd_hashes.sh`, a lockfile refresh in `yarn-project`, and `labs-patches/bootstrap.sh commit-use-local` (the marker commit). Never run that sequence by hand or commit its output; it is redone by every build.
- `make labs-deps` builds what labs consumes from here (`bb-ts`, which builds the generated `barretenberg/ts` packages too, `wsdb`, `ipc-runtime`, `l1-contracts`, `constants-codegen`, `noir-projects-fnd`, `fnd-artifacts-stage`). `make labs-use-local` then runs `labs-patches/bootstrap.sh use-local`: `labs/labs-aztec-toolchain/bootstrap.sh use-local` (manifests → `portal:` to this tree), `scripts/labs_fnd_hashes.sh`, a lockfile refresh in `yarn-project`, and the marker commit. Never run that sequence by hand or commit its output; it is redone by every build.
- `make labs-fast` (= `fast-labs`): labs compiled against the portals with its unit/e2e tests, plus `aztec-nr`, `noir-contracts` and the contract snapshots against this tree's `nargo`/`bb` — what a foundation change can break. `make labs-full` adds `docs`, `spartan`, `playground`, the claude tooling tests and the benches; `make labs-yarn-project` builds only yarn-project; `make bench-labs` runs the labs benches on demand (they are not in the default `bench_cmds`).
- Every labs `make` from here goes through `LABS_MAKE` = `scripts/labs_env.sh $(MAKE)`; run `scripts/labs_env.sh <cmd>` for any ad-hoc command inside `labs/`. It clears the inherited ci3 `root`/`ci3` (labs' ci3 must derive its own) and exports `TEST_CMD_PREFIX` (`cd labs && export root= ci3= && `, inserted by labs' `ci3/prefix_test_cmds` so the foundation test engine, which runs from this root, can execute labs test lines) and `TEST_CMD_SKIP` from `labs-patches/test_cmd_skip` — the regex of labs tests that cannot run here because they mount or package only the labs checkout, where the portals do not resolve (the compose/web3signer/ha e2e flavours, the playground browser tests). `scripts/labs_test_cmds.sh` collects labs test/bench commands for the engine with that environment.
- Cache identity: `scripts/labs_fnd_hashes.sh` writes `labs/labs-aztec-toolchain/fnd-hashes` (`<component>=<content hash>` per provider, plus `optional=` naming the optional binaries this tree built). In foundation mode, labs' toolchain hash is the content hash of that directory, so every labs build and test cache key follows the foundation tree, and a dirty provider disables labs caching. use-local also portals the protocol artifacts packages.
- Cache identity: `scripts/labs_fnd_hashes.sh` writes `labs/labs-aztec-toolchain/fnd-hashes`: per provider (`LABS_PROVIDERS` in the Makefile, the prerequisites of the `labs-use-local` ci3 step), the value ci3 hands the step for it (`CI3_KEY_<NAME>`: the hash of its outputs, or its key), plus `optional=` naming the optional binaries this tree built. In foundation mode, labs' toolchain hash is the content hash of that directory, so every labs build and test cache key follows the foundation tree, and a dirty provider disables labs caching. use-local also portals the protocol artifacts packages.
</labs_build_tooling>

<standard_contract_repin>
Expand Down
Loading
Loading