Skip to content

Commit 58be7d4

Browse files
committed
fix: resolve testsys interface compatibility issues
Fix type mismatches and dependency conflicts that arose from the testsys interface migration, ensuring compatibility with the testsys repository structure and dependencies. This change also deprecates the metal k8s test functionality in the testsys interface.
1 parent 7a8283a commit 58be7d4

File tree

9 files changed

+56
-333
lines changed

9 files changed

+56
-333
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ members = [
1313
"controller",
1414
"model",
1515
"selftest",
16+
"testsys-launcher/parse-datetime",
17+
"testsys-launcher/pubsys-config",
18+
"testsys-launcher/bottlerocket-variant",
19+
"testsys-launcher/testsys-config",
20+
"testsys-launcher/testsys",
1621
]
1722

1823
resolver = "2"

testsys-launcher/bottlerocket-variant/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ publish = false
99
exclude = ["README.md"]
1010

1111
[dependencies]
12-
serde.workspace = true
13-
snafu.workspace = true
12+
serde = "1"
13+
snafu = "0.8"
1414

testsys-launcher/parse-datetime/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ publish = false
99
exclude = ["README.md"]
1010

1111
[dependencies]
12-
chrono = { workspace = true, features = ["clock", "std"] }
13-
snafu = { workspace = true, features = ["backtraces-impl-backtrace-crate"] }
12+
chrono = { version = "0.4", features = ["clock", "std"] }
13+
snafu = { version = "0.8", features = ["backtraces-impl-backtrace-crate"] }

testsys-launcher/pubsys-config/Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ edition = "2021"
77
publish = false
88

99
[dependencies]
10-
chrono = { workspace = true, features = ["clock", "std"] }
11-
home.workspace = true
12-
lazy_static.workspace = true
13-
log.workspace = true
14-
parse-datetime.workspace = true
15-
serde = { workspace = true, features = ["derive"] }
16-
serde_yaml.workspace = true
17-
snafu.workspace = true
18-
toml.workspace = true
19-
url = { workspace = true, features = ["serde"] }
10+
chrono = { version = "0.4", features = ["clock", "std"] }
11+
home = "0.5"
12+
lazy_static = "1"
13+
log = "0.4"
14+
parse-datetime = { version = "0.1", path = "../parse-datetime" }
15+
serde = { version = "1", features = ["derive"] }
16+
serde_yaml = "0.9"
17+
snafu = "0.8"
18+
toml = "0.8"
19+
url = { version = "2", features = ["serde"] }

testsys-launcher/pubsys-config/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,6 @@ pub type Result<T> = std::result::Result<T, error::Error>;
295295

296296
#[test]
297297
fn repo_expiration_deserialization_test() {
298-
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
299-
.join("..")
300-
.join("pubsys")
301-
.join("policies")
302-
.join("repo-expiration")
303-
.join("2w-2w-1w.toml");
298+
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("2w-2w-1w.toml");
304299
let _ = RepoExpirationPolicy::from_path(path).unwrap();
305300
}

testsys-launcher/testsys-config/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ edition = "2021"
77
publish = false
88

99
[dependencies]
10-
bottlerocket-types.workspace = true
11-
bottlerocket-variant.workspace = true
12-
handlebars.workspace = true
13-
log.workspace = true
14-
maplit.workspace = true
15-
testsys-model.workspace = true
16-
serde = { workspace = true, features = ["derive"] }
17-
serde_plain.workspace = true
18-
serde_yaml.workspace = true
19-
snafu.workspace = true
20-
toml.workspace = true
10+
bottlerocket-types = { version = "0.0.17", path = "../../bottlerocket/types" }
11+
bottlerocket-variant = { version = "0.1", path = "../bottlerocket-variant" }
12+
handlebars = "5"
13+
log = "0.4"
14+
maplit = "1"
15+
testsys-model = { version = "0.0.17", path = "../../model" }
16+
serde = "1"
17+
serde_plain = "1"
18+
serde_yaml = "0.9"
19+
snafu = "0.8"
20+
toml = "0.8"

testsys-launcher/testsys/Cargo.toml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ edition = "2021"
1010
publish = false
1111

1212
[dependencies]
13-
async-trait.workspace = true
14-
aws-config.workspace = true
15-
aws-sdk-ec2.workspace = true
16-
base64.workspace = true
17-
bottlerocket-types.workspace = true
18-
bottlerocket-variant.workspace = true
19-
clap = { workspace = true, features = ["derive", "env"] }
20-
env_logger.workspace = true
21-
futures.workspace = true
22-
handlebars.workspace = true
23-
log.workspace = true
24-
maplit.workspace = true
25-
testsys-model.workspace = true
26-
pubsys-config.workspace = true
27-
fastrand.workspace = true
28-
serde = { workspace = true, features = ["derive"] }
29-
serde_json.workspace = true
30-
serde_plain.workspace = true
31-
serde_yaml.workspace = true
32-
snafu.workspace = true
33-
terminal_size.workspace = true
34-
testsys-config.workspace = true
35-
tokio = { workspace = true, features = ["fs", "macros", "rt-multi-thread"] }
36-
unescape.workspace = true
37-
url.workspace = true
13+
async-trait = "0.1"
14+
aws-config = { version = "1", default-features = false, features = ["credentials-process", "default-https-client", "rt-tokio" ] }
15+
aws-sdk-ec2 = { version = "1", default-features = false, features = ["default-https-client", "rt-tokio"] }
16+
base64 = "0.22"
17+
bottlerocket-types = { version = "0.0.17", path = "../../bottlerocket/types" }
18+
bottlerocket-variant = { version = "0.1", path = "../bottlerocket-variant" }
19+
clap = { version = "4", features = ["derive", "env"] }
20+
env_logger = "0.11"
21+
futures = "0.3"
22+
handlebars = "5"
23+
log = "0.4"
24+
maplit = "1"
25+
testsys-model = { version = "0.0.17", path = "../../model" }
26+
pubsys-config = { version = "0.1", path = "../pubsys-config" }
27+
fastrand = "2"
28+
serde = "1"
29+
serde_json = "1"
30+
serde_plain = "1"
31+
serde_yaml = "0.9"
32+
snafu = "0.8"
33+
terminal_size = "0.4"
34+
testsys-config = { version = "0.1", path = "../testsys-config" }
35+
tokio = { version = "1", features = ["fs", "macros", "rt-multi-thread"] }
36+
unescape = "0.1"
37+
url = "2"

testsys-launcher/testsys/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ mod delete;
2222
mod error;
2323
mod install;
2424
mod logs;
25-
mod metal_k8s;
2625
mod migration;
2726
mod restart_test;
2827
mod run;

0 commit comments

Comments
 (0)