From a69772fb33b3dc2538b1e54b7547ddb0f27398d0 Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Tue, 17 Dec 2024 17:57:39 -0500 Subject: [PATCH] Update versions for v1.12.1 (#3607) --- .github/workflows/ci.yml | 29 ++++++++++++++--------------- RELEASES.md | 29 +++++++++++++++++++++++++++++ scripts/tests.upgrade.sh | 4 ++-- utils/constants/acps.go | 23 +++++++++-------------- version/compatibility.json | 3 ++- version/constants.go | 2 +- 6 files changed, 57 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d890976d159c..255fa627e65e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,21 +117,20 @@ jobs: - name: Build AvalancheGo Binary shell: bash run: ./scripts/build.sh - # TODO: Reactivate test once v1.12.0 is published - # - name: Run e2e tests - # uses: ./.github/actions/run-monitored-tmpnet-cmd - # with: - # run: ./scripts/tests.upgrade.sh - # filter_by_owner: avalanchego-e2e - # prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }} - # prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} - # loki_id: ${{ secrets.LOKI_ID || '' }} - # loki_password: ${{ secrets.LOKI_PASSWORD || '' }} - # - name: Upload tmpnet network dir - # uses: ./.github/actions/upload-tmpnet-artifact - # if: always() - # with: - # name: upgrade-tmpnet-data + - name: Run e2e tests + uses: ./.github/actions/run-monitored-tmpnet-cmd + with: + run: ./scripts/tests.upgrade.sh + filter_by_owner: avalanchego-e2e + prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }} + prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} + loki_id: ${{ secrets.LOKI_ID || '' }} + loki_password: ${{ secrets.LOKI_PASSWORD || '' }} + - name: Upload tmpnet network dir + uses: ./.github/actions/upload-tmpnet-artifact + if: always() + with: + name: upgrade-tmpnet-data Lint: runs-on: ubuntu-latest steps: diff --git a/RELEASES.md b/RELEASES.md index ad51947a56af..ead7979ee779 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,5 +1,34 @@ # Release Notes +## [v1.12.1](https://github.com/ava-labs/avalanchego/releases/tag/v1.12.1) + +This version is backwards compatible to [v1.12.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.12.0). It is optional, but encouraged. + +The plugin version is unchanged at `38` and is compatible with version `v1.12.0`. + +### Configs + +- Added PebbleDB option `sync` which defaults to `true` + +### Fixes + +- Fixed P-chain mempool verification to disallow transactions that exceed the available chain capacity + +### What's Changed + +- Expose test network cfg by @cam-schultz in https://github.com/ava-labs/avalanchego/pull/3573 +- encapsulate signer by @richardpringle in https://github.com/ava-labs/avalanchego/pull/3576 +- use pebble nosync by default by @ceyonur in https://github.com/ava-labs/avalanchego/pull/3581 +- fix: feeState API call in docs by @ashucoder9 in https://github.com/ava-labs/avalanchego/pull/3596 +- Format Service.MD by @samliok in https://github.com/ava-labs/avalanchego/pull/3599 +- Verify tx gas isn't too large in VerifyTx by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3604 +- Add already implemented merkledb.View to MerkleDB interface by @aaronbuchwald in https://github.com/ava-labs/avalanchego/pull/3593 +- Add tempdir in for chain ctx data dir by @aaronbuchwald in https://github.com/ava-labs/avalanchego/pull/3594 +- Improve block building and verification logging by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3605 +- Bump golang.org/x/crypto from 0.26.0 to 0.31.0 by @dependabot in https://github.com/ava-labs/avalanchego/pull/3608 + +**Full Changelog**: https://github.com/ava-labs/avalanchego/compare/v1.12.0...v1.12.1 + ## [v1.12.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.12.0) This upgrade consists of the following Avalanche Community Proposals (ACPs): diff --git a/scripts/tests.upgrade.sh b/scripts/tests.upgrade.sh index 5ca8a0f1a24d..64e53c6537ad 100755 --- a/scripts/tests.upgrade.sh +++ b/scripts/tests.upgrade.sh @@ -16,8 +16,8 @@ fi # local network, this flag must be updated to the last compatible # version with the latest code. # -# v1.11.3 fixes a regression in Coreth genesis for custom networks. -DEFAULT_VERSION="1.11.3" +# v1.12.0 is the earliest version that supports Etna. +DEFAULT_VERSION="1.12.0" VERSION="${1:-${DEFAULT_VERSION}}" if [[ -z "${VERSION}" ]]; then diff --git a/utils/constants/acps.go b/utils/constants/acps.go index b0da1fcd18cf..97eedd1f6b6d 100644 --- a/utils/constants/acps.go +++ b/utils/constants/acps.go @@ -10,6 +10,7 @@ var ( // // See: https://github.com/orgs/avalanche-foundation/projects/1 ActivatedACPs = set.Of[uint32]( + // Durango: 23, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/23-p-chain-native-transfers/README.md 24, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/24-shanghai-eips/README.md 25, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/25-vm-application-errors/README.md @@ -17,13 +18,8 @@ var ( 31, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/31-enable-subnet-ownership-transfer/README.md 41, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/41-remove-pending-stakers/README.md 62, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/62-disable-addvalidatortx-and-adddelegatortx/README.md - ) - // CurrentACPs is the set of ACPs that are currently, at the time of - // release, marked as implementable and not activated. - // - // See: https://github.com/orgs/avalanche-foundation/projects/1 - CurrentACPs = set.Of[uint32]( + // Etna: 77, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/77-reinventing-subnets/README.md 103, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/103-dynamic-fees/README.md 118, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/118-warp-signature-request/README.md @@ -32,13 +28,12 @@ var ( 151, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/151-use-current-block-pchain-height-as-context/README.md ) + // CurrentACPs is the set of ACPs that are currently, at the time of + // release, marked as implementable and not activated. + // + // See: https://github.com/orgs/avalanche-foundation/projects/1 + CurrentACPs = set.Of[uint32]() + // ScheduledACPs are the ACPs included into the next upgrade. - ScheduledACPs = set.Of[uint32]( - 77, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/77-reinventing-subnets/README.md - 103, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/103-dynamic-fees/README.md - 118, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/118-warp-signature-request/README.md - 125, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/125-basefee-reduction/README.md - 131, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/131-cancun-eips/README.md - 151, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/151-use-current-block-pchain-height-as-context/README.md - ) + ScheduledACPs = set.Of[uint32]() ) diff --git a/version/compatibility.json b/version/compatibility.json index 0a8f5e554534..4528a75a0b79 100644 --- a/version/compatibility.json +++ b/version/compatibility.json @@ -1,7 +1,8 @@ { "38": [ "v1.11.13", - "v1.12.0" + "v1.12.0", + "v1.12.1" ], "37": [ "v1.11.11", diff --git a/version/constants.go b/version/constants.go index 9424b1616a14..ca35783a77c7 100644 --- a/version/constants.go +++ b/version/constants.go @@ -23,7 +23,7 @@ var ( Current = &Semantic{ Major: 1, Minor: 12, - Patch: 0, + Patch: 1, } CurrentApp = &Application{ Name: Client,