Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
08564d5
hive: API proxy
fjl May 17, 2022
306bb25
internal/libdocker: use NewClientFromEnv if no endpoint given
fjl May 18, 2022
413f001
hive: default to endpoint from environment
fjl May 18, 2022
9bdc1ad
.circleci: run smoke tests with remote docker
fjl May 18, 2022
d11d1c4
.circleci: config update
fjl May 18, 2022
f834858
.circleci: configure image
fjl May 18, 2022
4e12176
.circleci: bump loglevel
fjl May 18, 2022
908dac1
api proxy 2
fjl Jul 6, 2022
077e668
proxy: new proxy
fjl Jul 6, 2022
fbd0d05
hive: use new proxy
fjl Jul 6, 2022
1f0360d
hive: new proxy WIP
fjl Jul 6, 2022
ae4eab0
proxy: add source
fjl Jul 6, 2022
9da6b3a
proxy: add Dockerfile
fjl Jul 6, 2022
59879f3
hiveproxy: rename and fix
fjl Jul 6, 2022
293123f
hiveproxy: add tool main
fjl Jul 6, 2022
36867f3
update proxy
fjl Jul 6, 2022
dfa49b0
hiveproxy: update embed patterns
fjl Jul 6, 2022
0f1bede
internal/libdocker: fix tar subdirectories
fjl Jul 6, 2022
4d9dc3a
internal/libdocker: apply nocache in BuildImage
fjl Jul 6, 2022
6f4b774
hiveproxy: fix dockerfile
fjl Jul 6, 2022
23bf972
go.mod: bump hiveproxy
fjl Jul 6, 2022
f896915
internal/stdio-proxy: remove
fjl Jul 6, 2022
ca92222
hiveproxy: switch back embed pattern
fjl Jul 6, 2022
78ddf6d
hiveproxy: add CheckLive
fjl Jul 6, 2022
815b178
hiveproxy: fix tool
fjl Jul 6, 2022
0c86321
hive: fix proxy launch
fjl Jul 6, 2022
8abd9e1
go.mod: upgrade to go-ethereum v1.10.20
fjl Jul 7, 2022
b947f85
hive: simplify proxy integration
fjl Jul 7, 2022
03dfcd9
go.mod: go mod tidy
fjl Jul 7, 2022
ed0e9f1
go.mod: go mod tidy
fjl Jul 7, 2022
74396e2
hive: proxy checklive integration
fjl Jul 7, 2022
715e355
hiveproxy: add missing file
fjl Jul 7, 2022
65c292c
internal/libdocker: add missing file
fjl Jul 7, 2022
c4902b2
hiveproxy: fix build in docker
fjl Jul 7, 2022
d8ace7c
hiveproxy: go mod tidy
fjl Jul 7, 2022
e6ab833
go.mod: remove btcec v0.22.0 dependency
fjl Jul 7, 2022
3b9ffa6
internal/libdocker: remove LookupBridgeIP
fjl Jul 7, 2022
e4189a9
go.mod: set hiveproxy version to latest
fjl Jul 7, 2022
45967c1
internal/libdocker: make builder logs more consistent
fjl Jul 7, 2022
96b373f
internal/libdocker: update proxy image tag
fjl Jul 7, 2022
97b02fc
hiveproxy: add go mod download step in Dockerfile
fjl Jul 7, 2022
afbef5b
hiveproxy: fix Dockerfile command
fjl Jul 7, 2022
eb86284
hiveproxy: close RPC client on shutdown
fjl Jul 7, 2022
11365ea
hiveproxy: disable keepalive
fjl Jul 7, 2022
2756f8a
hiveproxy: bump ConnectionWriteTimeout
fjl Jul 7, 2022
3929dd2
go.work: add workspace file
fjl Jul 7, 2022
643ae1e
hiveproxy: add documentation
fjl Jul 7, 2022
08b0dbf
.circleci: run hiveproxy tests
fjl Jul 7, 2022
6dae73b
.circleci: use go 1.18
fjl Jul 7, 2022
8702c6a
remove go.work file
fjl Jul 7, 2022
8a10612
.circleci: fix hiveproxy tests
fjl Jul 7, 2022
1b6cbd9
.circleci: use Go 1.17
fjl Jul 7, 2022
5b4de4f
hiveproxy: use better parameter type in CheckLive
fjl Jul 7, 2022
5dbb52a
go.mod: update API proxy
fjl Jul 7, 2022
5779530
hiveproxy: add docs about cancellation relay
fjl Jul 7, 2022
38396d1
hive: fix simulator dev mode
fjl Jul 7, 2022
756cd86
internal/libdocker: improve proxy startup message
fjl Jul 7, 2022
fbb03de
hive: improve dev mode startup message
fjl Jul 7, 2022
0eba110
hiveproxy: documentation updates
fjl Jul 7, 2022
45c9cda
internal/libdocker: fix builder log message
fjl Jul 7, 2022
0d227bb
hive: build proxy first
fjl Jul 7, 2022
87044bd
internal/libdocker: fix log tag in proxy start message
fjl Jul 7, 2022
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
24 changes: 22 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ jobs:
- run:
command: "/tmp/build/hive --sim=smoke/network --client=go-ethereum"

# This job also runs the smoke test simulations, but against a remote dockerd.
smoke-tests-remote-docker:
docker:
- image: cimg/base:2022.04
steps:
- checkout
- attach_workspace: {at: "/tmp/build"}
- setup_remote_docker: {version: 20.10.14}
- run:
command: "/tmp/build/hive --sim=smoke/genesis --client=go-ethereum --loglevel 5"
- run:
command: "/tmp/build/hive --sim=smoke/network --client=go-ethereum --loglevel 5"

# This job runs the go unit tests.
go-test:
docker:
Expand All @@ -44,8 +57,13 @@ jobs:
- go/mod-download
- go/save-cache
# Run the tests.
- go/test:
packages: "./..."
- run:
name: "hive module tests"
command: "go test -cover ./..."
- run:
name: "hiveproxy module tests"
command: "go test -cover ./..."
working_directory: "./hiveproxy"
- run:
name: "Compile Go simulators"
command: ".circleci/compile-simulators.sh"
Expand All @@ -57,3 +75,5 @@ workflows:
- build
- smoke-tests:
requires: ["build"]
- smoke-tests-remote-docker:
requires: ["build"]
40 changes: 21 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,63 @@ go 1.17

require (
github.com/davecgh/go-spew v1.1.1
github.com/ethereum/go-ethereum v1.10.17
github.com/fsouza/go-dockerclient v1.7.11
github.com/ethereum/go-ethereum v1.10.20
github.com/ethereum/hive/hiveproxy v0.0.0-20220707161057-5b4de4fefda2
github.com/fsouza/go-dockerclient v1.7.7
github.com/gorilla/mux v1.8.0
github.com/rauljordan/engine-proxy v0.0.0-20220517190449-e62b2e2f6e27
gopkg.in/inconshreveable/log15.v2 v2.0.0-20200109203555-b30bc20e4fd1
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/Microsoft/hcsshim v0.9.2 // indirect
github.com/Microsoft/go-winio v0.5.1 // indirect
github.com/Microsoft/hcsshim v0.8.23 // indirect
github.com/StackExchange/wmi v0.0.0-20210224194228-fe8f1750fd46 // indirect
github.com/VictoriaMetrics/fastcache v1.6.0 // indirect
github.com/allegro/bigcache v1.2.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.1.2 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/containerd/cgroups v1.0.3 // indirect
github.com/containerd/containerd v1.6.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/containerd/cgroups v1.0.1 // indirect
github.com/containerd/containerd v1.5.9 // indirect
github.com/deckarep/golang-set v1.8.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/docker/docker v20.10.12+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/edsrzf/mmap-go v1.0.0 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/holiman/uint256 v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/moby/sys/mount v0.2.0 // indirect
github.com/moby/sys/mountinfo v0.5.0 // indirect
github.com/moby/sys/mountinfo v0.4.1 // indirect
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/opencontainers/runc v1.1.0 // indirect
github.com/opencontainers/runc v1.0.3 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/tsdb v0.10.0 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
go.opencensus.io v0.23.0 // indirect
go.opencensus.io v0.22.3 // indirect
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e // indirect
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
)

replace github.com/ethereum/hive/hiveproxy => ./hiveproxy
Loading