Skip to content

Commit 6bef10a

Browse files
committed
Merge branch 'master' into verkle-support
2 parents e51b36c + bac6707 commit 6bef10a

File tree

104 files changed

+5599
-5041
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+5599
-5041
lines changed

.github/workflows/_shared-build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
# build binaries
6565
- name: Build linux amd64 binary
6666
run: |
67+
make docs
6768
make build
6869
env:
6970
RELEASE: ${{ inputs.release }}
@@ -103,6 +104,7 @@ jobs:
103104
# build binaries
104105
- name: Build linux arm64 binary
105106
run: |
107+
make docs
106108
make build GOARCH=arm64 CC=/usr/bin/aarch64-linux-gnu-gcc
107109
env:
108110
RELEASE: ${{ inputs.release }}
@@ -136,6 +138,7 @@ jobs:
136138
# build binaries
137139
- name: Build windows binary
138140
run: |
141+
make docs
139142
make build
140143
env:
141144
RELEASE: ${{ inputs.release }}
@@ -169,6 +172,7 @@ jobs:
169172
# build binaries
170173
- name: Build macos amd64 binary
171174
run: |
175+
make docs
172176
make build
173177
env:
174178
RELEASE: ${{ inputs.release }}
@@ -202,6 +206,7 @@ jobs:
202206
# build binaries
203207
- name: Build macos arm64 binary
204208
run: |
209+
make docs
205210
make build GOARCH=arm64
206211
env:
207212
RELEASE: ${{ inputs.release }}

.github/workflows/build-master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
echo "$line" >> ./wiki.md
6262
fi
6363
done <<< $(cat $filename)
64+
echo "" >> ./wiki.md
6465
done
6566
6667
cp ./wiki.md ./wiki/Home.md

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# syntax=docker/dockerfile:1
2-
FROM golang:1.18 AS builder
2+
FROM golang:1.21 AS builder
33
WORKDIR /src
44
COPY go.sum go.mod ./
55
RUN go mod download
66
COPY . .
7-
RUN CGO_ENABLED=1 go build -o /bin/app .
7+
RUN make build
88

99
FROM ubuntu:latest
1010
RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \
@@ -13,5 +13,5 @@ RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-reco
1313
jq \
1414
&& apt-get clean \
1515
&& rm -rf /var/lib/apt/lists/*
16-
COPY --from=builder /bin/app /assertoor
16+
COPY --from=builder bin/assertoor /assertoor
1717
ENTRYPOINT ["/assertoor"]

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ VERSION := $(shell git rev-parse --short HEAD)
33
GOLDFLAGS += -X 'github.com/ethpandaops/assertoor/pkg/coordinator/buildinfo.BuildVersion="$(VERSION)"'
44
GOLDFLAGS += -X 'github.com/ethpandaops/assertoor/pkg/coordinator/buildinfo.BuildRelease="$(RELEASE)"'
55

6-
.PHONY: all test clean
6+
.PHONY: all docs test clean
77

8-
all: build
8+
all: docs build
99

1010
test:
1111
go test ./...
@@ -14,5 +14,8 @@ build:
1414
@echo version: $(VERSION)
1515
env CGO_ENABLED=1 go build -v -o bin/ -ldflags="-s -w $(GOLDFLAGS)" .
1616

17+
docs:
18+
go install github.com/swaggo/swag/cmd/swag@v1.16.3 && swag init -g web/api/handler.go -d pkg/coordinator --parseDependency -o pkg/coordinator/web/api/docs
19+
1720
clean:
1821
rm -f bin/*

cmd/root.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
var rootCmd = &cobra.Command{
1414
Use: "assertoor",
1515
Short: "Runs a configured test until completion or error",
16-
Run: func(cmd *cobra.Command, args []string) {
16+
Run: func(cmd *cobra.Command, _ []string) {
1717
config, err := coordinator.NewConfig(cfgFile)
1818
if err != nil {
1919
log.Fatal(err)
@@ -31,7 +31,7 @@ var rootCmd = &cobra.Command{
3131
logr.SetLevel(logrus.DebugLevel)
3232
}
3333

34-
coord := coordinator.NewCoordinator(config, logr, metricsPort, lameDuckSeconds)
34+
coord := coordinator.NewCoordinator(config, logr, metricsPort)
3535

3636
if err := coord.Run(cmd.Context()); err != nil {
3737
log.Fatal(err)
@@ -41,11 +41,10 @@ var rootCmd = &cobra.Command{
4141
}
4242

4343
var (
44-
cfgFile string
45-
logFormat string
46-
verbose bool
47-
metricsPort int
48-
lameDuckSeconds int
44+
cfgFile string
45+
logFormat string
46+
verbose bool
47+
metricsPort int
4948
)
5049

5150
// Execute adds all child commands to the root command and sets flags appropriately.
@@ -65,5 +64,4 @@ func init() {
6564
rootCmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "Verbose output")
6665

6766
rootCmd.Flags().IntVarP(&metricsPort, "metrics-port", "", 9090, "Port to serve Prometheus metrics on")
68-
rootCmd.Flags().IntVarP(&lameDuckSeconds, "lame-duck-seconds", "", 30, "Lame duck period in seconds (wait for this long after completion before terminating")
6967
}

cmd/tasks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99

1010
"github.com/ethpandaops/assertoor/pkg/coordinator/tasks"
1111
"github.com/spf13/cobra"
12-
"gopkg.in/yaml.v2"
12+
"gopkg.in/yaml.v3"
1313
)
1414

1515
// tasksCmd represents the tasks command
1616
var tasksCmd = &cobra.Command{
1717
Use: "tasks",
1818
Short: "Lists all available tasks",
19-
Run: func(cmd *cobra.Command, args []string) {
19+
Run: func(_ *cobra.Command, _ []string) {
2020
available := tasks.AvailableTasks()
2121

2222
yamlData, err := yaml.Marshal(&available)

go.mod

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,31 @@ require (
77
github.com/donovanhide/eventsource v0.0.0-20210830082556-c59027999da0
88
github.com/ethereum/go-ethereum v1.13.8
99
github.com/ethpandaops/ethwallclock v0.3.0
10+
github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75
1011
github.com/gorilla/mux v1.8.1
1112
github.com/herumi/bls-eth-go-binary v1.31.0
1213
github.com/holiman/uint256 v1.2.4
14+
github.com/itchyny/gojq v0.12.14
15+
github.com/juliangruber/go-intersect v1.1.0
1316
github.com/mashingan/smapping v0.1.19
1417
github.com/prometheus/client_golang v1.17.0
1518
github.com/protolambda/zrnt v0.30.0
1619
github.com/protolambda/ztyp v0.2.2
1720
github.com/rs/zerolog v1.29.1
1821
github.com/sirupsen/logrus v1.9.3
1922
github.com/spf13/cobra v1.5.0
23+
github.com/swaggo/http-swagger v1.3.4
24+
github.com/swaggo/swag v1.16.3
2025
github.com/tdewolff/minify v2.3.6+incompatible
2126
github.com/tyler-smith/go-bip39 v1.1.0
2227
github.com/urfave/negroni v1.0.0
2328
github.com/wealdtech/go-eth2-types/v2 v2.8.2
2429
github.com/wealdtech/go-eth2-util v1.8.2
25-
gopkg.in/yaml.v2 v2.4.0
2630
gopkg.in/yaml.v3 v3.0.1
2731
)
2832

2933
require (
34+
github.com/KyleBanks/depth v1.2.1 // indirect
3035
github.com/Microsoft/go-winio v0.6.1 // indirect
3136
github.com/StackExchange/wmi v1.2.1 // indirect
3237
github.com/beorn7/perks v1.0.1 // indirect
@@ -45,16 +50,21 @@ require (
4550
github.com/go-logr/logr v1.2.4 // indirect
4651
github.com/go-logr/stdr v1.2.2 // indirect
4752
github.com/go-ole/go-ole v1.2.5 // indirect
53+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
54+
github.com/go-openapi/jsonreference v0.20.0 // indirect
55+
github.com/go-openapi/spec v0.20.6 // indirect
56+
github.com/go-openapi/swag v0.19.15 // indirect
4857
github.com/goccy/go-yaml v1.9.5 // indirect
4958
github.com/golang/protobuf v1.5.3 // indirect
5059
github.com/google/uuid v1.3.0 // indirect
5160
github.com/gorilla/websocket v1.4.2 // indirect
5261
github.com/huandu/go-clone v1.6.0 // indirect
5362
github.com/inconshreveable/mousetrap v1.0.0 // indirect
54-
github.com/itchyny/gojq v0.12.14 // indirect
5563
github.com/itchyny/timefmt-go v0.1.5 // indirect
64+
github.com/josharian/intern v1.0.0 // indirect
5665
github.com/kilic/bls12-381 v0.1.0 // indirect
5766
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
67+
github.com/mailru/easyjson v0.7.6 // indirect
5868
github.com/mattn/go-colorable v0.1.13 // indirect
5969
github.com/mattn/go-isatty v0.0.20 // indirect
6070
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
@@ -71,6 +81,7 @@ require (
7181
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
7282
github.com/spf13/pflag v1.0.5 // indirect
7383
github.com/supranational/blst v0.3.11 // indirect
84+
github.com/swaggo/files v0.0.0-20220610200504-28940afbdbfe // indirect
7485
github.com/tdewolff/parse v2.3.4+incompatible // indirect
7586
github.com/tdewolff/test v1.0.10 // indirect
7687
github.com/tklauser/go-sysconf v0.3.12 // indirect
@@ -89,6 +100,7 @@ require (
89100
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
90101
google.golang.org/protobuf v1.31.0 // indirect
91102
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
103+
gopkg.in/yaml.v2 v2.4.0 // indirect
92104
rsc.io/tmplfunc v0.0.3 // indirect
93105
)
94106

0 commit comments

Comments
 (0)