[INFO] cloning repository https://github.com/tmuntaner/policy-required-labels [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tmuntaner/policy-required-labels" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftmuntaner%2Fpolicy-required-labels", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftmuntaner%2Fpolicy-required-labels'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 010e70065cc542052ec604a7757fd4e3e53c3112 [INFO] testing tmuntaner/policy-required-labels against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftmuntaner%2Fpolicy-required-labels" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tmuntaner/policy-required-labels [INFO] finished tweaking git repo https://github.com/tmuntaner/policy-required-labels [INFO] tweaked toml for git repo https://github.com/tmuntaner/policy-required-labels written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tmuntaner/policy-required-labels on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tmuntaner/policy-required-labels 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `k8s-openapi` dependency) [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded slog v2.7.0 [INFO] [stderr] Downloaded kubewarden-policy-sdk v0.8.7 [INFO] [stderr] Downloaded serde_yaml v0.9.25 [INFO] [stderr] Downloaded wapc-guest v1.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e386c361893fe89648797ae0a940d4cf8941be32db788a04a8c068f882b3660a [INFO] running `Command { std: "docker" "start" "-a" "e386c361893fe89648797ae0a940d4cf8941be32db788a04a8c068f882b3660a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e386c361893fe89648797ae0a940d4cf8941be32db788a04a8c068f882b3660a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e386c361893fe89648797ae0a940d4cf8941be32db788a04a8c068f882b3660a", kill_on_drop: false }` [INFO] [stdout] e386c361893fe89648797ae0a940d4cf8941be32db788a04a8c068f882b3660a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 709c889bc420839f900c2093d71fb1dd802dd4289126f5ef6160e378a373f04c [INFO] running `Command { std: "docker" "start" "-a" "709c889bc420839f900c2093d71fb1dd802dd4289126f5ef6160e378a373f04c", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `k8s-openapi` dependency) [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling smallvec v1.11.0 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling k8s-openapi v0.17.0 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling unsafe-libyaml v0.2.9 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling wapc-guest v1.1.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling ordered-float v2.10.0 [INFO] [stderr] Compiling num-complex v0.4.4 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num v0.4.1 [INFO] [stderr] Compiling chrono v0.4.28 [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling serde_yaml v0.9.25 [INFO] [stderr] Compiling kubewarden-policy-sdk v0.8.7 [INFO] [stderr] Compiling policy-required-labels v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.44s [INFO] running `Command { std: "docker" "inspect" "709c889bc420839f900c2093d71fb1dd802dd4289126f5ef6160e378a373f04c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "709c889bc420839f900c2093d71fb1dd802dd4289126f5ef6160e378a373f04c", kill_on_drop: false }` [INFO] [stdout] 709c889bc420839f900c2093d71fb1dd802dd4289126f5ef6160e378a373f04c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d060b66a5641dbd6eeabcd52a026243db76b6c6a960d58dc0ae5caff5230fac4 [INFO] running `Command { std: "docker" "start" "-a" "d060b66a5641dbd6eeabcd52a026243db76b6c6a960d58dc0ae5caff5230fac4", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `k8s-openapi` dependency) [INFO] [stderr] Compiling policy-required-labels v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.55s [INFO] running `Command { std: "docker" "inspect" "d060b66a5641dbd6eeabcd52a026243db76b6c6a960d58dc0ae5caff5230fac4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d060b66a5641dbd6eeabcd52a026243db76b6c6a960d58dc0ae5caff5230fac4", kill_on_drop: false }` [INFO] [stdout] d060b66a5641dbd6eeabcd52a026243db76b6c6a960d58dc0ae5caff5230fac4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a8a022d591540fa9711eabee54954ed7918685f6e5e19ce01e6056d903930f6c [INFO] running `Command { std: "docker" "start" "-a" "a8a022d591540fa9711eabee54954ed7918685f6e5e19ce01e6056d903930f6c", kill_on_drop: false }` [INFO] [stderr] warning: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition [INFO] [stderr] (in the `k8s-openapi` dependency) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/policy_required_labels-7e5a011b2f4bae19) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test settings::tests::validate_settings ... ok [INFO] [stdout] test tests::accept_request_with_non_pod_resource ... ok [INFO] [stdout] test tests::accept_pod_with_valid_name ... ok [INFO] [stdout] test tests::reject_pod_with_invalid_label_owner ... ok [INFO] [stdout] test tests::reject_pod_with_missing_label_cost_center ... ok [INFO] [stdout] test tests::reject_pod_with_missing_label_owner ... ok [INFO] [stdout] test tests::reject_pod_with_missing_labels ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a8a022d591540fa9711eabee54954ed7918685f6e5e19ce01e6056d903930f6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8a022d591540fa9711eabee54954ed7918685f6e5e19ce01e6056d903930f6c", kill_on_drop: false }` [INFO] [stdout] a8a022d591540fa9711eabee54954ed7918685f6e5e19ce01e6056d903930f6c