From e8904ae11aa144ae601bb9795682d11c3fb178ee Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Tue, 9 Apr 2024 16:32:28 -0400 Subject: [PATCH] Update versions for v1.11.4 (#2916) --- .github/workflows/build-linux-binaries.yml | 2 +- .github/workflows/build-macos-release.yml | 2 +- .github/workflows/build-public-ami.yml | 2 +- .../workflows/build-ubuntu-amd64-release.yml | 2 +- .../workflows/build-ubuntu-arm64-release.yml | 2 +- .github/workflows/build-win-release.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/fuzz.yml | 2 +- .github/workflows/fuzz_merkledb.yml | 2 +- CONTRIBUTING.md | 2 +- Dockerfile | 2 +- README.md | 2 +- RELEASES.md | 84 +++++++++++++++++++ go.mod | 2 +- go.sum | 4 +- proto/Dockerfile.buf | 2 +- scripts/build_avalanche.sh | 3 +- tests/antithesis/Dockerfile.node | 2 +- tests/antithesis/Dockerfile.workload | 2 +- version/compatibility.json | 3 +- version/constants.go | 2 +- 22 files changed, 108 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-linux-binaries.yml b/.github/workflows/build-linux-binaries.yml index 2f6f73b50be..048c7f1f36a 100644 --- a/.github/workflows/build-linux-binaries.yml +++ b/.github/workflows/build-linux-binaries.yml @@ -11,7 +11,7 @@ on: - "*" env: - go_version: '~1.21.8' + go_version: '~1.21.9' jobs: build-x86_64-binaries-tarball: diff --git a/.github/workflows/build-macos-release.yml b/.github/workflows/build-macos-release.yml index 05616745cbd..233a96bca85 100644 --- a/.github/workflows/build-macos-release.yml +++ b/.github/workflows/build-macos-release.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '~1.21.8' + go-version: '~1.21.9' check-latest: true - run: go version diff --git a/.github/workflows/build-public-ami.yml b/.github/workflows/build-public-ami.yml index 84273d9900b..321e28d2c03 100644 --- a/.github/workflows/build-public-ami.yml +++ b/.github/workflows/build-public-ami.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '~1.21.8' + go-version: '~1.21.9' check-latest: true - run: go version diff --git a/.github/workflows/build-ubuntu-amd64-release.yml b/.github/workflows/build-ubuntu-amd64-release.yml index 73faff76a6c..29813eb197f 100644 --- a/.github/workflows/build-ubuntu-amd64-release.yml +++ b/.github/workflows/build-ubuntu-amd64-release.yml @@ -11,7 +11,7 @@ on: - "*" env: - go_version: '~1.21.8' + go_version: '~1.21.9' jobs: build-jammy-amd64-package: diff --git a/.github/workflows/build-ubuntu-arm64-release.yml b/.github/workflows/build-ubuntu-arm64-release.yml index 5bdaf0c6228..b558720a432 100644 --- a/.github/workflows/build-ubuntu-arm64-release.yml +++ b/.github/workflows/build-ubuntu-arm64-release.yml @@ -11,7 +11,7 @@ on: - "*" env: - go_version: '~1.21.8' + go_version: '~1.21.9' jobs: build-jammy-arm64-package: diff --git a/.github/workflows/build-win-release.yml b/.github/workflows/build-win-release.yml index c40366e3ee6..2ef6031cfbe 100644 --- a/.github/workflows/build-win-release.yml +++ b/.github/workflows/build-win-release.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '~1.21.8' + go-version: '~1.21.9' check-latest: true - run: go version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f430c32cf1..a7c9e6142fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ concurrency: cancel-in-progress: true env: - go_version: '~1.21.8' + go_version: '~1.21.9' grafana_url: https://grafana-experimental.avax-dev.network/d/kBQpRdWnk/avalanche-main-dashboard?orgId=1&refresh=10s&var-filter=is_ephemeral_node%7C%3D%7Cfalse&var-filter=gh_repo%7C%3D%7Cava-labs%2Favalanchego&var-filter=gh_run_id%7C%3D%7C${{ github.run_id }}&var-filter=gh_run_attempt%7C%3D%7C${{ github.run_attempt }} jobs: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 52eb42989f3..470226b4268 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -45,7 +45,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@v5 with: - go-version: '~1.21.8' + go-version: '~1.21.9' check-latest: true # Initializes the CodeQL tools for scanning. diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 58b52a8aa94..23e0dc6ccea 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '~1.21.8' + go-version: '~1.21.9' check-latest: true - name: Run fuzz tests shell: bash diff --git a/.github/workflows/fuzz_merkledb.yml b/.github/workflows/fuzz_merkledb.yml index 7659f07a7c1..c0dbc1dfdb1 100644 --- a/.github/workflows/fuzz_merkledb.yml +++ b/.github/workflows/fuzz_merkledb.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '~1.21.8' + go-version: '~1.21.9' check-latest: true - name: Run merkledb fuzz tests shell: bash diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 444065b6718..a56527948c8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ To start developing on AvalancheGo, you'll need a few things installed. -- Golang version >= 1.21.8 +- Golang version >= 1.21.9 - gcc - g++ diff --git a/Dockerfile b/Dockerfile index e0c1c941b9f..2a8c59709b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # README.md # go.mod # ============= Compilation Stage ================ -FROM golang:1.21.8-bullseye AS builder +FROM golang:1.21.9-bullseye AS builder WORKDIR /build # Copy and download avalanche dependencies using go mod diff --git a/README.md b/README.md index 0b0149030b4..6c820ac8a17 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The minimum recommended hardware specification for nodes connected to Mainnet is If you plan to build AvalancheGo from source, you will also need the following software: -- [Go](https://golang.org/doc/install) version >= 1.21.8 +- [Go](https://golang.org/doc/install) version >= 1.21.9 - [gcc](https://gcc.gnu.org/) - g++ diff --git a/RELEASES.md b/RELEASES.md index 0d8f251825b..fac68f981f5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,5 +1,89 @@ # Release Notes +## [v1.11.4](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.4) + +This version is backwards compatible to [v1.11.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.0). It is optional, but encouraged. + +The plugin version is unchanged at `35` and is compatible with version `v1.11.3`. + +### APIs + +- Removed metrics for each chainID: + - `avalanche_{chainID}_bs_eta_fetching_complete` + - `avalanche_{chainID}_block_eta_execution_complete` + - `avalanche_{chainID}_block_jobs_cache_get_count` + - `avalanche_{chainID}_block_jobs_cache_get_sum` + - `avalanche_{chainID}_block_jobs_cache_hit` + - `avalanche_{chainID}_block_jobs_cache_len` + - `avalanche_{chainID}_block_jobs_cache_miss` + - `avalanche_{chainID}_block_jobs_cache_portion_filled` + - `avalanche_{chainID}_block_jobs_cache_put_count` + - `avalanche_{chainID}_block_jobs_cache_put_sum` +- Added finer grained tracing of merkledb trie construction and hashing + - renamed `MerkleDB.view.calculateNodeIDs` to `MerkleDB.view.applyValueChanges` + - Added `MerkleDB.view.calculateNodeChanges` + - Added `MerkleDB.view.hashChangedNodes` + +### Fixes + +- Fixed p2p SDK handling of cancelled `AppRequest` messages +- Fixed merkledb crash recovery + +### What's Changed + +- Bump github.com/consensys/gnark-crypto from 0.10.0 to 0.12.1 by @dependabot in https://github.com/ava-labs/avalanchego/pull/2862 +- Push antithesis images by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2864 +- Revert removal of legacy P-chain block parsing by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2866 +- `tmpnet`: Ensure nodes are properly detached from the parent process by @marun in https://github.com/ava-labs/avalanchego/pull/2859 +- indicies -> indices by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2873 +- Reindex P-chain blocks by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2869 +- Add detail to tmpnet metrics documentation by @marun in https://github.com/ava-labs/avalanchego/pull/2854 +- docs migration by @meaghanfitzgerald in https://github.com/ava-labs/avalanchego/pull/2845 +- Implement interval tree to replace bootstrapping jobs queue by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2756 +- Cleanup codec constants by @abi87 in https://github.com/ava-labs/avalanchego/pull/2699 +- Update health API readme by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2875 +- `tmpnet`: Improve subnet configuration by @marun in https://github.com/ava-labs/avalanchego/pull/2871 +- Add tests for inefficient string formatting by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2878 +- [vms/platformvm] Declare `maxPageSize` in `service.go` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2881 +- [vms/platformvm] Use `wallet` sdk in `txstest.Builder` by @abi87 in https://github.com/ava-labs/avalanchego/pull/2751 +- Optimize encodeUint by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2882 +- [components/avax] Remove `AtomicUTXOManager` interface by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2884 +- Remove merkledb codec struct by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2883 +- [vms/platformvm] Minimize exported functions in `txstest` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2888 +- `ci`: Skip monitoring if secrets are not present by @marun in https://github.com/ava-labs/avalanchego/pull/2880 +- Optimize merkledb hashing by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2886 +- [vms/platformvm] Miscellaneous testing cleanups by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2891 +- Move functions around so that encode and decode are next to each other by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2892 +- Remove memory alloc from encodeDBNode by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2893 +- Interval tree syncing integration by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2855 +- Optimize hashing of leaf nodes by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2894 +- Improve performance of marshalling small keys by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2895 +- Improve tracing of merkledb trie updates by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2897 +- Remove usage of bytes.Buffer and bytes.Reader by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2896 +- Optimize key creation in hashing by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2899 +- Move bootstrapping queue out of common by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2856 +- Conditionally allocate WaitGroup memory by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2901 +- Reuse key buffers during hashing by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2902 +- Remove AddEphemeralNode by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2887 +- Rename linkedhashmap package to `linked` by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2907 +- [tmpnet] Misc cleanup to support xsvm warp test PR by @marun in https://github.com/ava-labs/avalanchego/pull/2903 +- Implement generic `linked.List` by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2908 +- Remove full message from error logs by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2912 +- Use generic linked list by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2909 +- Avoid allocating new list entries by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2910 +- Remove `linked.Hashmap` locking by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2911 +- Fix MerkleDB crash recovery by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2913 +- Remove cancellation for Send*AppRequest messages by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2915 +- Add `.Clear()` to `linked.Hashmap` by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2917 +- Allow pre-allocating `linked.Hashmap` by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2918 +- Fix comment and remove unneeded allocation by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2919 +- Implement `utils.BytesPool` to replace `sync.Pool` for byte slices by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2920 +- Refactor `MerkleDB.commitChanges` by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2921 +- Remove value_node_db batch by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2922 +- Remove memory allocations from merkledb iteration by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2925 + +**Full Changelog**: https://github.com/ava-labs/avalanchego/compare/v1.11.3...v1.11.4 + ## [v1.11.3](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.3) This version is backwards compatible to [v1.11.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.0). It is optional, but encouraged. diff --git a/go.mod b/go.mod index 154b2b63763..0d952c79271 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ go 1.21 require ( github.com/DataDog/zstd v1.5.2 github.com/NYTimes/gziphandler v1.1.1 - github.com/ava-labs/coreth v0.13.2-rc.2 + github.com/ava-labs/coreth v0.13.3-rc.0 github.com/ava-labs/ledger-avalanche/go v0.0.0-20231102202641-ae2ebdaeac34 github.com/btcsuite/btcd/btcutil v1.1.3 github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811 diff --git a/go.sum b/go.sum index bca37ada15a..50ce99a0577 100644 --- a/go.sum +++ b/go.sum @@ -60,8 +60,8 @@ github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/ava-labs/coreth v0.13.2-rc.2 h1:GmXSyDykDUuDyW7933T8lK7Fp6/4k/IcHhLJjkvjUYI= -github.com/ava-labs/coreth v0.13.2-rc.2/go.mod h1:jOapwtgvroqZ2U8PJpoaq1PHrUFOrlgshUWQfM3nba0= +github.com/ava-labs/coreth v0.13.3-rc.0 h1:pQQjrKnm8u0Rqr+8rTuSYbvQB39RVVSV3e+0DEnIBIs= +github.com/ava-labs/coreth v0.13.3-rc.0/go.mod h1:IX8uWkY7QRcrFxEnp2OGoVwepz6zoZZp4a+x3bH+PFk= github.com/ava-labs/ledger-avalanche/go v0.0.0-20231102202641-ae2ebdaeac34 h1:mg9Uw6oZFJKytJxgxnl3uxZOs/SB8CVHg6Io4Tf99Zc= github.com/ava-labs/ledger-avalanche/go v0.0.0-20231102202641-ae2ebdaeac34/go.mod h1:pJxaT9bUgeRNVmNRgtCHb7sFDIRKy7CzTQVi8gGNT6g= github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= diff --git a/proto/Dockerfile.buf b/proto/Dockerfile.buf index c7c5b2e0019..b4e0caace17 100644 --- a/proto/Dockerfile.buf +++ b/proto/Dockerfile.buf @@ -6,7 +6,7 @@ RUN apt-get update && apt -y install bash curl unzip git WORKDIR /opt RUN \ - curl -L https://go.dev/dl/go1.21.8.linux-amd64.tar.gz > golang.tar.gz && \ + curl -L https://go.dev/dl/go1.21.9.linux-amd64.tar.gz > golang.tar.gz && \ mkdir golang && \ tar -zxvf golang.tar.gz -C golang/ diff --git a/scripts/build_avalanche.sh b/scripts/build_avalanche.sh index 094fa5467a2..54add16a184 100755 --- a/scripts/build_avalanche.sh +++ b/scripts/build_avalanche.sh @@ -27,9 +27,10 @@ done # tests/antithesis/Dockerfile.node # tests/antithesis/Dockerfile.workload # Dockerfile +# CONTRIBUTING.md # README.md # go.mod -go_version_minimum="1.21.8" +go_version_minimum="1.21.9" go_version() { go version | sed -nE -e 's/[^0-9.]+([0-9.]+).+/\1/p' diff --git a/tests/antithesis/Dockerfile.node b/tests/antithesis/Dockerfile.node index 3b32041dd3c..0ccd2155c12 100644 --- a/tests/antithesis/Dockerfile.node +++ b/tests/antithesis/Dockerfile.node @@ -8,7 +8,7 @@ FROM docker.io/antithesishq/go-instrumentor AS instrumentor # README.md # go.mod # ============= Compilation Stage ================ -FROM golang:1.21.8-bullseye AS builder +FROM golang:1.21.9-bullseye AS builder WORKDIR /build # Copy and download avalanche dependencies using go mod diff --git a/tests/antithesis/Dockerfile.workload b/tests/antithesis/Dockerfile.workload index 755c931c1a0..0d13280a034 100644 --- a/tests/antithesis/Dockerfile.workload +++ b/tests/antithesis/Dockerfile.workload @@ -6,7 +6,7 @@ # README.md # go.mod # ============= Compilation Stage ================ -FROM golang:1.21.8-bullseye AS builder +FROM golang:1.21.9-bullseye AS builder WORKDIR /build # Copy and download avalanche dependencies using go mod diff --git a/version/compatibility.json b/version/compatibility.json index ea69228f3cf..9bc827fd1dd 100644 --- a/version/compatibility.json +++ b/version/compatibility.json @@ -1,6 +1,7 @@ { "35": [ - "v1.11.3" + "v1.11.3", + "v1.11.4" ], "34": [ "v1.11.2" diff --git a/version/constants.go b/version/constants.go index 48bca40c6a9..09db44e913e 100644 --- a/version/constants.go +++ b/version/constants.go @@ -26,7 +26,7 @@ var ( Current = &Semantic{ Major: 1, Minor: 11, - Patch: 3, + Patch: 4, } CurrentApp = &Application{ Name: Client,