Skip to content

Commit 0fa9b71

Browse files
qdm12ceyonur
andauthored
chore: release v0.7.3-rc.0 (#1537)
Co-authored-by: Ceyhun Onur <[email protected]>
1 parent 7d48dfa commit 0fa9b71

14 files changed

+264
-121
lines changed

.envrc

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

.github/workflows/tests.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ jobs:
3838
run: |
3939
go mod tidy
4040
git diff --exit-code
41-
- name: Ensure consistent avalanchego version
42-
shell: bash
43-
run: |
44-
bash -x ./scripts/update_avalanchego_version.sh
45-
git diff --exit-code
4641
4742
unit_test:
4843
name: Golang Unit Tests (${{ matrix.os }})
@@ -151,15 +146,18 @@ jobs:
151146
shell: bash
152147
run: ./scripts/build.sh
153148
- name: Run Warp E2E Tests
154-
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@50f1601bf39a106d066012b4ef470c1058f5005a
149+
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@v1.11.13
155150
with:
156-
run: ./scripts/run_ginkgo_warp.sh
157-
run_env: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego
158-
artifact_prefix: warp
159-
prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }}
151+
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego ./scripts/run_ginkgo_warp.sh
152+
prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }}
160153
prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }}
161-
loki_username: ${{ secrets.LOKI_ID || '' }}
154+
loki_id: ${{ secrets.LOKI_ID || '' }}
162155
loki_password: ${{ secrets.LOKI_PASSWORD || '' }}
156+
- name: Upload tmpnet network dir for warp testing
157+
uses: ava-labs/avalanchego/.github/actions/upload-tmpnet-artifact@v1-actions
158+
if: always()
159+
with:
160+
name: warp-tmpnet-data
163161
e2e_load:
164162
name: e2e load tests
165163
runs-on: ubuntu-latest
@@ -179,15 +177,18 @@ jobs:
179177
shell: bash
180178
run: ./scripts/build.sh
181179
- name: Run E2E Load Tests
182-
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@50f1601bf39a106d066012b4ef470c1058f5005a
180+
uses: ava-labs/avalanchego/.github/actions/run-monitored-tmpnet-cmd@v1.11.13
183181
with:
184-
run: ./scripts/run_ginkgo_load.sh
185-
run_env: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego
186-
artifact_prefix: load
187-
prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }}
182+
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego ./scripts/run_ginkgo_load.sh
183+
prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }}
188184
prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }}
189-
loki_username: ${{ secrets.LOKI_ID || '' }}
185+
loki_id: ${{ secrets.LOKI_ID || '' }}
190186
loki_password: ${{ secrets.LOKI_PASSWORD || '' }}
187+
- name: Upload tmpnet network dir for load testing
188+
uses: ava-labs/avalanchego/.github/actions/upload-tmpnet-artifact@v1-actions
189+
if: always()
190+
with:
191+
name: load-tmpnet-data
191192
test_build_image:
192193
name: Image build
193194
runs-on: ubuntu-latest

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,3 @@ diffs/
5858

5959
# clone used for antithesis image builds
6060
avalanchego/
61-
62-
.direnv

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The Subnet EVM runs in a separate process from the main AvalancheGo process and
2121
[v0.7.0] [email protected] (Protocol Version: 38)
2222
[v0.7.1] [email protected] (Protocol Version: 39)
2323
[v0.7.2] [email protected]/1.13.0-fuji (Protocol Version: 39)
24+
[v0.7.3] [email protected]/1.13.0 (Protocol Version: 39)
2425
```
2526

2627
## API
@@ -84,5 +85,5 @@ To run a local network, it is recommended to use the [avalanche-cli](https://git
8485

8586
There are two options when using the Avalanche-CLI:
8687

87-
1. Use an official Subnet-EVM release: https://docs.avax.network/subnets/build-first-subnet
88-
2. Build and deploy a locally built (and optionally modified) version of Subnet-EVM: https://docs.avax.network/subnets/create-custom-subnet
88+
1. Use an official Subnet-EVM release: <https://docs.avax.network/subnets/build-first-subnet>
89+
2. Build and deploy a locally built (and optionally modified) version of Subnet-EVM: <https://docs.avax.network/subnets/create-custom-subnet>

bin/tmpnetctl

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

compatibility.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"rpcChainVMProtocolVersion": {
3+
"v0.7.3": 39,
34
"v0.7.2": 39,
45
"v0.7.1": 39,
56
"v0.7.0": 38

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.23.6
55
require (
66
github.com/VictoriaMetrics/fastcache v1.12.1
77
github.com/antithesishq/antithesis-sdk-go v0.3.8
8-
github.com/ava-labs/avalanchego v1.12.3-0.20250321175346-50f1601bf39a
8+
github.com/ava-labs/avalanchego v1.13.0
99
github.com/cespare/cp v0.1.0
1010
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233
1111
github.com/davecgh/go-spew v1.1.1
@@ -58,7 +58,7 @@ require (
5858
github.com/DataDog/zstd v1.5.2 // indirect
5959
github.com/NYTimes/gziphandler v1.1.1 // indirect
6060
github.com/StephenButtolph/canoto v0.15.0 // indirect
61-
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250321001337-7fa47ba3fa18 // indirect
61+
github.com/ava-labs/coreth v0.15.0-rc.0 // indirect
6262
github.com/beorn7/perks v1.0.1 // indirect
6363
github.com/bits-and-blooms/bitset v1.10.0 // indirect
6464
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/antithesishq/antithesis-sdk-go v0.3.8/go.mod h1:IUpT2DPAKh6i/YhSbt6Gl
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.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.20250321001337-7fa47ba3fa18 h1:OKWMFJZEalp9Kdw0tsKVU6Ky0inxqW/Wt0qCWQIxkZc=
68-
github.com/ava-labs/coreth v0.15.0-rc.0.0.20250321001337-7fa47ba3fa18/go.mod h1:2DHfOrbTkZiTyWG5xyZW/4zGV0+hnk92Fsbpfk6AJeg=
65+
github.com/ava-labs/avalanchego v1.13.0 h1:bUWMWLShC0ACa5bQgZdBEJf5lMn1lJIvFrolj3iqTZk=
66+
github.com/ava-labs/avalanchego v1.13.0/go.mod h1:fpV/GmbfIB3P53gkq6zFpyeQtyAsJIuZCCKnm7TJ4sQ=
67+
github.com/ava-labs/coreth v0.15.0-rc.0 h1:wabaNbSXcqhhO6Qg/9fnrgDNCuP3StwB5sls45dHbiI=
68+
github.com/ava-labs/coreth v0.15.0-rc.0/go.mod h1:gIGr+5WDNX1DrFvUMy53AtTpkxlM/8cNOD/PDIChKfM=
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=

plugin/evm/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var (
1111
// GitCommit is set by the build script
1212
GitCommit string
1313
// Version is the version of Subnet EVM
14-
Version string = "v0.7.2"
14+
Version string = "v0.7.3"
1515
)
1616

1717
func init() {

scripts/dev_shell.sh

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

scripts/run_prometheus.sh

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
# Starts a prometheus instance in agent-mode, forwarding to a central
6+
# instance. Intended to enable metrics collection from temporary networks running
7+
# locally and in CI.
8+
#
9+
# The prometheus instance will remain running in the background and will forward
10+
# metrics to the central instance for all tmpnet networks.
11+
#
12+
# To stop it:
13+
#
14+
# $ kill -9 `cat ~/.tmpnet/prometheus/run.pid` && rm ~/.tmpnet/prometheus/run.pid
15+
#
16+
17+
# e.g.,
18+
# PROMETHEUS_ID=<id> PROMETHEUS_PASSWORD=<password> ./scripts/run_prometheus.sh
19+
if ! [[ "$0" =~ scripts/run_prometheus.sh ]]; then
20+
echo "must be run from repository root"
21+
exit 255
22+
fi
23+
24+
PROMETHEUS_WORKING_DIR="${HOME}/.tmpnet/prometheus"
25+
PIDFILE="${PROMETHEUS_WORKING_DIR}"/run.pid
26+
27+
# First check if an agent-mode prometheus is already running. A single instance can collect
28+
# metrics from all local temporary networks.
29+
if pgrep --pidfile="${PIDFILE}" -f 'prometheus.*enable-feature=agent' &> /dev/null; then
30+
echo "prometheus is already running locally with --enable-feature=agent"
31+
exit 0
32+
fi
33+
34+
PROMETHEUS_URL="${PROMETHEUS_URL:-https://prometheus-poc.avax-dev.network}"
35+
if [[ -z "${PROMETHEUS_URL}" ]]; then
36+
echo "Please provide a value for PROMETHEUS_URL"
37+
exit 1
38+
fi
39+
40+
PROMETHEUS_ID="${PROMETHEUS_ID:-}"
41+
if [[ -z "${PROMETHEUS_ID}" ]]; then
42+
echo "Please provide a value for PROMETHEUS_ID"
43+
exit 1
44+
fi
45+
46+
PROMETHEUS_PASSWORD="${PROMETHEUS_PASSWORD:-}"
47+
if [[ -z "${PROMETHEUS_PASSWORD}" ]]; then
48+
echo "Plase provide a value for PROMETHEUS_PASSWORD"
49+
exit 1
50+
fi
51+
52+
# This was the LTS version when this script was written. Probably not
53+
# much reason to update it unless something breaks since the usage
54+
# here is only to collect metrics from temporary networks.
55+
VERSION="2.45.3"
56+
57+
# Ensure the prometheus command is locally available
58+
CMD=prometheus
59+
if ! command -v "${CMD}" &> /dev/null; then
60+
# Try to use a local version
61+
CMD="${PWD}/bin/prometheus"
62+
if ! command -v "${CMD}" &> /dev/null; then
63+
echo "prometheus not found, attempting to install..."
64+
65+
# Determine the arch
66+
if which sw_vers &> /dev/null; then
67+
echo "on macos, only amd64 binaries are available so rosetta is required on apple silicon machines."
68+
echo "to avoid using rosetta, install via homebrew: brew install prometheus"
69+
DIST=darwin
70+
else
71+
ARCH="$(uname -i)"
72+
if [[ "${ARCH}" != "x86_64" ]]; then
73+
echo "on linux, only amd64 binaries are available. manual installation of prometheus is required."
74+
exit 1
75+
else
76+
DIST="linux"
77+
fi
78+
fi
79+
80+
# Install the specified release
81+
PROMETHEUS_FILE="prometheus-${VERSION}.${DIST}-amd64"
82+
URL="https://github.com/prometheus/prometheus/releases/download/v${VERSION}/${PROMETHEUS_FILE}.tar.gz"
83+
curl -s -L "${URL}" | tar zxv -C /tmp > /dev/null
84+
mkdir -p "$(dirname "${CMD}")"
85+
cp /tmp/"${PROMETHEUS_FILE}/prometheus" "${CMD}"
86+
fi
87+
fi
88+
89+
# Configure prometheus
90+
FILE_SD_PATH="${PROMETHEUS_WORKING_DIR}/file_sd_configs"
91+
mkdir -p "${FILE_SD_PATH}"
92+
93+
echo "writing configuration..."
94+
cat >"${PROMETHEUS_WORKING_DIR}"/prometheus.yaml <<EOL
95+
# my global config
96+
global:
97+
# Make sure this value takes into account the network-shutdown-delay in tests/fixture/e2e/env.go
98+
scrape_interval: 10s # Default is every 1 minute.
99+
evaluation_interval: 10s # The default is every 1 minute.
100+
scrape_timeout: 5s # The default is every 10s
101+
102+
scrape_configs:
103+
- job_name: "avalanchego"
104+
metrics_path: "/ext/metrics"
105+
file_sd_configs:
106+
- files:
107+
- '${FILE_SD_PATH}/*.json'
108+
109+
remote_write:
110+
- url: "${PROMETHEUS_URL}/api/v1/write"
111+
basic_auth:
112+
username: "${PROMETHEUS_ID}"
113+
password: "${PROMETHEUS_PASSWORD}"
114+
EOL
115+
116+
echo "starting prometheus..."
117+
cd "${PROMETHEUS_WORKING_DIR}"
118+
nohup "${CMD}" --config.file=prometheus.yaml --web.listen-address=localhost:0 --enable-feature=agent > prometheus.log 2>&1 &
119+
echo $! > "${PIDFILE}"
120+
echo "running with pid $(cat "${PIDFILE}")"

0 commit comments

Comments
 (0)