[INFO] cloning repository https://github.com/chimera-kube/psp-capabilities [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chimera-kube/psp-capabilities" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchimera-kube%2Fpsp-capabilities", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchimera-kube%2Fpsp-capabilities'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] da9f863bb47a0bd5097f1c5284318665aa25fab8 [INFO] testing chimera-kube/psp-capabilities against master#d117135f5a9b69ee3adfb1918aa25616758bf692 for pr-107251 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchimera-kube%2Fpsp-capabilities" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chimera-kube/psp-capabilities on toolchain d117135f5a9b69ee3adfb1918aa25616758bf692 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d117135f5a9b69ee3adfb1918aa25616758bf692" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/chimera-kube/psp-capabilities [INFO] finished tweaking git repo https://github.com/chimera-kube/psp-capabilities [INFO] tweaked toml for git repo https://github.com/chimera-kube/psp-capabilities written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/chimera-kube/psp-capabilities already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d117135f5a9b69ee3adfb1918aa25616758bf692" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wapc-guest v1.0.0 [INFO] [stderr] Downloaded kubewarden-policy-sdk v0.8.7 [INFO] [stderr] Downloaded k8s-openapi v0.17.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+d117135f5a9b69ee3adfb1918aa25616758bf692" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 18030fa726e1c631af8af0b9c34a00e018e288fd650552f774b355c74b66ec0b [INFO] running `Command { std: "docker" "start" "-a" "18030fa726e1c631af8af0b9c34a00e018e288fd650552f774b355c74b66ec0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18030fa726e1c631af8af0b9c34a00e018e288fd650552f774b355c74b66ec0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18030fa726e1c631af8af0b9c34a00e018e288fd650552f774b355c74b66ec0b", kill_on_drop: false }` [INFO] [stdout] 18030fa726e1c631af8af0b9c34a00e018e288fd650552f774b355c74b66ec0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+d117135f5a9b69ee3adfb1918aa25616758bf692" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 661260105c82d3a6dc6fffe03235c542898aa373051512fd30ee0fc557595da0 [INFO] running `Command { std: "docker" "start" "-a" "661260105c82d3a6dc6fffe03235c542898aa373051512fd30ee0fc557595da0", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling syn v1.0.103 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling num-bigint v0.4.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling k8s-openapi v0.17.0 [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling unsafe-libyaml v0.2.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling wapc-guest v1.0.0 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling ordered-float v2.1.1 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling serde v1.0.147 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling serde_yaml v0.9.16 [INFO] [stderr] Compiling jsonpath_lib v0.3.0 [INFO] [stderr] Compiling kubewarden-policy-sdk v0.8.7 [INFO] [stderr] Compiling capabilities-psp v0.1.10 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.75s [INFO] running `Command { std: "docker" "inspect" "661260105c82d3a6dc6fffe03235c542898aa373051512fd30ee0fc557595da0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "661260105c82d3a6dc6fffe03235c542898aa373051512fd30ee0fc557595da0", kill_on_drop: false }` [INFO] [stdout] 661260105c82d3a6dc6fffe03235c542898aa373051512fd30ee0fc557595da0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+d117135f5a9b69ee3adfb1918aa25616758bf692" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 37c3295904efef1db615c8d3ff64dfe086a5fc6051090b8e21942fb648129adf [INFO] running `Command { std: "docker" "start" "-a" "37c3295904efef1db615c8d3ff64dfe086a5fc6051090b8e21942fb648129adf", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling test_helpers v0.1.0 (/opt/rustwide/workdir/test_helpers) [INFO] [stderr] Compiling assert-json-diff v2.0.2 [INFO] [stderr] Compiling capabilities-psp v0.1.10 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.05s [INFO] running `Command { std: "docker" "inspect" "37c3295904efef1db615c8d3ff64dfe086a5fc6051090b8e21942fb648129adf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37c3295904efef1db615c8d3ff64dfe086a5fc6051090b8e21942fb648129adf", kill_on_drop: false }` [INFO] [stdout] 37c3295904efef1db615c8d3ff64dfe086a5fc6051090b8e21942fb648129adf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+d117135f5a9b69ee3adfb1918aa25616758bf692" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 23bf47e2091b86789b58959dca5fe49157f41805a44e55721014b5b1db33db09 [INFO] running `Command { std: "docker" "start" "-a" "23bf47e2091b86789b58959dca5fe49157f41805a44e55721014b5b1db33db09", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/capabilities_psp-c5c53374e023143a) [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test settings::tests::validate_handles_spots_default_added_caps_that_are_required_to_be_dropped_too ... ok [INFO] [stdout] test settings::tests::allow_all_capabilities_enabled ... ok [INFO] [stdout] test settings::tests::validate_handles_default_add_capabilities_set_to_star ... ok [INFO] [stdout] test settings::tests::validate_spots_default_add_capability_not_allowed ... ok [INFO] [stdout] test mutate::tests::extend_existing_add_capabilities ... ok [INFO] [stdout] test mutate::tests::extend_existing_drop_capabilities ... ok [INFO] [stdout] test mutate::tests::handle_security_context_without_capabilities ... ok [INFO] [stdout] test mutate::tests::handle_security_context_does_not_exist ... ok [INFO] [stdout] test mutate::tests::handle_init_containers ... ok [INFO] [stdout] test validate::tests::find_not_allowed_caps_added_to_container ... ok [INFO] [stdout] test validate::tests::find_cap_that_must_be_dropped_inside_of_user_added_caps ... ok [INFO] [stdout] test validate::tests::find_not_allowed_caps_added_to_init_container ... ok [INFO] [stdout] test validate::tests::allow_only_container_runtime_default_capabilities ... ok [INFO] [stdout] test tests::no_mutation_is_done ... ok [INFO] [stdout] test tests::ensure_failure_on_unwrap_does_not_happen_anymore ... ok [INFO] [stdout] test tests::do_mutations_when_security_context_does_not_exist ... ok [INFO] [stdout] test tests::do_mutations_when_security_context_exists ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "23bf47e2091b86789b58959dca5fe49157f41805a44e55721014b5b1db33db09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23bf47e2091b86789b58959dca5fe49157f41805a44e55721014b5b1db33db09", kill_on_drop: false }` [INFO] [stdout] 23bf47e2091b86789b58959dca5fe49157f41805a44e55721014b5b1db33db09