Skip to content

Commit 92d3461

Browse files
committed
Fix CI issues
Signed-off-by: Ryan Levick <[email protected]>
1 parent 721d44e commit 92d3461

File tree

5 files changed

+11
-18
lines changed

5 files changed

+11
-18
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conformance-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ homepage.workspace = true
1111
anyhow = "1.0"
1212
conformance-tests = { git = "https://github.com/fermyon/conformance-tests", rev = "6ec9e9d95e3b333de85685131337c8864c1af67d" }
1313
log = "0.4"
14-
nix = "0.28"
14+
nix = { version = "0.29", features = ["signal", "process"] }
1515
test-environment = { git = "https://github.com/fermyon/conformance-tests", rev = "6ec9e9d95e3b333de85685131337c8864c1af67d" }

conformance-tests/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,26 @@ fn run_test(
3535
ctr_binary: &std::path::Path,
3636
) -> anyhow::Result<()> {
3737
println!("running test: {}", test.name);
38-
let mut services = vec!["registry".into()];
38+
let mut services = vec!["registry"];
3939
for precondition in &test.config.preconditions {
4040
match precondition {
4141
conformance_tests::config::Precondition::HttpEcho => {
42-
services.push("http-echo".into());
42+
services.push("http-echo");
4343
}
4444
conformance_tests::config::Precondition::KeyValueStore(k) => {
4545
if k.label != "default" {
4646
panic!("unsupported label: {}", k.label);
4747
}
4848
}
4949
conformance_tests::config::Precondition::TcpEcho => {
50-
services.push("tcp-echo".into());
50+
services.push("tcp-echo");
5151
}
5252
conformance_tests::config::Precondition::Sqlite => {}
5353
conformance_tests::config::Precondition::Redis => {
54-
services.push("redis".into());
54+
services.push("redis");
5555
}
5656
conformance_tests::config::Precondition::Mqtt => {
57-
services.push("mqtt".into());
57+
services.push("mqtt");
5858
}
5959
}
6060
}

containerd-shim-spin/src/engine.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ impl SpinEngine {
172172
let app = spin_app::App::new("TODO", app.clone());
173173
let f = match trigger_type.as_str() {
174174
HTTP_TRIGGER_TYPE => {
175-
info!(" >>> running spin http trigger");
176175
let address_str = env::var(constants::SPIN_HTTP_LISTEN_ADDR_ENV)
177176
.unwrap_or_else(|_| constants::SPIN_ADDR_DEFAULT.to_string());
178177
let address = parse_addr(&address_str)?;
@@ -183,23 +182,15 @@ impl SpinEngine {
183182
};
184183
trigger::run::<HttpTrigger>(cli_args, app, &loader).await?
185184
}
186-
REDIS_TRIGGER_TYPE => {
187-
info!(" >>> running spin redis trigger");
188-
trigger::run::<RedisTrigger>(NoCliArgs, app, &loader).await?
189-
}
190-
SQS_TRIGGER_TYPE => {
191-
info!(" >>> running spin sqs trigger");
192-
trigger::run::<SqsTrigger>(NoCliArgs, app, &loader).await?
193-
}
185+
REDIS_TRIGGER_TYPE => trigger::run::<RedisTrigger>(NoCliArgs, app, &loader).await?,
186+
SQS_TRIGGER_TYPE => trigger::run::<SqsTrigger>(NoCliArgs, app, &loader).await?,
194187
COMMAND_TRIGGER_TYPE => {
195-
info!(" >>> running spin command trigger");
196188
let cli_args = trigger_command::CliArgs {
197189
guest_args: ctx.args().to_vec(),
198190
};
199191
trigger::run::<CommandTrigger>(cli_args, app, &loader).await?
200192
}
201193
MQTT_TRIGGER_TYPE => {
202-
info!(" >>> running spin mqtt trigger");
203194
let cli_args = trigger_mqtt::CliArgs { test: false };
204195
trigger::run::<MqttTrigger>(cli_args, app, &loader).await?
205196
}

containerd-shim-spin/src/trigger.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::{collections::HashSet, future::Future, path::Path, pin::Pin};
22

3+
use log::info;
34
use spin_app::{locked::LockedApp, App};
45
use spin_runtime_factors::{FactorsBuilder, TriggerFactors};
56
use spin_trigger::{
@@ -30,6 +31,7 @@ pub(crate) async fn run<T>(
3031
where
3132
T: Trigger<TriggerFactors> + 'static,
3233
{
34+
info!(" >>> running {} trigger", T::TYPE);
3335
let trigger = T::new(cli_args, &app)?;
3436
let builder: TriggerAppBuilder<_, FactorsBuilder> = TriggerAppBuilder::new(trigger);
3537

0 commit comments

Comments
 (0)