Skip to content

Commit

Permalink
Feature: ability to locally test swapping out node versions for selec…
Browse files Browse the repository at this point in the history
…t CL nodes (#141)

* features for testing upgrading node versions

* replace with merged chainlink-relay/ops module

* update ops core

* update ops core with cli fix, update node version

* default to build locally
  • Loading branch information
aalu1418 authored Jan 27, 2022
1 parent 6dc4770 commit f53fbcc
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 182 deletions.
2 changes: 1 addition & 1 deletion gauntlet/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@project-serum/anchor@^0.20.0":
"@project-serum/anchor@^0.20.1":
version "0.20.1"
resolved "https://registry.yarnpkg.com/@project-serum/anchor/-/anchor-0.20.1.tgz#0937807e807e8332aa708cfef4bcb6cbb88b4129"
integrity sha512-2TuBmGUn9qeYz6sJINJlElrBuPsaUAtYyUsJ3XplEBf1pczrANAgs5ceJUFzdiqGEWLn+84ObSdBeChT/AXYFA==
Expand Down
8 changes: 7 additions & 1 deletion ops/Pulumi.localnet.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
encryptionsalt: v1:VLVXZInIcZM=:v1:VFmbM7uWyfbgZrth:RIHQzgnpFyY6SvvNiqkiaByQdFXaDw==
config:
# # testing parameters for updating nodes + mixing node composition
# solana-env:ENV-ONLY_BOOT_CONTAINERS: true
# # easiest way to upgrade all: update CL-NODE_VERSION, enable ONLY_BOOT_CONTAINERS, disable MIX_UPGRADE
# solana-env:ENV-MIX_UPGRADE: true
# solana-env:ENV-MIX_UPGRADE_IMAGE: develop.4bc99afb22dca23469d9a7bc2bdfa7ea49028ae6
# solana-env:ENV-MIX_UPGRADE_NODES: [false, true, false, false, true] # nodes to upgrade (first one is bootstrap)
# chainlink node configs
solana-env:CL-COUNT: 4 # not counting bootstrap, minimum 4
solana-env:CL-PORT-START: 6688 # start port to expose lite client port
solana-env:CL-P2P_PORT-START: 5050 # start port to expose lite client P2P ports
# solana-env:CL-NODE_VERSION: develop.f149ecd421a3667dcd4b603fa69bda05e34d602d # development version can be found at https://gallery.ecr.aws/chainlink/chainlink
# solana-env:CL-NODE_VERSION: develop.4bc99afb22dca23469d9a7bc2bdfa7ea49028ae6 # development version can be found at https://gallery.ecr.aws/chainlink/chainlink
solana-env:CL-BUILD_LOCALLY: true # (overrides NODE_VERSION) BUILD_CONTEXT and BUILD_DOCKERFILE must be set if this is enabled
solana-env:CL-BUILD_CONTEXT: ../../chainlink
solana-env:CL-BUILD_DOCKERFILE: ../../chainlink/core/chainlink.Dockerfile
Expand Down
71 changes: 39 additions & 32 deletions ops/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,25 @@ go 1.17
require (
github.com/pkg/errors v0.9.1
github.com/pulumi/pulumi/sdk/v3 v3.17.0
github.com/smartcontractkit/chainlink-relay/ops v0.0.0-20211223175739-8c613380571f
github.com/smartcontractkit/chainlink-relay/ops v0.0.0-20220126171549-56e2a1dd6034
)

require (
cloud.google.com/go v0.99.0 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.18 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/BurntSushi/toml v0.4.1 // indirect
github.com/MakeNowJust/heredoc v1.0.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/Masterminds/squirrel v1.5.1 // indirect
github.com/Masterminds/squirrel v1.5.2 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
Expand All @@ -29,7 +36,7 @@ require (
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5 // indirect
github.com/cheggaaa/pb v1.0.18 // indirect
github.com/containerd/containerd v1.5.8 // indirect
github.com/containerd/containerd v1.5.9 // indirect
github.com/cyphar/filepath-securejoin v0.2.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deckarep/golang-set v1.7.1 // indirect
Expand All @@ -42,11 +49,12 @@ require (
github.com/docker/go-metrics v0.0.1 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/ethereum/go-ethereum v1.10.11 // indirect
github.com/ethereum/go-ethereum v1.10.15 // indirect
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
github.com/fatih/camelcase v1.0.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/fvbommel/sortorder v1.0.1 // indirect
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect
Expand All @@ -59,7 +67,7 @@ require (
github.com/go-openapi/swag v0.19.15 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gofrs/flock v0.8.0 // indirect
github.com/gofrs/flock v0.8.1 // indirect
github.com/gofrs/uuid v3.3.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.0.0 // indirect
Expand Down Expand Up @@ -94,18 +102,17 @@ require (
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
github.com/lib/pq v1.10.4 // indirect
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
github.com/lithammer/dedent v1.1.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.11 // 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.13 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-ps v1.0.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.4.2 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/locker v1.0.1 // indirect
github.com/moby/spdystream v0.2.0 // indirect
Expand All @@ -114,8 +121,6 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/onsi/ginkgo/v2 v2.0.0-rc2 // indirect
github.com/onsi/gomega v1.17.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/opentracing/basictracer-go v1.0.0 // indirect
Expand All @@ -132,7 +137,7 @@ require (
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rjeczalik/notify v0.9.2 // indirect
github.com/rogpeppe/go-internal v1.8.1-0.20211023094830-115ce09fd6b4 // indirect
github.com/rs/zerolog v1.26.0 // indirect
github.com/rs/zerolog v1.26.1 // indirect
github.com/rubenv/sql-migrate v0.0.0-20211023115951-9f02b1e13857 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94 // indirect
Expand All @@ -141,14 +146,14 @@ require (
github.com/shirou/gopsutil v3.21.10+incompatible // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/smartcontractkit/helmenv v1.0.17 // indirect
github.com/smartcontractkit/integrations-framework v0.10.13-0.20211215190851-23117e6dae75 // indirect
github.com/smartcontractkit/helmenv v1.0.25 // indirect
github.com/smartcontractkit/integrations-framework v1.0.36-0.20220124220015-0efc5b13cfc6 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/cobra v1.2.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.9.0 // indirect
github.com/spf13/viper v1.10.1 // indirect
github.com/src-d/gcfg v1.4.0 // indirect
github.com/status-im/keycard-go v0.0.0-20190424133014-d95853db0f48 // indirect
github.com/stretchr/testify v1.7.0 // indirect
Expand All @@ -167,42 +172,44 @@ require (
github.com/xlab/treeprint v1.1.0 // indirect
go.starlark.net v0.0.0-20211013185944-b0039bd2cfe3 // indirect
go.uber.org/atomic v1.7.0 // indirect
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/net v0.0.0-20211105192438-b53810dc28af // indirect
golang.org/x/crypto v0.0.0-20211215165025-cf75a172585e // indirect
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c // indirect
golang.org/x/sys v0.0.0-20211210111614-af8b64212486 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20211104193956-4c6863e31247 // indirect
google.golang.org/grpc v1.42.0 // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
google.golang.org/grpc v1.43.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/gorp.v1 v1.7.2 // indirect
gopkg.in/guregu/null.v4 v4.0.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.63.2 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
gopkg.in/src-d/go-git.v4 v4.13.1 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
helm.sh/helm/v3 v3.7.1 // indirect
k8s.io/api v0.22.3 // indirect
k8s.io/apiextensions-apiserver v0.22.3 // indirect
k8s.io/apimachinery v0.22.3 // indirect
k8s.io/apiserver v0.22.3 // indirect
k8s.io/cli-runtime v0.22.3 // indirect
k8s.io/client-go v0.22.3 // indirect
k8s.io/component-base v0.22.3 // indirect
helm.sh/helm/v3 v3.7.2 // indirect
k8s.io/api v0.23.1 // indirect
k8s.io/apiextensions-apiserver v0.22.4 // indirect
k8s.io/apimachinery v0.23.1 // indirect
k8s.io/apiserver v0.22.4 // indirect
k8s.io/cli-runtime v0.23.1 // indirect
k8s.io/client-go v0.23.1 // indirect
k8s.io/component-base v0.23.1 // indirect
k8s.io/klog/v2 v2.30.0 // indirect
k8s.io/kube-openapi v0.0.0-20211105084753-ee342a809c29 // indirect
k8s.io/kubectl v0.22.3 // indirect
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
k8s.io/kubectl v0.23.1 // indirect
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b // indirect
oras.land/oras-go v0.4.0 // indirect
sigs.k8s.io/kustomize/api v0.10.0 // indirect
sigs.k8s.io/kustomize/kyaml v0.12.0 // indirect
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
sigs.k8s.io/kustomize/api v0.10.1 // indirect
sigs.k8s.io/kustomize/kyaml v0.13.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 // indirect
Expand Down
Loading

0 comments on commit f53fbcc

Please sign in to comment.