Skip to content

Commit

Permalink
Merge branch 'protocol_changes' into entityid
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Feb 28, 2024
2 parents 4d4bdb2 + e41f768 commit 9ae62c9
Show file tree
Hide file tree
Showing 101 changed files with 2,060 additions and 1,684 deletions.
13 changes: 12 additions & 1 deletion .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# By default, retry a few times until pass the test within the specified timeout
[profile.default]
retries = 4
slow-timeout = { period = "60s", terminate-after = 2 }

# Run the following tests exclusively with longer timeout
[[profile.default.overrides]]
filter = 'test(/zenoh_session_unicast/)'
filter = """
test(=zenoh_session_unicast) |
test(=zenoh_session_multicast) |
test(=three_node_combination)
"""
threads-required = 'num-cpus'
slow-timeout = { period = "60s", terminate-after = 6 }
26 changes: 24 additions & 2 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ description = "Zenoh: Zero Overhead Pub/sub, Store/Query and Compute."
# (https://github.com/rust-lang/cargo/issues/11329)
[workspace.dependencies]
aes = "0.8.2"
ahash = "0.8.7"
anyhow = { version = "1.0.69", default-features = false } # Default features are disabled due to usage in no_std crates
async-executor = "1.5.0"
async-global-executor = "2.3.1"
Expand Down
6 changes: 3 additions & 3 deletions DEFAULT_CONFIG.json5
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@
/// The initial exponential backoff time in nanoseconds to allow the batching to eventually progress.
/// Higher values lead to a more aggressive batching but it will introduce additional latency.
backoff: 100,
// Number of threads dedicated to transmission
// By default, the number of threads is calculated as follows: 1 + ((#cores - 1) / 4)
// threads: 4,
},
// Number of threads dedicated to transmission
// By default, the number of threads is calculated as follows: 1 + ((#cores - 1) / 4)
// threads: 4,
},
/// Configure the zenoh RX parameters of a link
rx: {
Expand Down
48 changes: 24 additions & 24 deletions commons/zenoh-codec/benches/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ fn criterion_benchmark(c: &mut Criterion) {
let codec = Zenoh080::new();

let frame = FrameHeader {
reliability: Reliability::default(),
reliability: Reliability::DEFAULT,
sn: TransportSn::MIN,
ext_qos: zenoh_protocol::transport::frame::ext::QoSType::default(),
ext_qos: zenoh_protocol::transport::frame::ext::QoSType::DEFAULT,
};

let data = Push {
wire_expr: WireExpr::empty(),
ext_qos: ext::QoSType::default(),
ext_qos: ext::QoSType::DEFAULT,
ext_tstamp: None,
ext_nodeid: ext::NodeIdType::default(),
ext_nodeid: ext::NodeIdType::DEFAULT,
payload: PushBody::Put(Put {
timestamp: None,
encoding: Encoding::default(),
encoding: Encoding::DEFAULT,
ext_sinfo: None,
#[cfg(feature = "shared-memory")]
ext_shm: None,
Expand Down Expand Up @@ -121,19 +121,19 @@ fn criterion_benchmark(c: &mut Criterion) {
let codec = Zenoh080::new();

let frame = FrameHeader {
reliability: Reliability::default(),
reliability: Reliability::DEFAULT,
sn: TransportSn::MIN,
ext_qos: zenoh_protocol::transport::frame::ext::QoSType::default(),
ext_qos: zenoh_protocol::transport::frame::ext::QoSType::DEFAULT,
};

let data = Push {
wire_expr: WireExpr::empty(),
ext_qos: ext::QoSType::default(),
ext_qos: ext::QoSType::DEFAULT,
ext_tstamp: None,
ext_nodeid: ext::NodeIdType::default(),
ext_nodeid: ext::NodeIdType::DEFAULT,
payload: PushBody::Put(Put {
timestamp: None,
encoding: Encoding::default(),
encoding: Encoding::DEFAULT,
ext_sinfo: None,
#[cfg(feature = "shared-memory")]
ext_shm: None,
Expand Down Expand Up @@ -162,19 +162,19 @@ fn criterion_benchmark(c: &mut Criterion) {
let codec = Zenoh080::new();

let frame = FrameHeader {
reliability: Reliability::default(),
reliability: Reliability::DEFAULT,
sn: TransportSn::MIN,
ext_qos: zenoh_protocol::transport::frame::ext::QoSType::default(),
ext_qos: zenoh_protocol::transport::frame::ext::QoSType::DEFAULT,
};

let data = Push {
wire_expr: WireExpr::empty(),
ext_qos: ext::QoSType::default(),
ext_qos: ext::QoSType::DEFAULT,
ext_tstamp: None,
ext_nodeid: ext::NodeIdType::default(),
ext_nodeid: ext::NodeIdType::DEFAULT,
payload: PushBody::Put(Put {
timestamp: None,
encoding: Encoding::default(),
encoding: Encoding::DEFAULT,
ext_sinfo: None,
#[cfg(feature = "shared-memory")]
ext_shm: None,
Expand Down Expand Up @@ -210,12 +210,12 @@ fn criterion_benchmark(c: &mut Criterion) {

let data = Push {
wire_expr: WireExpr::empty(),
ext_qos: ext::QoSType::default(),
ext_qos: ext::QoSType::DEFAULT,
ext_tstamp: None,
ext_nodeid: ext::NodeIdType::default(),
ext_nodeid: ext::NodeIdType::DEFAULT,
payload: PushBody::Put(Put {
timestamp: None,
encoding: Encoding::default(),
encoding: Encoding::DEFAULT,
ext_sinfo: None,
#[cfg(feature = "shared-memory")]
ext_shm: None,
Expand All @@ -238,12 +238,12 @@ fn criterion_benchmark(c: &mut Criterion) {

let data = Push {
wire_expr: WireExpr::empty(),
ext_qos: ext::QoSType::default(),
ext_qos: ext::QoSType::DEFAULT,
ext_tstamp: None,
ext_nodeid: ext::NodeIdType::default(),
ext_nodeid: ext::NodeIdType::DEFAULT,
payload: PushBody::Put(Put {
timestamp: None,
encoding: Encoding::default(),
encoding: Encoding::DEFAULT,
ext_sinfo: None,
#[cfg(feature = "shared-memory")]
ext_shm: None,
Expand Down Expand Up @@ -277,12 +277,12 @@ fn criterion_benchmark(c: &mut Criterion) {

let data = Push {
wire_expr: WireExpr::empty(),
ext_qos: ext::QoSType::default(),
ext_qos: ext::QoSType::DEFAULT,
ext_tstamp: None,
ext_nodeid: ext::NodeIdType::default(),
ext_nodeid: ext::NodeIdType::DEFAULT,
payload: PushBody::Put(Put {
timestamp: None,
encoding: Encoding::default(),
encoding: Encoding::DEFAULT,
ext_sinfo: None,
#[cfg(feature = "shared-memory")]
ext_shm: None,
Expand Down
1 change: 0 additions & 1 deletion commons/zenoh-codec/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
// ZettaScale Zenoh Team, <[email protected]>
//
pub mod extension;
mod priority;
66 changes: 0 additions & 66 deletions commons/zenoh-codec/src/common/priority.rs

This file was deleted.

1 change: 0 additions & 1 deletion commons/zenoh-codec/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//
mod encoding;
mod locator;
mod property;
#[cfg(feature = "shared-memory")]
mod shm;
mod timestamp;
Expand Down
84 changes: 0 additions & 84 deletions commons/zenoh-codec/src/core/property.rs

This file was deleted.

2 changes: 1 addition & 1 deletion commons/zenoh-codec/src/core/wire_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ where
Ok(WireExpr {
scope,
suffix: suffix.into(),
mapping: Mapping::default(),
mapping: Mapping::DEFAULT,
})
}
}
Loading

0 comments on commit 9ae62c9

Please sign in to comment.