Skip to content

Commit

Permalink
Merge pull request #5 from 0xPolygon/mardizzone/upstream-v0.38.15
Browse files Browse the repository at this point in the history
Merge upstream v0.38.15
  • Loading branch information
marcello33 authored Nov 25, 2024
2 parents a65a54e + 62005f3 commit c53688a
Show file tree
Hide file tree
Showing 255 changed files with 5,740 additions and 3,027 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
([\#1584](https://github.com/cometbft/cometbft/pull/1584))
- `[config]` Add mempool parameters `experimental_max_gossip_connections_to_persistent_peers` and
`experimental_max_gossip_connections_to_non_persistent_peers` for limiting the number of peers to
which the node gossip transactions.
which the node gossip transactions.
([\#1558](https://github.com/cometbft/cometbft/pull/1558))
([\#1584](https://github.com/cometbft/cometbft/pull/1584))
3 changes: 3 additions & 0 deletions .changelog/v0.38.10/bug-fixes/3002-invalid-txs-results.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[rpc]` Fix an issue where a legacy ABCI response, created on `v0.37` or before, is not returned properly in `v0.38` and up
on the `/block_results` RPC endpoint.
([\#3002](https://github.com/cometbft/cometbft/issues/3002))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[blocksync]` Do not stay in blocksync if the node's validator voting power
is high enough to block the chain while it is not online
([\#3406](https://github.com/cometbft/cometbft/pull/3406))
3 changes: 3 additions & 0 deletions .changelog/v0.38.10/bug-fixes/486-p2p-max-outbound.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[p2p]` Node respects configured `max_num_outbound_peers` limit when dialing
peers provided by a seed node
([\#486](https://github.com/cometbft/cometbft/issues/486))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[p2p/conn]` Update send monitor, used for sending rate limiting, once per batch of packets sent
([\#3382](https://github.com/cometbft/cometbft/pull/3382))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[libs/pubsub]` Allow dash (`-`) in event tags
([\#3401](https://github.com/cometbft/cometbft/issues/3401))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[p2p/conn]` Remove the usage of a synchronous pool of buffers in secret connection, storing instead the buffer in the connection struct. This reduces the synchronization primitive usage, speeding up the code.
([\#3403](https://github.com/cometbft/cometbft/issues/3403))
5 changes: 5 additions & 0 deletions .changelog/v0.38.10/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*July 16, 2024*

This release fixes a bug in `v0.38.x` that prevented ABCI responses from being
correctly read when upgrading from `v0.37.x` or below. It also includes a few other
bug fixes and performance improvements.
2 changes: 2 additions & 0 deletions .changelog/v0.38.11/bug-fixes/3565-extension-iff-enabled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[types]` Only check IFF vote is a non-nil Precommit if extensionsEnabled
types ([\#3565](https://github.com/cometbft/cometbft/issues/3565))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[indexer]` Fixed ineffective select break statements; they now
point to their enclosing for loop label to exit
([\#3544](https://github.com/cometbft/cometbft/issues/3544))
7 changes: 7 additions & 0 deletions .changelog/v0.38.11/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*August 12, 2024*

This release fixes a panic in consensus where CometBFT would previously panic
if there's no extension signature in non-nil Precommit EVEN IF vote extensions
themselves are disabled.

It also includes a few other bug fixes and performance improvements.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[light]` Cross-check proposer priorities in retrieved validator sets
([\#ASA-2024-009](https://github.com/cometbft/cometbft/security/advisories/GHSA-g5xx-c4hv-9ccc))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `[privval]` Ignore duplicate privval listen when already connected ([\#3828](https://github.com/cometbft/cometbft/issues/3828)
4 changes: 4 additions & 0 deletions .changelog/v0.38.12/dependencies/3728-update-btcec-v2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- `[crypto/secp256k1]` Adjust to breaking interface changes in
`btcec/v2` latest release, while avoiding breaking changes to
local CometBFT functions
([\#3728](https://github.com/cometbft/cometbft/pull/3728))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[types]` Check that proposer is one of the validators in `ValidateBasic`
([\#ASA-2024-009](https://github.com/cometbft/cometbft/security/advisories/GHSA-g5xx-c4hv-9ccc))
2 changes: 2 additions & 0 deletions .changelog/v0.38.12/improvements/3819-e2e-log-level.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[e2e]` Add `log_level` option to manifest file
([#3819](https://github.com/cometbft/cometbft/pull/3819)).
2 changes: 2 additions & 0 deletions .changelog/v0.38.12/improvements/3836-e2e-log-format.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[e2e]` Add `log_format` option to manifest file
([#3836](https://github.com/cometbft/cometbft/issues/3836)).
4 changes: 4 additions & 0 deletions .changelog/v0.38.12/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*September 3, 2024*

This release includes a security fix for the light client and is recommended
for all users.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[metrics]` Call unused `rejected_txs` metric in mempool
([\#4019](https://github.com/cometbft/cometbft/pull/4019))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[state/indexer]` Fix the tx_search results not returning all results by changing the logic in the indexer to copy the key and values instead of reusing an iterator. This issue only arises when upgrading to cometbft-db v0.13 or later.
([\#4295](https://github.com/cometbft/cometbft/issues/4295)). Special thanks to @faddat for reporting the issue.

2 changes: 2 additions & 0 deletions .changelog/v0.38.13/dependencies/4059-update-cometbft-db.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[go/runtime]` Bump Go version to 1.22
([\#4073](https://github.com/cometbft/cometbft/pull/4073))
2 changes: 2 additions & 0 deletions .changelog/v0.38.13/dependencies/4321-update-cometbft-db.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Bump cometbft-db version to v0.14.1
([\#4321](https://github.com/cometbft/cometbft/pull/4321))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `[crypto]` use decred secp256k1 directly ([#4294](https://github.com/cometbft/cometbft/pull/4294))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[metrics]` Add `evicted_txs` metric to mempool
([\#4019](https://github.com/cometbft/cometbft/pull/4019))
2 changes: 2 additions & 0 deletions .changelog/v0.38.13/improvements/4123-mempool-is-full-log.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[log]` Change "mempool is full" log to debug level
([\#4123](https://github.com/cometbft/cometbft/pull/4123)) Special thanks to @yihuang.
7 changes: 7 additions & 0 deletions .changelog/v0.38.13/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*October 24, 2024*

This patch release addresses the issue where tx_search was not returning all results, which only arises when upgrading
to CometBFT-DB version 0.13 or later. It includes a fix in the state indexer to resolve this problem. We recommend
upgrading to this patch release if you are affected by this issue.


Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[consensus]` Do not panic if the validator index of a `Vote` message is out
of bounds, when vote extensions are enabled
([\#ABC-0021](https://github.com/cometbft/cometbft/security/advisories/GHSA-p7mv-53f2-4cwj))
2 changes: 2 additions & 0 deletions .changelog/v0.38.14/dependencies/4297-update-cometbft-db.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Bump cometbft-db version to v0.15.0
([\#4297](https://github.com/cometbft/cometbft/pull/4297))
2 changes: 2 additions & 0 deletions .changelog/v0.38.14/dependencies/4297-update-go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[go/runtime]` Bump Go version to 1.23
([\#4297](https://github.com/cometbft/cometbft/pull/4297))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[p2p]` fix exponential backoff logic to increase reconnect retries close to 24 hours
([\#3519](https://github.com/cometbft/cometbft/issues/3519))
7 changes: 7 additions & 0 deletions .changelog/v0.38.14/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*November 6, 2024*

This release fixes a security vulnerability in the vote extensions (VE)
validation logic. For more details, please refer to
[ASA-2024-011](https://github.com/cometbft/cometbft/security/advisories/GHSA-p7mv-53f2-4cwj).

We recommend upgrading ASAP if you’re using vote extensions (VE).
9 changes: 9 additions & 0 deletions .changelog/v0.38.15/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*November 6, 2024*

This release supersedes [`v0.38.14`](#v03814), which mistakenly updated the Go version to
`1.23`, introducing an unintended breaking change. It sets the Go version back
to `1.22.7` by reverting [\#4297](https://github.com/cometbft/cometbft/pull/4297).

The release includes the bug fixes, performance improvements, and importantly,
the fix for the security vulnerability in the vote extensions (VE) validation
logic that were part of `v0.38.14`. For more details, please refer to [ASA-2024-011](https://github.com/cometbft/cometbft/security/advisories/GHSA-p7mv-53f2-4cwj).
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `[privval]` Retry accepting a connection ([\#2047](https://github.com/cometbft/cometbft/pull/2047))
2 changes: 2 additions & 0 deletions .changelog/v0.38.6/bug-fixes/2136-fix-state-rollback.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[state]` Fix rollback to a specific height
([\#2136](https://github.com/cometbft/cometbft/pull/2136))
2 changes: 2 additions & 0 deletions .changelog/v0.38.6/features/2362-e2e-block-max-bytes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[e2e]` Add `block_max_bytes` option to the manifest file.
([\#2362](https://github.com/cometbft/cometbft/pull/2362))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[blocksync]` Avoid double-calling `types.BlockFromProto` for performance
reasons ([\#2016](https://github.com/cometbft/cometbft/pull/2016))
2 changes: 2 additions & 0 deletions .changelog/v0.38.6/improvements/2094-e2e-load-max-txs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[e2e]` Add manifest option `load_max_txs` to limit the number of transactions generated by the
`load` command. ([\#2094](https://github.com/cometbft/cometbft/pull/2094))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `[jsonrpc]` enable HTTP basic auth in websocket client ([#2434](https://github.com/cometbft/cometbft/pull/2434))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[blocksync]` make the max number of downloaded blocks dynamic.
Previously it was a const 600. Now it's `peersCount * maxPendingRequestsPerPeer (20)`
[\#2467](https://github.com/cometbft/cometbft/pull/2467)
3 changes: 3 additions & 0 deletions .changelog/v0.38.6/improvements/2475-blocksync-2nd-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[blocksync]` Request a block from peer B if we are approaching pool's height
(less than 50 blocks) and the current peer A is slow in sending us the
block [\#2475](https://github.com/cometbft/cometbft/pull/2475)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[blocksync]` Request the block N from peer B immediately after getting
`NoBlockResponse` from peer A
[\#2475](https://github.com/cometbft/cometbft/pull/2475)
2 changes: 2 additions & 0 deletions .changelog/v0.38.6/improvements/2475-blocksync-sort-peers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[blocksync]` Sort peers by download rate (the fastest peer is picked first)
[\#2475](https://github.com/cometbft/cometbft/pull/2475)
5 changes: 5 additions & 0 deletions .changelog/v0.38.6/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*March 12, 2024*

This release fixes a security bug in the light client. It also introduces many
improvements to the block sync in collaboration with the
[Osmosis](https://osmosis.zone/) team.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [`mempool`] Panic when a CheckTx request to the app returns an error
([\#2225](https://github.com/cometbft/cometbft/pull/2225))
2 changes: 2 additions & 0 deletions .changelog/v0.38.7/bug-fixes/2774-bitarray-unmarshal-json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [`bits`] prevent `BitArray.UnmarshalJSON` from crashing on 0 bits
([\#2774](https://github.com/cometbft/cometbft/pull/2774))
2 changes: 2 additions & 0 deletions .changelog/v0.38.7/features/2793-boostrap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [`node`] Add `BootstrapStateWithGenProvider` to boostrap state using a custom
genesis doc provider ([\#2793](https://github.com/cometbft/cometbft/pull/2793))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[state/indexer]` Lower the heap allocation of transaction searches
([\#2839](https://github.com/cometbft/cometbft/pull/2839))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[internal/bits]` 10x speedup and remove heap overhead of bitArray.PickRandom (used extensively in consensus gossip)
([\#2841](https://github.com/cometbft/cometbft/pull/2841)).
2 changes: 2 additions & 0 deletions .changelog/v0.38.7/improvements/2846-speedup-json-encoding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[libs/json]` Lower the memory overhead of JSON encoding by using JSON encoders internally
([\#2846](https://github.com/cometbft/cometbft/pull/2846)).
3 changes: 3 additions & 0 deletions .changelog/v0.38.7/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*April 26, 2024*

This release contains a few bug fixes and performance improvements.
4 changes: 4 additions & 0 deletions .changelog/v0.38.8/breaking-changes/3314-mempool-preupdate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- `[mempool]` Add to the `Mempool` interface a new method `PreUpdate()`. This method should be
called before acquiring the mempool lock, to signal that a new update is coming. Also add to
`ErrMempoolIsFull` a new field `RecheckFull`.
([\#3314](https://github.com/cometbft/cometbft/pull/3314))
4 changes: 4 additions & 0 deletions .changelog/v0.38.8/bug-fixes/14-abc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- `[blockstore]` Added peer banning in blockstore
([\#ABC-0013](https://github.com/cometbft/cometbft/security/advisories/GHSA-hg58-rf2h-6rr7))
- `[blockstore]` Send correct error message when vote extensions do not align with received packet
([\#ABC-0014](https://github.com/cometbft/cometbft/security/advisories/GHSA-hg58-rf2h-6rr7))
2 changes: 2 additions & 0 deletions .changelog/v0.38.8/bug-fixes/1827-fix-recheck-async.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [`mempool`] Fix data race when rechecking with async ABCI client
([\#1827](https://github.com/cometbft/cometbft/issues/1827))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[consensus]` Fix a race condition in the consensus timeout ticker. Race is caused by two timeouts being scheduled at the same time.
([\#3092](https://github.com/cometbft/cometbft/pull/2136))
2 changes: 2 additions & 0 deletions .changelog/v0.38.8/bug-fixes/3195-batch-verification.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[types]` Do not batch verify a commit if the validator set keys have different
types. ([\#3195](https://github.com/cometbft/cometbft/issues/3195)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[config]` Added `recheck_timeout` mempool parameter to set how much time to wait for recheck
responses from the app (only applies to non-local ABCI clients).
([\#1827](https://github.com/cometbft/cometbft/issues/1827/))
2 changes: 2 additions & 0 deletions .changelog/v0.38.8/improvements/2867-rpc-batch-size-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[rpc]` Add a configurable maximum batch size for RPC requests.
([\#2867](https://github.com/cometbft/cometbft/pull/2867)).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[event-bus]` Remove the debug logs in PublishEventTx, which were noticed production slowdowns.
([\#2911](https://github.com/cometbft/cometbft/pull/2911))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[state/execution]` Cache the block hash computation inside of the Block Type, so we only compute it once.
([\#2924](https://github.com/cometbft/cometbft/pull/2924))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[consensus/state]` Remove a redundant `VerifyBlock` call in `FinalizeCommit`
([\#2928](https://github.com/cometbft/cometbft/pull/2928))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[p2p/channel]` Speedup `ProtoIO` writer creation time, and thereby speedup channel writing by 5%.
([\#2949](https://github.com/cometbft/cometbft/pull/2949))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[p2p/conn]` Minor speedup (3%) to connection.WritePacketMsgTo, by removing MinInt calls.
([\#2952](https://github.com/cometbft/cometbft/pull/2952))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[internal/bits]` 10x speedup creating initialized bitArrays, which speedsup extendedCommit.BitArray(). This is used in consensus vote gossip.
([\#2959](https://github.com/cometbft/cometbft/pull/2841)).
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[blockstore]` Remove a redundant `Header.ValidateBasic` call in `LoadBlockMeta`, 75% reducing this time.
([\#2964](https://github.com/cometbft/cometbft/pull/2964))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[p2p/conn]` Speedup connection.WritePacketMsgTo, by reusing internal buffers rather than re-allocating.
([\#2986](https://github.com/cometbft/cometbft/pull/2986))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [`blockstore`] Use LRU caches in blockstore, significiantly improving consensus gossip routine performance
([\#3003](https://github.com/cometbft/cometbft/issues/3003)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [`consensus`] Improve performance of consensus metrics by lowering string operations
([\#3017](https://github.com/cometbft/cometbft/issues/3017)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [`protoio`] Remove one allocation and new object call from `ReadMsg`,
leading to a 4% p2p message reading performance gain.
([\#3018](https://github.com/cometbft/cometbft/issues/3018)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `[mempool]` Before updating the mempool, consider it as full if rechecking is still in progress.
This will stop accepting transactions in the mempool if the node can't keep up with re-CheckTx.
([\#3314](https://github.com/cometbft/cometbft/pull/3314))
3 changes: 3 additions & 0 deletions .changelog/v0.38.8/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*June 27, 2024*

This release contains a few bug fixes and performance improvements.
4 changes: 4 additions & 0 deletions .changelog/v0.38.9/breaking-changes/3361-mempool-preupdate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- `[mempool]` Revert adding the method `PreUpdate()` to the `Mempool` interface, recently introduced
in the previous patch release (v0.38.8). Its logic is now moved into the `Lock` method. With this change,
the `Mempool` interface is the same as in v0.38.7.
([\#3361](https://github.com/cometbft/cometbft/pull/3361))
2 changes: 2 additions & 0 deletions .changelog/v0.38.9/bug-fixes/3352-nil-pointer-tx-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `[rpc]` Fix nil pointer error in `/tx` and `/tx_search` when block is
absent ([\#3352](https://github.com/cometbft/cometbft/issues/3352))
5 changes: 5 additions & 0 deletions .changelog/v0.38.9/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*July 1, 2024*

This release reverts the API-breaking change to the Mempool interface introduced in the last patch
release (v0.38.8) while still keeping the performance improvement added to the mempool. It also
includes a minor fix to the RPC endpoints /tx and /tx_search.
16 changes: 9 additions & 7 deletions .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
contents: read

jobs:
check-mocks:
check-mocks-metrics:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
Expand All @@ -22,17 +22,18 @@ jobs:

- uses: actions/checkout@v4

- name: "Check generated mocks"
- name: "Check generated mocks and metrics"
run: |
set -euo pipefail

make mockery
make mockery metrics

if ! git diff --stat --exit-code ; then
git add .
if ! git diff HEAD --stat --exit-code ; then
echo ">> ERROR:"
echo ">>"
echo ">> Generated mocks require update (either Mockery or source files may have changed)."
echo ">> Ensure your tools are up-to-date, re-run 'make mockery' and update this PR."
echo ">> Generated mocks and/or metrics require update (either Mockery or source files may have changed)."
echo ">> Ensure your tools are up-to-date, re-run 'make mockery metrics' and update this PR."
echo ">>"
git diff
exit 1
Expand All @@ -55,7 +56,8 @@ jobs:

make proto-gen

if ! git diff --stat --exit-code ; then
git add .
if ! git diff HEAD --stat --exit-code ; then
echo ">> ERROR:"
echo ">>"
echo ">> Protobuf generated code requires update (either tools or .proto files may have changed)."
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cometbft-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ jobs:
platforms: all

- name: Set up Docker Build
uses: docker/setup-buildx-action@v3.0.0
uses: docker/setup-buildx-action@v3.7.1

- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish to Docker Hub
uses: docker/build-push-action@v5.1.0
uses: docker/build-push-action@v6.9.0
with:
context: .
file: ./DOCKER/Dockerfile
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/e2e-manual-multiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
group: ['00', '01', '02', '03', '04']
group: ['00', '01', '02', '03', '04', '05']
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand All @@ -27,12 +27,19 @@ jobs:
run: make -j2 docker generator runner tests

- name: Generate testnets
if: matrix.group != 5
working-directory: test/e2e
# When changing -g, also change the matrix groups above
# Generate multi-version tests with double the quantity of E2E nodes
# based on the current branch as compared to the latest version.
run: ./build/generator -g 5 -m "latest:1,local:2" -d networks/nightly/ -p

- name: Run ${{ matrix.p2p }} p2p testnets
- name: Run p2p testnets (${{ matrix.group }})
if: matrix.group != 5
working-directory: test/e2e
run: ./run-multiple.sh networks/nightly/*-group${{ matrix.group }}-*.toml

- name: Run p2p testnets (regression)
if: matrix.group == 5
working-directory: test/e2e
run: ./run-multiple.sh networks_regressions/*.toml
Loading

0 comments on commit c53688a

Please sign in to comment.