Skip to content

Commit 2113aa3

Browse files
chore: Bumps versions for patch release
I also did a little housekeeping here to fix a bunch of clippy lints and updated the flake inputs Signed-off-by: Taylor Thomas <[email protected]>
1 parent 55444f2 commit 2113aa3

File tree

14 files changed

+48
-66
lines changed

14 files changed

+48
-66
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-22.04]
18-
nats_version: [2.10.7]
18+
nats_version: [2.10.22]
1919

2020
steps:
2121
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -39,8 +39,11 @@ jobs:
3939
echo 'Wadm JSON Schema is out of date. Please run `cargo run --bin wadm-schema` and commit the changes.'
4040
exit 1
4141
fi
42-
- name: Install wash
43-
uses: wasmCloud/common-actions/install-wash@bc9f2b3966835575aa6f70faafd9efb8e24992c4 # main
42+
43+
- name: install wash
44+
uses: taiki-e/install-action@afbe5c171504ec183ad2e090b35cac157c65592e # v2.47.30
45+
with:
46+
4447

4548
# GH Actions doesn't currently support passing args to service containers and there is no way
4649
# to use an environment variable to turn on jetstream for nats, so we manually start it here

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/wasmcloud/wadm"
1111
default-run = "wadm"
1212

1313
[workspace.package]
14-
version = "0.20.0"
14+
version = "0.20.1"
1515

1616
[features]
1717
default = []
@@ -83,9 +83,9 @@ tracing-subscriber = { version = "0.3.7", features = ["env-filter", "json"] }
8383
ulid = { version = "1", features = ["serde"] }
8484
utoipa = "5"
8585
uuid = "1"
86-
wadm = { version = "0.20.0", path = "./crates/wadm"}
87-
wadm-client = { version = "0.8.0", path = "./crates/wadm-client" }
88-
wadm-types = { version = "0.8.0", path = "./crates/wadm-types" }
86+
wadm = { version = "0.20.1", path = "./crates/wadm" }
87+
wadm-client = { version = "0.8.1", path = "./crates/wadm-client" }
88+
wadm-types = { version = "0.8.1", path = "./crates/wadm-types" }
8989
wasmcloud-control-interface = { version = "2.3.0" }
9090
wasmcloud-secrets-types = "0.5.0"
9191
wit-bindgen-wrpc = { version = "0.9", default-features = false }

crates/wadm-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "wadm-client"
33
description = "A client library for interacting with the wadm API"
4-
version = "0.8.0"
4+
version = "0.8.1"
55
edition = "2021"
66
authors = ["wasmCloud Team"]
77
keywords = ["webassembly", "wasmcloud", "wadm"]

crates/wadm-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "wadm-types"
33
description = "Types and validators for the wadm API"
4-
version = "0.8.0"
4+
version = "0.8.1"
55
edition = "2021"
66
authors = ["wasmCloud Team"]
77
keywords = ["webassembly", "wasmcloud", "wadm"]

crates/wadm-types/src/validation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,13 @@ fn get_deprecated_configs(component: &serde_yaml::Value) -> Vec<ValidationFailur
759759
}
760760
}
761761
if let Some(trait_properties) = trait_.get("properties") {
762-
if let Some(_) = trait_properties.get("source_config") {
762+
if trait_properties.get("source_config").is_some() {
763763
failures.push(ValidationFailure {
764764
level: ValidationFailureLevel::Warning,
765765
msg: "one of the components' link trait contains a source_config key, please use source:config: rather".to_string(),
766766
});
767767
}
768-
if let Some(_) = trait_properties.get("target_config") {
768+
if trait_properties.get("target_config").is_some() {
769769
failures.push(ValidationFailure {
770770
level: ValidationFailureLevel::Warning,
771771
msg: "one of the components' link trait contains a target_config key, please use target:config: rather".to_string(),

crates/wadm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ pub async fn start_wadm(config: WadmConfig) -> Result<JoinSet<Result<()>>> {
388388
continue;
389389
}
390390
};
391-
let svc = svc.clone();
392391
if let Err(err) = srv.serve_connection(TokioIo::new(stream), svc).await {
393392
tracing::error!(?err, "failed to serve HTTP administration connection");
394393
}

crates/wadm/src/scaler/daemonscaler/provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ mod test {
696696
.await?;
697697

698698
spreadscaler
699-
.handle_event(&&Event::ProviderHealthCheckPassed(
699+
.handle_event(&Event::ProviderHealthCheckPassed(
700700
ProviderHealthCheckPassed {
701701
data: ProviderHealthCheckInfo {
702702
provider_id: provider_id.to_string(),

crates/wadm/src/scaler/spreadscaler/provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ mod test {
13971397
.await?;
13981398

13991399
spreadscaler
1400-
.handle_event(&&Event::ProviderHealthCheckPassed(
1400+
.handle_event(&Event::ProviderHealthCheckPassed(
14011401
ProviderHealthCheckPassed {
14021402
data: ProviderHealthCheckInfo {
14031403
provider_id: provider_id.to_string(),

crates/wadm/src/workers/event.rs

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,16 +1507,8 @@ mod test {
15071507
2,
15081508
"Should still have 2 components in state"
15091509
);
1510-
assert_component(
1511-
&components,
1512-
&component_1_id,
1513-
&[(host1_id, 2), (host2_id, 2)],
1514-
);
1515-
assert_component(
1516-
&components,
1517-
&component_2_id,
1518-
&[(host1_id, 2), (host2_id, 2)],
1519-
);
1510+
assert_component(&components, component_1_id, &[(host1_id, 2), (host2_id, 2)]);
1511+
assert_component(&components, component_2_id, &[(host1_id, 2), (host2_id, 2)]);
15201512

15211513
/***********************************************************/
15221514
/************** Component Scale Down Tests *****************/
@@ -1543,12 +1535,8 @@ mod test {
15431535
2,
15441536
"Should still have 2 components in state"
15451537
);
1546-
assert_component(&components, &component_1_id, &[(host2_id, 2)]);
1547-
assert_component(
1548-
&components,
1549-
&component_2_id,
1550-
&[(host1_id, 2), (host2_id, 2)],
1551-
);
1538+
assert_component(&components, component_1_id, &[(host2_id, 2)]);
1539+
assert_component(&components, component_2_id, &[(host1_id, 2), (host2_id, 2)]);
15521540

15531541
let host = store
15541542
.get::<Host>(lattice_id, host2_id)
@@ -1572,11 +1560,7 @@ mod test {
15721560
let components = store.list::<Component>(lattice_id).await.unwrap();
15731561
assert_eq!(components.len(), 1, "Should only have 1 component in state");
15741562
// Double check the the old one is still ok
1575-
assert_component(
1576-
&components,
1577-
&component_2_id,
1578-
&[(host1_id, 2), (host2_id, 2)],
1579-
);
1563+
assert_component(&components, component_2_id, &[(host1_id, 2), (host2_id, 2)]);
15801564

15811565
/***********************************************************/
15821566
/******************* Provider Stop Tests *******************/
@@ -1735,11 +1719,7 @@ mod test {
17351719
// Double check providers and components are the same
17361720
let components = store.list::<Component>(lattice_id).await.unwrap();
17371721
assert_eq!(components.len(), 1, "Should only have 1 component in state");
1738-
assert_component(
1739-
&components,
1740-
&component_2_id,
1741-
&[(host1_id, 2), (host2_id, 2)],
1742-
);
1722+
assert_component(&components, component_2_id, &[(host1_id, 2), (host2_id, 2)]);
17431723

17441724
let providers = store.list::<Provider>(lattice_id).await.unwrap();
17451725
assert_eq!(providers.len(), 2, "Should still have 2 providers in state");
@@ -1774,7 +1754,7 @@ mod test {
17741754
// Double check providers and components are the same
17751755
let components = store.list::<Component>(lattice_id).await.unwrap();
17761756
assert_eq!(components.len(), 1, "Should only have 1 component in state");
1777-
assert_component(&components, &component_2_id, &[(host2_id, 2)]);
1757+
assert_component(&components, component_2_id, &[(host2_id, 2)]);
17781758

17791759
let providers = store.list::<Provider>(lattice_id).await.unwrap();
17801760
assert_eq!(providers.len(), 1, "Should now have 1 provider in state");
@@ -1857,7 +1837,7 @@ mod test {
18571837
])
18581838
.host_id(host_id.into())
18591839
.providers(vec![ProviderDescription::builder()
1860-
.id(&provider_id)
1840+
.id(provider_id)
18611841
.revision(0)
18621842
.build()
18631843
.expect("failed to build provider description")])
@@ -1893,7 +1873,7 @@ mod test {
18931873
labels: HashMap::default(),
18941874
issuer: "".to_string(),
18951875
providers: vec![ProviderDescription::builder()
1896-
.id(&provider_id)
1876+
.id(provider_id)
18971877
.revision(0)
18981878
.build()
18991879
.expect("failed to build provider description")],

flake.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ async fn main() -> anyhow::Result<()> {
1414
args.tracing_endpoint.clone(),
1515
);
1616

17-
let mut wadm = start_wadm(args.into())
18-
.await
19-
.context("failed to run wadm")?;
17+
let mut wadm = start_wadm(args).await.context("failed to run wadm")?;
2018
tokio::select! {
2119
res = wadm.join_next() => {
2220
match res {

tests/event_consumer_integration.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ async fn test_event_stream() -> Result<()> {
186186
HELLO_COMPONENT_ID,
187187
"wasi",
188188
"http",
189+
"--link-name",
190+
"default",
189191
"--ctl-port",
190192
&ctl_port,
191193
])

tests/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ async fn validate_link_config_names() -> Result<()> {
133133
.iter()
134134
.all(|f| f.level == ValidationFailureLevel::Error)
135135
&& failures.len() == expected_errors,
136-
"expected {} errors because manifest contains {} duplicated link config names, instead {} errors were found", expected_errors, expected_errors, failures.len().to_string()
136+
"expected {} errors because manifest contains {} duplicated link config names, instead {} errors were found", expected_errors, expected_errors, failures.len()
137137
);
138138
assert!(
139139
!failures.valid(),

0 commit comments

Comments
 (0)