Skip to content

Commit 6a757e9

Browse files
authored
refactor: rename rbuilder to builder (#164)
Rename all internal references from "rbuilder" to "builder" across the codebase. External references to the upstream op-rbuilder project (repo URL, cargo binary name, Prometheus metric keys) are preserved. Closes #163
1 parent 4222bda commit 6a757e9

File tree

21 files changed

+126
-126
lines changed

21 files changed

+126
-126
lines changed

.github/scripts/run-example-benchmarks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BENCHMARK_CONFIGS=(
99
configs/examples/erc20.yml
1010
configs/examples/simulator.yml
1111
configs/examples/sload.yml
12-
configs/examples/rbuilder.yml
12+
configs/examples/builder.yml
1313
configs/examples/base-reth-node.yml
1414
configs/examples/sstore.yml
1515
# configs/examples/snapshot.yml
@@ -29,6 +29,6 @@ for config in "${BENCHMARK_CONFIGS[@]}"; do
2929
--output-dir $TEMP_DIR/output \
3030
--reth-bin $TEMP_DIR/bin/reth \
3131
--geth-bin $TEMP_DIR/bin/geth \
32-
--rbuilder-bin $TEMP_DIR/bin/rbuilder \
32+
--builder-bin $TEMP_DIR/bin/builder \
3333
--base-reth-node-bin $TEMP_DIR/bin/base-reth-node
34-
done
34+
done

.github/workflows/_build-binaries.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Reusable workflow for building all binaries
2-
# This workflow is called by other workflows to build reth, geth, rbuilder, op-program, and contracts
2+
# This workflow is called by other workflows to build reth, geth, builder, op-program, and contracts
33
name: Build Binaries
44

55
on:
@@ -15,8 +15,8 @@ on:
1515
required: false
1616
type: string
1717
default: "6cbfcd5161083bcd4052edc3022d9f99c6fe40e0"
18-
rbuilder_version:
19-
description: "Rbuilder version to build"
18+
builder_version:
19+
description: "Builder version to build"
2020
required: false
2121
type: string
2222
default: "23f42c8e78ba3abb45a8840df7037a27e196e601"
@@ -145,7 +145,7 @@ jobs:
145145
path: ~/bin/geth
146146
retention-days: 1
147147

148-
build-rbuilder:
148+
build-builder:
149149
runs-on: ubuntu-latest
150150
permissions:
151151
contents: read
@@ -161,28 +161,28 @@ jobs:
161161
- name: Set up Rust
162162
uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
163163

164-
- name: Cache rbuilder binary
164+
- name: Cache builder binary
165165
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
166-
id: cache-rbuilder
166+
id: cache-builder
167167
with:
168-
path: ~/bin/rbuilder
169-
key: ${{ runner.os }}-rbuilder-${{ inputs.rbuilder_version }}
168+
path: ~/bin/builder
169+
key: ${{ runner.os }}-builder-${{ inputs.builder_version }}
170170

171-
- name: Build rbuilder
172-
if: steps.cache-rbuilder.outputs.cache-hit != 'true'
171+
- name: Build builder
172+
if: steps.cache-builder.outputs.cache-hit != 'true'
173173
run: |
174174
unset CI
175175
mkdir -p ~/bin
176176
cd clients
177-
RBUILDER_VERSION=${{ inputs.rbuilder_version }} OUTPUT_DIR=~/bin ./build-rbuilder.sh
178-
# Rename op-rbuilder to rbuilder for consistency
179-
[ -f ~/bin/op-rbuilder ] && mv ~/bin/op-rbuilder ~/bin/rbuilder || true
177+
BUILDER_VERSION=${{ inputs.builder_version }} OUTPUT_DIR=~/bin ./build-builder.sh
178+
# Rename op-rbuilder to builder for consistency
179+
[ -f ~/bin/op-rbuilder ] && mv ~/bin/op-rbuilder ~/bin/builder || true
180180
181-
- name: Upload rbuilder artifact
181+
- name: Upload builder artifact
182182
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
183183
with:
184-
name: rbuilder
185-
path: ~/bin/rbuilder
184+
name: builder
185+
path: ~/bin/builder
186186
retention-days: 1
187187

188188
build-base-reth-node:

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
with:
7272
reth_version: 27a8c0f5a6dfb27dea84c5751776ecabdd069646
7373
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
74-
rbuilder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
74+
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
7575
base_reth_node_version: main
7676

7777
basic-benchmarks:
@@ -113,10 +113,10 @@ jobs:
113113
name: geth
114114
path: ${{ runner.temp }}/bin/
115115

116-
- name: Download rbuilder binary
116+
- name: Download builder binary
117117
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
118118
with:
119-
name: rbuilder
119+
name: builder
120120
path: ${{ runner.temp }}/bin/
121121

122122
- name: Download base-reth-node binary

.github/workflows/examples.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
reth_version: 27a8c0f5a6dfb27dea84c5751776ecabdd069646
2020
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
21-
rbuilder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
21+
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
2222
base_reth_node_version: main
2323

2424
example-benchmarks:
@@ -62,10 +62,10 @@ jobs:
6262
name: geth
6363
path: ${{ runner.temp }}/bin/
6464

65-
- name: Download rbuilder binary
65+
- name: Download builder binary
6666
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
6767
with:
68-
name: rbuilder
68+
name: builder
6969
path: ${{ runner.temp }}/bin/
7070

7171
- name: Download base-reth-node binary

.github/workflows/public-benchmarks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
reth_version: 27a8c0f5a6dfb27dea84c5751776ecabdd069646
2020
geth_version: 6cbfcd5161083bcd4052edc3022d9f99c6fe40e0
21-
rbuilder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
21+
builder_version: 23f42c8e78ba3abb45a8840df7037a27e196e601
2222

2323
basic-benchmarks:
2424
runs-on: ubuntu-latest

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ build-reth:
4747
build-geth:
4848
cd clients && ./build-geth.sh
4949

50-
.PHONY: build-rbuilder
51-
build-rbuilder:
52-
cd clients && ./build-rbuilder.sh
50+
.PHONY: build-builder
51+
build-builder:
52+
cd clients && ./build-builder.sh
5353

5454
.PHONY: build-binaries
55-
build-binaries: build-reth build-geth build-rbuilder
55+
build-binaries: build-reth build-geth build-builder
5656

5757
.PHONY: build-frontend
5858
build-frontend:

clients/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Builds the op-geth binary from the Ethereum Optimism op-geth repository using ju
2020
- Version: `optimism`
2121
- Build tool: `go run build/ci.go install`
2222

23-
### build-rbuilder.sh
24-
Builds the op-rbuilder binary from the op-rbuilder repository using Cargo.
23+
### build-builder.sh
24+
Builds the builder binary from the op-rbuilder repository using Cargo.
2525

2626
**Default Configuration:**
2727
- Repository: `https://github.com/base/op-rbuilder`
@@ -42,8 +42,8 @@ make build-reth
4242
# Build only geth
4343
make build-geth
4444

45-
# Build only op-rbuilder
46-
make build-rbuilder
45+
# Build only builder
46+
make build-builder
4747
```
4848

4949
### Direct Script Execution
@@ -56,8 +56,8 @@ cd clients
5656
# Build geth with defaults
5757
./build-geth.sh
5858

59-
# Build op-rbuilder with defaults
60-
./build-rbuilder.sh
59+
# Build builder with defaults
60+
./build-builder.sh
6161
```
6262

6363
## Version Management
@@ -75,7 +75,7 @@ Modify the `versions.env` file to change defaults for all builds:
7575
# Edit versions.env to update default versions
7676
RETH_VERSION="v0.2.0-beta.5"
7777
GETH_VERSION="v1.13.0"
78-
RBUILDER_VERSION="your-commit-hash"
78+
BUILDER_VERSION="your-commit-hash"
7979
```
8080

8181
#### 2. Environment Variables
@@ -88,8 +88,8 @@ RETH_REPO="https://github.com/paradigmxyz/reth/" RETH_VERSION="v0.1.0" ./build-r
8888
# Build geth from a fork
8989
GETH_REPO="https://github.com/your-fork/op-geth/" GETH_VERSION="your-branch" ./build-geth.sh
9090

91-
# Build op-rbuilder from a different commit
92-
RBUILDER_VERSION="main" ./build-rbuilder.sh
91+
# Build builder from a different commit
92+
BUILDER_VERSION="main" ./build-builder.sh
9393
```
9494

9595
### Available Environment Variables
@@ -106,9 +106,9 @@ RBUILDER_VERSION="main" ./build-rbuilder.sh
106106
- `BUILD_DIR`: Directory for source code (default: ./build)
107107
- `OUTPUT_DIR`: Directory for built binaries (default: ../bin)
108108

109-
#### For op-rbuilder (build-rbuilder.sh):
110-
- `RBUILDER_REPO`: Git repository URL (default: https://github.com/haardikk21/op-rbuilder)
111-
- `RBUILDER_VERSION`: Git branch, tag, or commit hash (default: main)
109+
#### For builder (build-builder.sh):
110+
- `BUILDER_REPO`: Git repository URL (default: https://github.com/base/op-rbuilder)
111+
- `BUILDER_VERSION`: Git branch, tag, or commit hash (default: main)
112112
- `BUILD_DIR`: Directory for source code (default: ./build)
113113
- `OUTPUT_DIR`: Directory for built binaries (default: ../bin)
114114

@@ -122,7 +122,7 @@ RBUILDER_VERSION="main" ./build-rbuilder.sh
122122
- Go toolchain
123123
- Git
124124

125-
### For op-rbuilder:
125+
### For builder:
126126
- Rust and Cargo installed
127127
- Git
128128

@@ -131,4 +131,4 @@ RBUILDER_VERSION="main" ./build-rbuilder.sh
131131
Built binaries will be placed in the `bin/` directory at the project root:
132132
- `bin/reth` - The reth binary
133133
- `bin/geth` - The op-geth binary
134-
- `bin/op-rbuilder` - The op-rbuilder binary
134+
- `bin/op-rbuilder` - The builder binary
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ if [ -f "versions.env" ]; then
88
fi
99

1010
# Default values
11-
RBUILDER_REPO="${RBUILDER_REPO:-https://github.com/base/op-rbuilder}"
12-
RBUILDER_VERSION="${RBUILDER_VERSION:-main}"
11+
BUILDER_REPO="${BUILDER_REPO:-https://github.com/base/op-rbuilder}"
12+
BUILDER_VERSION="${BUILDER_VERSION:-main}"
1313
BUILD_DIR="${BUILD_DIR:-./build}"
1414
OUTPUT_DIR="${OUTPUT_DIR:-../bin}"
1515

16-
echo "Building op-rbuilder binary..."
17-
echo "Repository: $RBUILDER_REPO"
18-
echo "Version/Commit: $RBUILDER_VERSION"
16+
echo "Building builder binary..."
17+
echo "Repository: $BUILDER_REPO"
18+
echo "Version/Commit: $BUILDER_VERSION"
1919
echo "Build directory: $BUILD_DIR"
2020
echo "Output directory: $OUTPUT_DIR"
2121

@@ -29,17 +29,17 @@ if [ -d "op-rbuilder" ]; then
2929
cd op-rbuilder
3030

3131
# ensure remote matches the repository
32-
git remote set-url origin "$RBUILDER_REPO"
32+
git remote set-url origin "$BUILDER_REPO"
3333
git fetch origin
3434
else
3535
echo "Cloning op-rbuilder repository..."
36-
git clone "$RBUILDER_REPO" op-rbuilder
36+
git clone "$BUILDER_REPO" op-rbuilder
3737
cd op-rbuilder
3838
fi
3939

4040
# Checkout specified version/commit
41-
echo "Checking out version: $RBUILDER_VERSION"
42-
git checkout -f "$RBUILDER_VERSION"
41+
echo "Checking out version: $BUILDER_VERSION"
42+
git checkout -f "$BUILDER_VERSION"
4343

4444
# Build the binary using cargo
4545
echo "Building op-rbuilder with cargo..."
@@ -67,4 +67,4 @@ else
6767
exit 1
6868
fi
6969

70-
echo "op-rbuilder binary built successfully and placed in $FINAL_OUTPUT_DIR/op-rbuilder"
70+
echo "Builder binary built successfully and placed in $FINAL_OUTPUT_DIR/op-rbuilder"

clients/versions.env

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
RETH_REPO="https://github.com/paradigmxyz/reth/"
77
RETH_VERSION="v1.9.3"
88

9-
# Op-Geth Configuration
9+
# Op-Geth Configuration
1010
GETH_REPO="https://github.com/ethereum-optimism/op-geth/"
1111
GETH_VERSION="v1.101604.0"
1212

13-
# Op-Rbuilder Configuration
14-
RBUILDER_REPO="https://github.com/base/op-rbuilder"
15-
RBUILDER_VERSION="main"
13+
# Builder Configuration
14+
BUILDER_REPO="https://github.com/base/op-rbuilder"
15+
BUILDER_VERSION="main"
1616

1717
# Base Reth Node Configuration
1818
BASE_RETH_NODE_REPO="https://github.com/base/base"
1919
BASE_RETH_NODE_VERSION="main"
2020

2121
# Build Configuration
2222
# BUILD_DIR="./build"
23-
# OUTPUT_DIR="../bin"
23+
# OUTPUT_DIR="../bin"

configs/examples/base-reth-node-flashblocks-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Base Reth Node flashblocks metrics test
2-
description: Test base-reth-node flashblock metrics collection with rbuilder as sequencer and base-reth-node as validator
2+
description: Test base-reth-node flashblock metrics collection with builder as sequencer and base-reth-node as validator
33
payloads:
44
- name: Transfer Only
55
type: transfer-only
@@ -12,7 +12,7 @@ benchmarks:
1212
- transfer-only
1313
- type: node_type
1414
values:
15-
- rbuilder
15+
- builder
1616
- type: validator_node_type
1717
values:
1818
- base-reth-node

0 commit comments

Comments
 (0)