1
0
mirror of https://github.com/containers/youki synced 2024-11-22 08:51:59 +01:00

Name the test tools contest (#2486)

* Name the test tools `contest`

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Address the feedbacks

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Fix a build error

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Fix a workflow

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Address the feedbacks

Signed-off-by: utam0k <k0ma@utam0k.jp>

---------

Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
Toru Komatsu 2024-01-12 17:58:47 +09:00 committed by GitHub
parent 9d50f377a1
commit 464344923f
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
74 changed files with 253 additions and 201 deletions

@ -153,10 +153,8 @@ jobs:
name: youki-${{ matrix.arch }}-${{ matrix.libc }}
- name: Add the permission to run
run: chmod +x ./youki
- name: Build
run: just runtimetest rust-oci-tests-bin
- name: Validate tests on youki
run: just rust-oci-tests
run: just test-contest
rootless-podman-test:
runs-on: ubuntu-22.04

7
.gitignore vendored

@ -2,7 +2,7 @@
.idea/
**/target
/runtimetest-target
/contest-target
/bin
.vagrant/
@ -11,8 +11,8 @@ tags.lock
tags.temp
/youki
/integration_test
/runtimetest
/contest
.vscode
@ -22,4 +22,5 @@ tags.temp
/test.log
/tests/k8s/_out/
replace_content.txt
replace_content.txt
/e2e/k8s/_out/

5
.gitmodules vendored

@ -1,5 +1,4 @@
[submodule "integration_tests/oci-runtime-tests"]
[submodule "tests/oci-runtime-tests/src/github.com/opencontainers/runtime-tools"]
path = tests/oci-runtime-tests/src/github.com/opencontainers/runtime-tools
url = https://github.com/opencontainers/runtime-tools.git
ignore = dirty
ignore = dirty

382
Cargo.lock generated

@ -8,7 +8,7 @@ version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97"
dependencies = [
"gimli 0.27.2",
"gimli 0.27.3",
]
[[package]]
@ -17,7 +17,7 @@ version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
dependencies = [
"gimli 0.28.0",
"gimli 0.28.1",
]
[[package]]
@ -39,13 +39,14 @@ dependencies = [
[[package]]
name = "ahash"
version = "0.8.3"
version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
dependencies = [
"cfg-if",
"once_cell",
"version_check",
"zerocopy",
]
[[package]]
@ -80,16 +81,15 @@ dependencies = [
[[package]]
name = "anstream"
version = "0.3.2"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163"
checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6"
dependencies = [
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon",
"colorchoice",
"is-terminal",
"utf8parse",
]
@ -119,12 +119,12 @@ dependencies = [
[[package]]
name = "anstyle-wincon"
version = "1.0.2"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c677ab05e09154296dd37acecd46420c17b9713e8366facafa8fc0885167cf4c"
checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
dependencies = [
"anstyle",
"windows-sys 0.48.0",
"windows-sys 0.52.0",
]
[[package]]
@ -165,7 +165,7 @@ checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -194,7 +194,7 @@ dependencies = [
"cfg-if",
"libc",
"miniz_oxide",
"object 0.32.0",
"object 0.32.2",
"rustc-demangle",
]
@ -236,7 +236,7 @@ dependencies = [
"regex",
"rustc-hash",
"shlex",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -346,9 +346,9 @@ dependencies = [
[[package]]
name = "cap-rand"
version = "1.0.16"
version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "383800fa434a9e7a463fa35196bd93dcd84a6bdc5d9aeae4e60b554134e852a2"
checksum = "4d25555efacb0b5244cf1d35833d55d21abc916fff0eaad254b8e2453ea9b8ab"
dependencies = [
"ambient-authority",
"rand",
@ -390,10 +390,11 @@ dependencies = [
[[package]]
name = "cc"
version = "1.0.84"
version = "1.0.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f8e7c90afad890484a21653d08b6e209ae34770fb5ee298f9c699fcc1e5c856"
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
dependencies = [
"jobserver",
"libc",
]
@ -438,55 +439,52 @@ dependencies = [
[[package]]
name = "clap"
version = "4.3.0"
version = "4.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93aae7a4192245f70fe75dd9157fc7b4a5bf53e88d30bd4396f7d8f9284d5acc"
checksum = "33e92c5c1a78c62968ec57dbc2440366a2d6e5a23faf829970ff1585dc6b18e2"
dependencies = [
"clap_builder",
"clap_derive",
"once_cell",
]
[[package]]
name = "clap_builder"
version = "4.3.0"
version = "4.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f423e341edefb78c9caba2d9c7f7687d0e72e89df3ce3394554754393ac3990"
checksum = "f4323769dc8a61e2c39ad7dc26f6f2800524691a44d74fe3d1071a5c24db6370"
dependencies = [
"anstream",
"anstyle",
"bitflags 1.3.2",
"clap_lex",
"once_cell",
"strsim",
]
[[package]]
name = "clap_complete"
version = "4.3.0"
version = "4.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a04ddfaacc3bc9e6ea67d024575fafc2a813027cf374b8f24f7bc233c6b6be12"
checksum = "97aeaa95557bd02f23fbb662f981670c3d20c5a26e69f7354b28f57092437fcd"
dependencies = [
"clap",
]
[[package]]
name = "clap_derive"
version = "4.3.0"
version = "4.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "191d9573962933b4027f932c600cd252ce27a8ad5979418fe78e43c07996f27b"
checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442"
dependencies = [
"heck 0.4.1",
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
name = "clap_lex"
version = "0.5.1"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd7cc57abe963c6d3b9d8be5b06ba7c8957a930305ca90304f24ef040aa6f961"
checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
[[package]]
name = "cmake"
@ -519,6 +517,36 @@ version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbdcdcb6d86f71c5e97409ad45898af11cbc995b4ee8112d59095a28d376c935"
[[package]]
name = "contest"
version = "0.1.0"
dependencies = [
"anyhow",
"chrono",
"clap",
"clap_derive",
"flate2",
"libcgroups",
"libcontainer",
"nix 0.27.1",
"num_cpus",
"oci-spec",
"once_cell",
"pnet_datalink",
"procfs",
"rand",
"scopeguard",
"serde",
"serde_json",
"tar",
"tempfile",
"test_framework",
"tracing",
"tracing-subscriber",
"uuid",
"which 5.0.0",
]
[[package]]
name = "cooked-waker"
version = "5.0.0"
@ -624,10 +652,10 @@ dependencies = [
"cranelift-control",
"cranelift-entity 0.97.2",
"cranelift-isle 0.97.2",
"gimli 0.27.2",
"gimli 0.27.3",
"hashbrown 0.13.2",
"log",
"regalloc2 0.9.1",
"regalloc2 0.9.3",
"smallvec",
"target-lexicon",
]
@ -856,12 +884,12 @@ dependencies = [
[[package]]
name = "darling"
version = "0.20.1"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0558d22a7b463ed0241e993f76f09f30b126687447751a8638587b864e4b3944"
checksum = "0209d94da627ab5605dcccf08bb18afa5009cfbef48d8a8b7d7bdbc79be25c5e"
dependencies = [
"darling_core 0.20.1",
"darling_macro 0.20.1",
"darling_core 0.20.3",
"darling_macro 0.20.3",
]
[[package]]
@ -880,15 +908,15 @@ dependencies = [
[[package]]
name = "darling_core"
version = "0.20.1"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab8bfa2e259f8ee1ce5e97824a3c55ec4404a0d772ca7fa96bf19f0752a046eb"
checksum = "177e3443818124b357d8e76f53be906d60937f0d3a90773a664fa63fa253e621"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -904,13 +932,13 @@ dependencies = [
[[package]]
name = "darling_macro"
version = "0.20.1"
version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29a358ff9f12ec09c3e61fef9b5a9902623a695a46a917b07f269bff1445611a"
checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5"
dependencies = [
"darling_core 0.20.1",
"darling_core 0.20.3",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -920,7 +948,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856"
dependencies = [
"cfg-if",
"hashbrown 0.14.0",
"hashbrown 0.14.3",
"lock_api",
"once_cell",
"parking_lot_core",
@ -940,6 +968,9 @@ name = "deranged"
version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
dependencies = [
"powerfmt",
]
[[package]]
name = "derivative"
@ -1096,10 +1127,10 @@ version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e08b6c6ab82d70f08844964ba10c7babb716de2ecaeab9be5717918a5177d3af"
dependencies = [
"darling 0.20.1",
"darling 0.20.3",
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -1318,7 +1349,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -1421,9 +1452,9 @@ dependencies = [
[[package]]
name = "gimli"
version = "0.27.2"
version = "0.27.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4"
checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e"
dependencies = [
"fallible-iterator",
"indexmap 1.9.3",
@ -1432,9 +1463,9 @@ dependencies = [
[[package]]
name = "gimli"
version = "0.28.0"
version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253"
[[package]]
name = "glob"
@ -1454,7 +1485,7 @@ dependencies = [
"futures-sink",
"futures-util",
"http",
"indexmap 2.0.0",
"indexmap 2.1.0",
"slab",
"tokio",
"tokio-util",
@ -1491,14 +1522,14 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
dependencies = [
"ahash 0.8.3",
"ahash 0.8.7",
]
[[package]]
name = "hashbrown"
version = "0.14.0"
version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
[[package]]
name = "heapless"
@ -1698,42 +1729,13 @@ dependencies = [
[[package]]
name = "indexmap"
version = "2.0.0"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d"
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
dependencies = [
"equivalent",
"hashbrown 0.14.0",
]
[[package]]
name = "integration_test"
version = "0.1.0"
dependencies = [
"anyhow",
"chrono",
"clap",
"clap_derive",
"flate2",
"libcgroups",
"libcontainer",
"nix 0.27.1",
"num_cpus",
"oci-spec",
"once_cell",
"pnet_datalink",
"procfs",
"rand",
"scopeguard",
"hashbrown 0.14.3",
"serde",
"serde_json",
"tar",
"tempfile",
"test_framework",
"tracing",
"tracing-subscriber",
"uuid",
"which 5.0.0",
]
[[package]]
@ -1759,9 +1761,9 @@ dependencies = [
[[package]]
name = "io-lifetimes"
version = "2.0.1"
version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c2355a5aef60b1c70b7001bd60ce60deebe6a98d95dff5a873519b125a3af51"
checksum = "5a611371471e98973dbcab4e0ec66c31a10bc356eeb4d54a0e05eac8158fe38c"
[[package]]
name = "ipnet"
@ -1833,6 +1835,15 @@ dependencies = [
"cc",
]
[[package]]
name = "jobserver"
version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d"
dependencies = [
"libc",
]
[[package]]
name = "js-sys"
version = "0.3.61"
@ -1876,7 +1887,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75adb4021282a72ca63ebbc0e4247750ad74ede68ff062d247691072d709ad8b"
dependencies = [
"cc",
"nix 0.26.2",
"nix 0.26.4",
"num_cpus",
"pkg-config",
]
@ -2173,7 +2184,7 @@ dependencies = [
"cfg-if",
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -2202,16 +2213,15 @@ dependencies = [
[[package]]
name = "nix"
version = "0.26.2"
version = "0.26.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a"
checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b"
dependencies = [
"bitflags 1.3.2",
"cfg-if",
"libc",
"memoffset 0.7.1",
"pin-utils",
"static_assertions",
]
[[package]]
@ -2326,9 +2336,9 @@ dependencies = [
[[package]]
name = "object"
version = "0.32.0"
version = "0.32.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77ac5bbd07aea88c60a577a1ce218075ffd59208b2d7ca97adf9bfc5aeb21ebe"
checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441"
dependencies = [
"memchr",
]
@ -2376,7 +2386,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -2467,7 +2477,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9"
dependencies = [
"fixedbitset",
"indexmap 2.0.0",
"indexmap 2.1.0",
]
[[package]]
@ -2500,7 +2510,7 @@ dependencies = [
"phf_shared",
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -2529,7 +2539,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -2582,6 +2592,12 @@ dependencies = [
"winapi",
]
[[package]]
name = "powerfmt"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "ppv-lite86"
version = "0.2.17"
@ -2632,7 +2648,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
dependencies = [
"once_cell",
"toml_edit",
"toml_edit 0.19.15",
]
[[package]]
@ -2913,9 +2929,9 @@ dependencies = [
[[package]]
name = "regalloc2"
version = "0.9.1"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12513beb38dd35aab3ac5f5b89fd0330159a0dc21d5309d75073011bbc8032b0"
checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6"
dependencies = [
"hashbrown 0.13.2",
"log",
@ -3130,7 +3146,7 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
dependencies = [
"semver 1.0.17",
"semver 1.0.21",
]
[[package]]
@ -3294,9 +3310,9 @@ dependencies = [
[[package]]
name = "semver"
version = "1.0.17"
version = "1.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed"
checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0"
dependencies = [
"serde",
]
@ -3345,7 +3361,7 @@ checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -3394,11 +3410,11 @@ dependencies = [
[[package]]
name = "serde_yaml"
version = "0.9.25"
version = "0.9.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a49e178e4452f45cb61d0cd8cebc1b0fafd3e41929e996cef79aa3aca91f574"
checksum = "b1bf28c79a99f70ee1f1d83d10c875d2e70618417fda01ad1785e027579d9d38"
dependencies = [
"indexmap 2.0.0",
"indexmap 2.1.0",
"itoa",
"ryu",
"serde",
@ -3427,7 +3443,7 @@ checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -3594,12 +3610,6 @@ dependencies = [
"version_check",
]
[[package]]
name = "static_assertions"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "stdweb"
version = "0.4.20"
@ -3668,9 +3678,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.47"
version = "2.0.48"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1726efe18f42ae774cc644f330953a5e7b3c3003d3edcecf18850fe9d4dd9afb"
checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f"
dependencies = [
"proc-macro2",
"quote",
@ -3708,10 +3718,10 @@ dependencies = [
"cap-fs-ext",
"cap-std",
"fd-lock",
"io-lifetimes 2.0.1",
"io-lifetimes 2.0.3",
"rustix 0.38.28",
"windows-sys 0.48.0",
"winx 0.36.1",
"winx 0.36.3",
]
[[package]]
@ -3818,7 +3828,7 @@ checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -3848,24 +3858,25 @@ dependencies = [
[[package]]
name = "time"
version = "0.3.28"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17f6bb557fd245c28e6411aa56b6403c689ad95061f50e4be16c274e70a17e48"
checksum = "f657ba42c3f86e7680e53c8cd3af8abbe56b5491790b46e22e19c0d57463583e"
dependencies = [
"deranged",
"itoa",
"libc",
"num_threads",
"powerfmt",
"serde",
"time-core",
"time-macros 0.2.14",
"time-macros 0.2.16",
]
[[package]]
name = "time-core"
version = "0.1.1"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb"
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
[[package]]
name = "time-macros"
@ -3879,9 +3890,9 @@ dependencies = [
[[package]]
name = "time-macros"
version = "0.2.14"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1a942f44339478ef67935ab2bbaec2fb0322496cf3cbe84b261e06ac3814c572"
checksum = "26197e33420244aeb70c3e8c78376ca46571bc4e701e4791c2cd9f57dcb3a43f"
dependencies = [
"time-core",
]
@ -3940,7 +3951,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -3988,14 +3999,26 @@ dependencies = [
[[package]]
name = "toml"
version = "0.7.6"
version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c17e963a819c331dcacd7ab957d80bc2b9a9c1e71c804826d2f283dd65306542"
checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit",
"toml_edit 0.19.15",
]
[[package]]
name = "toml"
version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit 0.21.0",
]
[[package]]
@ -4013,7 +4036,20 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap 2.0.0",
"indexmap 2.1.0",
"serde",
"serde_spanned",
"toml_datetime",
"winnow",
]
[[package]]
name = "toml_edit"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03"
dependencies = [
"indexmap 2.1.0",
"serde",
"serde_spanned",
"toml_datetime",
@ -4046,7 +4082,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -4234,7 +4270,7 @@ checksum = "1290fd64cc4e7d3c9b07d7f333ce0ce0007253e32870e632624835cc80b83939"
dependencies = [
"anyhow",
"rustversion",
"time 0.3.28",
"time 0.3.31",
]
[[package]]
@ -4581,7 +4617,7 @@ checksum = "dbe80d95a88e9ac87b6aaf7bc9acd1fdfcd92045db2bf41a2262f623e2406a92"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.47",
"syn 2.0.48",
]
[[package]]
@ -4721,19 +4757,20 @@ dependencies = [
[[package]]
name = "wasmer-toml"
version = "0.6.0"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4232db0aff83ed6208d541ddcf1bf72730673528be8c4fe13c6369060f6e05a7"
checksum = "d21472954ee9443235ca32522b17fc8f0fe58e2174556266a0d9766db055cc52"
dependencies = [
"anyhow",
"indexmap 1.9.3",
"semver 1.0.17",
"derive_builder",
"indexmap 2.1.0",
"semver 1.0.21",
"serde",
"serde_cbor",
"serde_json",
"serde_yaml 0.9.25",
"serde_yaml 0.9.30",
"thiserror",
"toml 0.5.11",
"toml 0.8.8",
]
[[package]]
@ -4807,7 +4844,7 @@ dependencies = [
"pin-project",
"rand",
"reqwest",
"semver 1.0.17",
"semver 1.0.21",
"serde",
"serde_cbor",
"serde_derive",
@ -4876,7 +4913,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29e3ac9b780c7dda0cac7a52a5d6d2d6707cc6e3451c9db209b6c758f40d7acb"
dependencies = [
"indexmap 1.9.3",
"semver 1.0.17",
"semver 1.0.21",
]
[[package]]
@ -4886,8 +4923,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c35daf77afb4f9b14016625144a391085ec2ca99ca9cc53ed291bb53ab5278d"
dependencies = [
"bitflags 2.4.1",
"indexmap 2.0.0",
"semver 1.0.17",
"indexmap 2.1.0",
"semver 1.0.21",
]
[[package]]
@ -5001,7 +5038,7 @@ dependencies = [
"cranelift-frontend 0.97.2",
"cranelift-native",
"cranelift-wasm",
"gimli 0.27.2",
"gimli 0.27.3",
"log",
"object 0.30.4",
"target-lexicon",
@ -5021,7 +5058,7 @@ dependencies = [
"cranelift-codegen 0.97.2",
"cranelift-control",
"cranelift-native",
"gimli 0.27.2",
"gimli 0.27.3",
"object 0.30.4",
"target-lexicon",
"wasmtime-environ",
@ -5035,7 +5072,7 @@ checksum = "32b60e4ae5c9ae81750d8bc59110bf25444aa1d9266c19999c3b64b801db3c73"
dependencies = [
"anyhow",
"cranelift-entity 0.97.2",
"gimli 0.27.2",
"gimli 0.27.3",
"indexmap 1.9.3",
"log",
"object 0.30.4",
@ -5073,7 +5110,7 @@ dependencies = [
"bincode",
"cfg-if",
"cpp_demangle",
"gimli 0.27.2",
"gimli 0.27.3",
"ittapi",
"log",
"object 0.30.4",
@ -5184,7 +5221,7 @@ checksum = "351c9d4e60658dd0cf616c12c5508f86cc2cefcc0cff307eed0a31b23d3c0b70"
dependencies = [
"anyhow",
"cranelift-codegen 0.97.2",
"gimli 0.27.2",
"gimli 0.27.3",
"object 0.30.4",
"target-lexicon",
"wasmparser 0.107.0",
@ -5246,9 +5283,9 @@ dependencies = [
[[package]]
name = "webc"
version = "5.1.1"
version = "5.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d8b985cecc5a364f746c7fcd6e5396986360a58550072f2f9147a07532f525c"
checksum = "973ca5a91b4fb3e4bb37cfebe03ef9364d0aff2765256abefdb7e79dc9188483"
dependencies = [
"anyhow",
"base64",
@ -5261,6 +5298,7 @@ dependencies = [
"once_cell",
"path-clean",
"rand",
"semver 1.0.21",
"serde",
"serde_cbor",
"serde_json",
@ -5269,7 +5307,7 @@ dependencies = [
"tar",
"tempfile",
"thiserror",
"toml 0.7.6",
"toml 0.7.8",
"url",
"walkdir",
"wasmer-toml",
@ -5393,8 +5431,8 @@ checksum = "b1bf2ac354be169bb201de7867b84f45d91d0ef812f67f11c33f74a7f5a24e56"
dependencies = [
"anyhow",
"cranelift-codegen 0.97.2",
"gimli 0.27.2",
"regalloc2 0.9.1",
"gimli 0.27.3",
"regalloc2 0.9.3",
"smallvec",
"target-lexicon",
"wasmparser 0.107.0",
@ -5617,12 +5655,12 @@ dependencies = [
[[package]]
name = "winx"
version = "0.36.1"
version = "0.36.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4857cedf8371f690bb6782a3e2b065c54d1b6661be068aaf3eac8b45e813fdf8"
checksum = "f9643b83820c0cd246ecabe5fa454dd04ba4fa67996369466d0747472d337346"
dependencies = [
"bitflags 2.4.1",
"windows-sys 0.48.0",
"windows-sys 0.52.0",
]
[[package]]
@ -5636,7 +5674,7 @@ dependencies = [
"indexmap 1.9.3",
"log",
"pulldown-cmark",
"semver 1.0.17",
"semver 1.0.21",
"unicode-xid",
"url",
]
@ -5715,6 +5753,26 @@ dependencies = [
"wasmtime-wasi",
]
[[package]]
name = "zerocopy"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.48",
]
[[package]]
name = "zstd"
version = "0.11.2+zstd.1.5.2"

@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["tests/runtimetest/","tests/integration_test/","tests/test_framework/","crates/*", "tools/*"]
members = ["crates/*", "tests/contest/*", "tools/*"]
[profile.release]
lto = true

@ -8,7 +8,7 @@ cwd := justfile_directory()
# build
# build all binaries
build-all: youki-release rust-oci-tests-bin runtimetest
build-all: youki-release contest
# build youki in dev mode
youki-dev:
@ -22,14 +22,14 @@ youki-release:
runtimetest:
{{ cwd }}/scripts/build.sh -o {{ cwd }} -r -c runtimetest
# build rust oci tests binary
rust-oci-tests-bin:
{{ cwd }}/scripts/build.sh -o {{ cwd }} -r -c integration-test
# build contest
contest:
{{ cwd }}/scripts/build.sh -o {{ cwd }} -r -c contest
# Tests
# run integration tests
test-integration: test-oci rust-oci-tests
test-integration: test-oci test-contest
# run all tests except rust-oci
test-all: test-basic test-features test-oci containerd-test # currently not doing rust-oci here
@ -54,11 +54,11 @@ test-oci:
{{ cwd }}/scripts/oci_integration_tests.sh {{ cwd }}
# run rust oci integration tests
rust-oci-tests: youki-release runtimetest rust-oci-tests-bin
{{ cwd }}/scripts/rust_integration_tests.sh {{ cwd }}/youki
test-contest: youki-release contest
{{ cwd }}/scripts/contest.sh {{ cwd }}/youki
# validate rust oci integration tests on runc
validate-rust-oci-runc: runtimetest rust-oci-tests-bin
validate-contest-runc: contest
{{ cwd }}/scripts/rust_integration_tests.sh runc
# test podman rootless works with youki
@ -190,4 +190,4 @@ version-up version:
set -ex
git grep -l "^version = .* # MARK: Version" | xargs sed -i 's/version = "[0-9]\.[0-9]\.[0-9]" # MARK: Version/version = "{{version}}" # MARK: Version/g'
git grep -l "} # MARK: Version" | grep -v justfile | xargs sed -i 's/version = "[0-9]\.[0-9]\.[0-9]" } # MARK: Version/version = "{{version}}" } # MARK: Version/g'
{{ cwd }}/scripts/release_tag.sh {{version}}
{{ cwd }}/scripts/release_tag.sh {{version}}

@ -14,6 +14,7 @@ CRATE="youki"
TARGET=${TARGET:-$HOST_TARGET}
CARGO=${CARGO:-}
features=""
while getopts f:ro:c:t:xh OPT; do
case $OPT in
f) features=${OPTARG}
@ -77,18 +78,13 @@ if [ "$CRATE" == "youki" ]; then
mv "$("$CARGO_SH" --print-target-dir)/${TARGET}/${VERSION}/youki" "${OUTPUT}/"
fi
if [ "$CRATE" == "integration-test" ]; then
rm -f "${OUTPUT}/integration_test"
"$CARGO_SH" build ${OPTION} "${FEATURES[@]}" --bin integration_test
mv "$("$CARGO_SH" --print-target-dir)/${TARGET}/${VERSION}/integration_test" "${OUTPUT}/"
fi
if [ "$CRATE" == "contest" ]; then
find ${OUTPUT} -maxdepth 1 -type f -name "contest" -exec rm -ifv {} \;
"$CARGO_SH" build ${OPTION} "${FEATURES[@]}" --bin contest
mv ${ROOT}/target/${TARGET}/${VERSION}/contest ${OUTPUT}/
if [ "$CRATE" == "runtimetest" ]; then
rm -f "${OUTPUT}/runtimetest"
export CARGO_TARGET_DIR="$ROOT/runtimetest-target"
export RUSTFLAGS="-Ctarget-feature=+crt-static"
"$CARGO_SH" build ${OPTION} "${FEATURES[@]}" --bin runtimetest
mv "$("$CARGO_SH" --print-target-dir)/${TARGET}/${VERSION}/runtimetest" "${OUTPUT}/"
find ${OUTPUT} -maxdepth 1 -type f -name "runtimetest" -exec rm -ifv {} \;
CONTEST_TARGET="$ROOT/contest-target"
CARGO_TARGET_DIR=${CONTEST_TARGET} RUSTFLAGS="-Ctarget-feature=+crt-static" "$CARGO_SH" build ${OPTION} "${FEATURES[@]}" --bin runtimetest
mv ${CONTEST_TARGET}/${TARGET}/${VERSION}/runtimetest ${OUTPUT}/
fi
exit 0

@ -20,11 +20,11 @@ ROOT=${2-$(git rev-parse --show-toplevel)}
LOGFILE="${ROOT}/test.log"
if [ ! -f ${ROOT}/bundle.tar.gz ]; then
cp ${ROOT}/tests/integration_test/bundle.tar.gz ${ROOT}/bundle.tar.gz
cp ${ROOT}/tests/contest/contest/bundle.tar.gz ${ROOT}/bundle.tar.gz
fi
touch ${LOGFILE}
sudo ${ROOT}/integration_test run --runtime "$RUNTIME" --runtimetest ${ROOT}/runtimetest > $LOGFILE
sudo ${ROOT}/contest run --runtime "$RUNTIME" --runtimetest ${ROOT}/runtimetest > $LOGFILE
if [ 0 -ne $(grep "not ok" $LOGFILE | wc -l ) ]; then
cat $LOGFILE

@ -1,5 +1,5 @@
[package]
name = "integration_test"
name = "contest"
version = "0.1.0"
edition = "2021"
@ -7,8 +7,8 @@ edition = "2021"
anyhow = "1.0"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
flate2 = "1.0"
libcgroups = { path = "../../crates/libcgroups" }
libcontainer = { path = "../../crates/libcontainer" }
libcgroups = { path = "../../../crates/libcgroups" }
libcontainer = { path = "../../../crates/libcontainer" }
nix = "0.27.1"
num_cpus = "1.16"
oci-spec = { version = "0.6.4", features = ["runtime"] }

@ -17,7 +17,7 @@ use crate::tests::tlb::get_tlb_test;
use crate::utils::support::{set_runtime_path, set_runtimetest_path};
use anyhow::{Context, Result};
use clap::Parser;
use integration_test::logger;
use contest::logger;
use std::path::{Path, PathBuf};
use test_framework::TestManager;
use tests::cgroups;

@ -1 +1 @@
Subproject commit a6a073817ab0311b14dadeb6491b968c5bc35d7e
Subproject commit 408c51e934dc558e90e13f63a808f1bd6b155fd2