Skip to content

Commit

Permalink
Update master with v1.7.2 release changes (#3712)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 authored Nov 29, 2023
1 parent e8e73ff commit 3912f41
Show file tree
Hide file tree
Showing 23 changed files with 75 additions and 43 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add a new metric `broadcast_errors` which
records the number of times a specific error is observed by Hermes when broadcasting transactions
([\#3708](https://github.com/informalsystems/hermes/issues/3708))
7 changes: 7 additions & 0 deletions .changelog/v1.7.2/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*November 28th, 2023*

This patch release of Hermes adds a metric to improve monitoring errors and one
to measure the efficiency of the client update skip feature released in patch v1.7.1.

* `broadcast_errors` records the number of times a specific error is observed by Hermes when broadcasting transactions.
* `client_updates_skipped` records the number of client updates skipped due to the consensus states already existing.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# CHANGELOG

## v1.7.2

*November 28th, 2023*

This patch release of Hermes adds a metric to improve monitoring errors and one
to measure the efficiency of the client update skip feature released in patch v1.7.1.

* `broadcast_errors` records the number of times a specific error is observed by Hermes when broadcasting transactions.
* `client_updates_skipped` records the number of client updates skipped due to the consensus states already existing.

### FEATURES

- [Telemetry & Metrics](telemetry)
- Added metric `client_updates_skipped` to track the number of client
update messages skipped due to the conscensus state existing already.
([\#3707](https://github.com/informalsystems/hermes/issues/3707))
- Add a new metric `broadcast_errors` which
records the number of times a specific error is observed by Hermes when broadcasting transactions
([\#3708](https://github.com/informalsystems/hermes/issues/3708))

## v1.7.1

*November 13th, 2023*
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/chain-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-chain-registry"
version = "0.26.1"
version = "0.26.2"
edition = "2021"
license = "Apache-2.0"
keywords = ["cosmos", "ibc", "relayer", "chain", "registry"]
Expand All @@ -12,7 +12,7 @@ description = """
"""

[dependencies]
ibc-relayer-types = { version = "0.26.1", path = "../relayer-types" }
ibc-relayer-types = { version = "0.26.2", path = "../relayer-types" }
ibc-proto = { version = "0.39.0", features = ["serde"] }
tendermint-rpc = { version = "0.34.0", features = ["http-client", "websocket-client"] }

Expand Down
12 changes: 6 additions & 6 deletions crates/relayer-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-relayer-cli"
version = "1.7.1"
version = "1.7.2"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
Expand All @@ -25,11 +25,11 @@ telemetry = ["ibc-relayer/telemetry", "ibc-telemetry"]
rest-server = ["ibc-relayer-rest"]

[dependencies]
ibc-relayer-types = { version = "0.26.1", path = "../relayer-types" }
ibc-relayer = { version = "0.26.1", path = "../relayer" }
ibc-telemetry = { version = "0.26.1", path = "../telemetry", optional = true }
ibc-relayer-rest = { version = "0.26.1", path = "../relayer-rest", optional = true }
ibc-chain-registry = { version = "0.26.1" , path = "../chain-registry" }
ibc-relayer-types = { version = "0.26.2", path = "../relayer-types" }
ibc-relayer = { version = "0.26.2", path = "../relayer" }
ibc-telemetry = { version = "0.26.2", path = "../telemetry", optional = true }
ibc-relayer-rest = { version = "0.26.2", path = "../relayer-rest", optional = true }
ibc-chain-registry = { version = "0.26.2" , path = "../chain-registry" }

clap = { version = "3.2", features = ["cargo"] }
clap_complete = "3.2"
Expand Down
6 changes: 3 additions & 3 deletions crates/relayer-rest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-relayer-rest"
version = "0.26.1"
version = "0.26.2"
authors = ["Informal Systems <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -14,8 +14,8 @@ description = """
"""

[dependencies]
ibc-relayer-types = { version = "0.26.1", path = "../relayer-types" }
ibc-relayer = { version = "0.26.1", path = "../relayer" }
ibc-relayer-types = { version = "0.26.2", path = "../relayer-types" }
ibc-relayer = { version = "0.26.2", path = "../relayer" }

crossbeam-channel = "0.5"
serde = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer-rest/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async fn version() {

let rest_api_version = VersionInfo {
name: "ibc-relayer-rest".to_string(),
version: "0.26.1".to_string(),
version: "0.26.2".to_string(),
};

let result: JsonResult<_, ()> = JsonResult::Success(vec![version.clone(), rest_api_version]);
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-relayer-types"
version = "0.26.1"
version = "0.26.2"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
Expand Down
8 changes: 4 additions & 4 deletions crates/relayer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-relayer"
version = "0.26.1"
version = "0.26.2"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
Expand All @@ -21,8 +21,8 @@ telemetry = ["ibc-telemetry"]

[dependencies]
ibc-proto = { version = "0.39.0", features = ["serde"] }
ibc-telemetry = { version = "0.26.1", path = "../telemetry", optional = true }
ibc-relayer-types = { version = "0.26.1", path = "../relayer-types", features = ["mocks"] }
ibc-telemetry = { version = "0.26.2", path = "../telemetry", optional = true }
ibc-relayer-types = { version = "0.26.2", path = "../relayer-types", features = ["mocks"] }

subtle-encoding = "0.5"
humantime-serde = "1.1.1"
Expand Down Expand Up @@ -109,7 +109,7 @@ version = "0.34.0"
default-features = false

[dev-dependencies]
ibc-relayer-types = { version = "0.26.1", path = "../relayer-types", features = ["mocks"] }
ibc-relayer-types = { version = "0.26.2", path = "../relayer-types", features = ["mocks"] }
serial_test = "2.0.0"
env_logger = "0.10.0"
test-log = { version = "0.2.10", features = ["trace"] }
Expand Down
5 changes: 5 additions & 0 deletions crates/relayer/src/chain/cosmos/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ async fn do_send_tx_with_account_sequence_retry(
}

// Gas estimation succeeded but broadcast_tx_sync failed with a retry-able error.
// NOTE: The error code could potentially overlap between Cosmos SDK and Ibc-go channel
// error codes. This is currently not the case of incorrect account sequence error
//which is the Cosmos SDK code 32 and Ibc-go channel errors only go up to 25.
Ok(ref response) if response.code == Code::from(INCORRECT_ACCOUNT_SEQUENCE_ERR) => {
warn!(
?response,
Expand All @@ -126,6 +129,8 @@ async fn do_send_tx_with_account_sequence_retry(
debug!("gas estimation succeeded");

// Gas estimation and broadcast_tx_sync were successful.
// NOTE: The error code could potentially overlap between Cosmos SDK and Ibc-go channel
// error codes.
match response.code {
Code::Ok => {
let old_account_sequence = account.sequence;
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//!
//! For the IBC relayer binary, please see [Hermes] (`ibc-relayer-cli` crate).
//!
//! [Hermes]: https://docs.rs/ibc-relayer-cli/0.2.0/
//! [Hermes]: https://docs.rs/ibc-relayer-cli/1.7.2/
extern crate alloc;

Expand Down
4 changes: 2 additions & 2 deletions crates/telemetry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-telemetry"
version = "0.26.1"
version = "0.26.2"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
Expand All @@ -13,7 +13,7 @@ description = """
"""

[dependencies]
ibc-relayer-types = { version = "0.26.1", path = "../relayer-types" }
ibc-relayer-types = { version = "0.26.2", path = "../relayer-types" }

once_cell = "1.17.0"
opentelemetry = { version = "0.19.0", features = ["metrics"] }
Expand Down
2 changes: 1 addition & 1 deletion guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mdBook is a utility to create modern online books from Markdown files.
This guide should be permanently deployed at its latest stable version at
[hermes.informal.systems](https://hermes.informal.systems).

Current version: `v1.7.1`.
Current version: `v1.7.2`.

The version of this guide is aligned with the [versioning of the ibc crates](../README.md).

Expand Down
2 changes: 1 addition & 1 deletion guide/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Summary

# Hermes v1.7.1
# Hermes v1.7.2

---
- [Introduction](./index.md)
Expand Down
2 changes: 1 addition & 1 deletion guide/src/documentation/configuration/configure-hermes.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ event_source = { mode = 'push', url = 'wss://hello:[email protected]:26657/webs
## Configuring Support for Wasm Relaying

As of version 1.7.1, Hermes supports the relaying of wasm messages natively. This is facilitated by configuring
Hermes supports the relaying of wasm messages natively. This is facilitated by configuring
Hermes to use pull-based relaying by polling for IBC events via the `/block_results` RPC endpoint. Set
the `event_source` parameter to pull mode in `config.toml` like so:

Expand Down
2 changes: 1 addition & 1 deletion guide/src/templates/hermes-version.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.7.1
v1.7.2
2 changes: 1 addition & 1 deletion tools/integration-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-integration-test"
version = "0.26.1"
version = "0.26.2"
edition = "2021"
rust-version = "1.71"
license = "Apache-2.0"
Expand Down
8 changes: 4 additions & 4 deletions tools/test-framework/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ibc-test-framework"
version = "0.26.1"
version = "0.26.2"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
Expand All @@ -14,9 +14,9 @@ description = """
"""

[dependencies]
ibc-relayer-types = { version = "=0.26.1", path = "../../crates/relayer-types" }
ibc-relayer = { version = "=0.26.1", path = "../../crates/relayer" }
ibc-relayer-cli = { version = "=1.7.1", path = "../../crates/relayer-cli" }
ibc-relayer-types = { version = "=0.26.2", path = "../../crates/relayer-types" }
ibc-relayer = { version = "=0.26.2", path = "../../crates/relayer" }
ibc-relayer-cli = { version = "=1.7.2", path = "../../crates/relayer-cli" }
ibc-proto = { version = "0.39.0", features = ["serde"] }
tendermint-rpc = { version = "0.34.0", features = ["http-client", "websocket-client"] }

Expand Down
4 changes: 2 additions & 2 deletions tools/test-framework/src/relayer/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct RelayerDriver {

/**
The relayer [`Config`]. Use this config when spawning new supervisor
using [`spawn_supervisor`](ibc_relayer::supervisor::spawn_supervisor).
using [`spawn_supervisor`].
*/
pub config: Config,

Expand All @@ -39,7 +39,7 @@ pub struct RelayerDriver {
that is shared with any running supervisor.
Use this shared registry when spawning new supervisor using
[`spawn_supervisor`](ibc_relayer::supervisor::spawn_supervisor).
[`spawn_supervisor`].
*/
pub registry: SharedRegistry<CountingAndCachingChainHandle>,

Expand Down
2 changes: 1 addition & 1 deletion tools/test-framework/src/types/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub type TaggedClientIdRef<'a, ChainA, ChainB> = DualTagged<ChainA, ChainB, &'a
pub type TaggedPortId<ChainA, ChainB> = DualTagged<ChainA, ChainB, PortId>;

/**
A reference to [`PortId`](PortId) tagged with first, the host chain
A reference to [`PortId`] tagged with first, the host chain
that has the port ID, and second, the counterparty chain that the port ID
corresponds to.
*/
Expand Down

0 comments on commit 3912f41

Please sign in to comment.