Skip to content

Commit 0fb6cc7

Browse files
authored
[ci] Switch from local flake to avalanchego flake (#1990)
Signed-off-by: maru <[email protected]>
1 parent d296edd commit 0fb6cc7

File tree

12 files changed

+65
-129
lines changed

12 files changed

+65
-129
lines changed

.envrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# - Will execute on entry to the containing directory only if authorized with `direnv allow`
2+
# - Requires a recent version of direnv (https://direnv.net/)
3+
# - For quieter direnv output, set `export DIRENV_LOG_FORMAT=`
4+
5+
# Determine AVALANCHE_VERSION
6+
source ./scripts/constants.sh
7+
8+
# - Starts an avalanchego dev shell
9+
# - Requires nix (https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#install-nix)
10+
use flake "github:ava-labs/avalanchego?ref=${AVALANCHE_VERSION}"

.github/workflows/hypersdk-ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ jobs:
5555
- name: Run actionlint
5656
shell: bash
5757
run: scripts/tests.actionlint.sh
58-
- uses: ava-labs/avalanchego/.github/actions/install-nix@6626b41b013f2365b96bd66dfc8499ee4861d25b
5958
- name: Ensure consistent avalanchego version
6059
shell: bash
6160
run: |
62-
nix develop --command bash -x scripts/update_avalanchego_version.sh
61+
scripts/update_avalanchego_version.sh
6362
git diff --exit-code
6463
6564
# This workflow job ensures generated code is up-to-date
@@ -153,7 +152,7 @@ jobs:
153152
go.sum
154153
examples/morpheusvm/go.sum
155154
- name: Run e2e tests
156-
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@6626b41b013f2365b96bd66dfc8499ee4861d25b
155+
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@50f1601bf39a106d066012b4ef470c1058f5005a
157156
with:
158157
run: ./examples/morpheusvm/scripts/run.sh
159158
run_env: MODE='test'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ compose-dev.yaml
7171
# Do not ignore specific .txt files for license check
7272
!license-header.txt
7373
!license-style.txt
74+
75+
.direnv

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ The `hypersdk` project also has a fixer that tries to help. To run the fixer, si
5353
./scripts/fix.lint.sh
5454
```
5555

56+
## Optional Dev Shell
57+
58+
Some activities, such as collecting metrics and logs from the nodes targeted by an e2e
59+
test run, require binary dependencies. One way of making these dependencies available is
60+
to use a nix shell which will give access to the dependencies expected by the test
61+
tooling:
62+
63+
- Install [nix](https://nixos.org/). The [determinate systems
64+
installer](https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#install-nix)
65+
is recommended.
66+
- Use ./scripts/dev_shell.sh to start a nix shell
67+
- Execute the dependency-requiring command (e.g. `ginkgo -v ./tests/e2e -- --start-collectors`)
68+
69+
This repo also defines a `.envrc` file to configure [devenv](https://direnv.net/). With `devenv`
70+
and `nix` installed, a shell at the root of the hypersdk repo will automatically start a nix dev
71+
shell.
72+
5673
## Contributing
5774

5875
We welcome contributions to hypersdk! To contribute, please follow these steps:

examples/morpheusvm/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/ava-labs/hypersdk/examples/morpheusvm
33
go 1.23.7
44

55
require (
6-
github.com/ava-labs/avalanchego v1.12.3-0.20250317160941-6626b41b013f
6+
github.com/ava-labs/avalanchego v1.13.1-0.20250321175346-50f1601bf39a
77
github.com/ava-labs/hypersdk v0.0.0-00010101000000-000000000000
88
github.com/fatih/color v1.13.0
99
github.com/onsi/ginkgo/v2 v2.13.1
@@ -18,7 +18,7 @@ require (
1818
github.com/NYTimes/gziphandler v1.1.1 // indirect
1919
github.com/StephenButtolph/canoto v0.15.0 // indirect
2020
github.com/VictoriaMetrics/fastcache v1.12.1 // indirect
21-
github.com/ava-labs/coreth v0.14.1-rc.2.0.20250307191323-71558f89e990 // indirect
21+
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250320164322-dac35665f8fd // indirect
2222
github.com/beorn7/perks v1.0.1 // indirect
2323
github.com/bits-and-blooms/bitset v1.10.0 // indirect
2424
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect

examples/morpheusvm/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax
6262
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
6363
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
6464
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
65-
github.com/ava-labs/avalanchego v1.12.3-0.20250317160941-6626b41b013f h1:K4LOeVz3V9fa14Kq3m6j/ZD/JXhO+8sY70IVHCcsqzM=
66-
github.com/ava-labs/avalanchego v1.12.3-0.20250317160941-6626b41b013f/go.mod h1:8eq+yF40tIMs1KAuSsS8h5VqT+kLMwyqliomV6RGpOo=
67-
github.com/ava-labs/coreth v0.14.1-rc.2.0.20250307191323-71558f89e990 h1:tMdOyCb0L5mbkesMCIvqeTPvQl3XzD0gEkbSkoMSBzk=
68-
github.com/ava-labs/coreth v0.14.1-rc.2.0.20250307191323-71558f89e990/go.mod h1:ilQRZoMu4fnSx5i8P+r/AhM+/WHhxm3n3tPQudoECb4=
65+
github.com/ava-labs/avalanchego v1.13.1-0.20250321175346-50f1601bf39a h1:CjuaPVnONeFUUN6za8+lLlrGd2+PmWC34Lf1jjY+WWA=
66+
github.com/ava-labs/avalanchego v1.13.1-0.20250321175346-50f1601bf39a/go.mod h1:fpV/GmbfIB3P53gkq6zFpyeQtyAsJIuZCCKnm7TJ4sQ=
67+
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250320164322-dac35665f8fd h1:pYNXZk+nbyvG+YJBAGeWUGPPuwKqJZVPd1uVwc6SZXs=
68+
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250320164322-dac35665f8fd/go.mod h1:292OEKMTXPHjWVleBouko2+bRp1oYnmy0npWnmq6pqk=
6969
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
7070
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
7171
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=

flake.lock

Lines changed: 0 additions & 59 deletions
This file was deleted.

flake.nix

Lines changed: 0 additions & 34 deletions
This file was deleted.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23.7
44

55
require (
66
github.com/StephenButtolph/canoto v0.15.0
7-
github.com/ava-labs/avalanchego v1.12.3-0.20250317160941-6626b41b013f
7+
github.com/ava-labs/avalanchego v1.12.3-0.20250321175346-50f1601bf39a
88
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593
99
github.com/gorilla/rpc v1.2.0
1010
github.com/gorilla/websocket v1.5.0
@@ -38,7 +38,7 @@ require (
3838
github.com/DataDog/zstd v1.5.2 // indirect
3939
github.com/NYTimes/gziphandler v1.1.1 // indirect
4040
github.com/VictoriaMetrics/fastcache v1.12.1 // indirect
41-
github.com/ava-labs/coreth v0.14.1-rc.2.0.20250307191323-71558f89e990 // indirect
41+
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250320164322-dac35665f8fd // indirect
4242
github.com/beorn7/perks v1.0.1 // indirect
4343
github.com/bits-and-blooms/bitset v1.10.0 // indirect
4444
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax
6262
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
6363
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
6464
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
65-
github.com/ava-labs/avalanchego v1.12.3-0.20250317160941-6626b41b013f h1:K4LOeVz3V9fa14Kq3m6j/ZD/JXhO+8sY70IVHCcsqzM=
66-
github.com/ava-labs/avalanchego v1.12.3-0.20250317160941-6626b41b013f/go.mod h1:8eq+yF40tIMs1KAuSsS8h5VqT+kLMwyqliomV6RGpOo=
67-
github.com/ava-labs/coreth v0.14.1-rc.2.0.20250307191323-71558f89e990 h1:tMdOyCb0L5mbkesMCIvqeTPvQl3XzD0gEkbSkoMSBzk=
68-
github.com/ava-labs/coreth v0.14.1-rc.2.0.20250307191323-71558f89e990/go.mod h1:ilQRZoMu4fnSx5i8P+r/AhM+/WHhxm3n3tPQudoECb4=
65+
github.com/ava-labs/avalanchego v1.12.3-0.20250321175346-50f1601bf39a h1:KSpG4lheMcV3oWrJJQyDyzx+JqSzjJPZEpi7UkSvE8I=
66+
github.com/ava-labs/avalanchego v1.12.3-0.20250321175346-50f1601bf39a/go.mod h1:fpV/GmbfIB3P53gkq6zFpyeQtyAsJIuZCCKnm7TJ4sQ=
67+
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250320164322-dac35665f8fd h1:pYNXZk+nbyvG+YJBAGeWUGPPuwKqJZVPd1uVwc6SZXs=
68+
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250320164322-dac35665f8fd/go.mod h1:292OEKMTXPHjWVleBouko2+bRp1oYnmy0npWnmq6pqk=
6969
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
7070
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
7171
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=

0 commit comments

Comments
 (0)