You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Local development only: you can disable Admin API auth with `--disable-admin-auth` or `DISABLE_ADMIN_AUTH=1`. This is unsafe; never use in production.
53
53
54
+
For development/testing, you may also allow empty measurements with `--enable-empty-measurements` or `ENABLE_EMPTY_MEASUREMENTS=1`. In production, keep this disabled and specify at least one expected measurement.
55
+
54
56
### Manual setup
55
57
56
-
**Start the database and the server:**
58
+
See [`docs/devenv-setup.md`](./docs/devenv-setup.md) for more information on building and running BuilderHub locally with docker compose.
curl -X POST localhost:8080/api/l1-builder/v1/register_credentials/rbuilder
85
86
```
86
87
87
-
### Testing
88
-
89
-
Run test suite with database tests included:
90
-
91
-
```bash
92
-
RUN_DB_TESTS=1 make test
93
-
```
94
-
95
88
---
96
89
97
90
## Contributing
98
91
99
92
**Install dev dependencies**
100
93
101
-
```bash
102
-
go install mvdan.cc/gofumpt@v0.4.0
103
-
go install honnef.co/go/tools/cmd/staticcheck@v0.4.2
104
-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.3
105
-
go install go.uber.org/nilaway/cmd/nilaway@v0.0.0-20240821220108-c91e71c080b7
106
-
go install github.com/daixiang0/gci@v0.11.2
107
-
```
94
+
Use the same development dependencies as Github CI via [checks.yml](https://github.com/flashbots/builder-hub/blob/required-measurements/.github/workflows/checks.yml#L44-L77)
108
95
109
96
**Lint, test, format**
110
97
111
98
```bash
112
-
make lint
113
-
make test
99
+
# Quick and easy linting and testing without database
100
+
make lt # stands for "make lint and test"
101
+
102
+
# Run things manually
114
103
make fmt
104
+
make lint
105
+
make dev-postgres-start
106
+
make test-with-db
115
107
```
116
108
117
109
---
@@ -230,18 +222,7 @@ Payload
230
222
}
231
223
```
232
224
233
-
Note that only the measurements given are expected, and any non-present will be ignored.
234
-
235
-
To allow _any_ measurement, use an empty measurements field:
236
-
`"measurements": {}`.
237
-
238
-
```json
239
-
{
240
-
"measurement_id": "test-blanket-allow",
241
-
"attestation_type": "azure-tdx",
242
-
"measurements": {}
243
-
}
244
-
```
225
+
Note that only the measurements given are expected, and any non-present will be ignored. The `measurements` object must contain at least one entry.
0 commit comments