[INFO] cloning repository https://github.com/dtcxzyw/agent-detector
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dtcxzyw/agent-detector" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdtcxzyw%2Fagent-detector", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdtcxzyw%2Fagent-detector'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fd9b5d1e12b29fdcc31a124abc4fcd7ada39071f
[INFO] testing dtcxzyw/agent-detector against 1.98.0-beta.1 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdtcxzyw%2Fagent-detector" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-5-tc2/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/dtcxzyw/agent-detector
[INFO] finished tweaking git repo https://github.com/dtcxzyw/agent-detector
[INFO] tweaked toml for git repo https://github.com/dtcxzyw/agent-detector written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dtcxzyw/agent-detector on toolchain 1.98.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dtcxzyw/agent-detector 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" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b
[INFO] running `Command { std: "docker" "start" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling sysinfo v0.38.4
[INFO] [stderr]    Compiling agent-detector v0.2.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.05s
[INFO] running `Command { std: "docker" "inspect" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling agent-detector v0.2.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s
[INFO] running `Command { std: "docker" "inspect" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/agent_detector-0fa7910dea9afb61)
[INFO] [stdout] 
[INFO] [stdout] running 28 tests
[INFO] [stdout] test process::tests::case_insensitive ... ok
[INFO] [stdout] test process::tests::exact_match ... ok
[INFO] [stdout] test process::tests::exe_suffix_in_name ... ok
[INFO] [stdout] test process::tests::no_match_different_name ... ok
[INFO] [stdout] test tests::test_agent_name_with_env_var ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_agent ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_agent_empty ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_ai_agent ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_ai_agent_empty ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_agent_whitespace ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_ai_agent_priority ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_ai_agent_whitespace ... ok
[INFO] [stdout] test tests::test_check_standard_env_var_none ... ok
[INFO] [stdout] test tests::test_check_tool_env_var_codex ... ok
[INFO] [stdout] test tests::test_check_tool_env_var_claude ... ok
[INFO] [stdout] test process::tests::strip_exe_suffix ... ok
[INFO] [stdout] test tests::test_check_tool_env_var_cursor ... ok
[INFO] [stdout] test tests::test_check_tool_env_var_empty_value ... ok
[INFO] [stdout] test tests::test_check_tool_env_var_gemini ... ok
[INFO] [stdout] test tests::test_check_tool_env_var_none ... ok
[INFO] [stdout] test tests::test_check_tool_env_var_opencode ... ok
[INFO] [stdout] test tests::test_cowork_empty_cowork_value ... ok
[INFO] [stdout] test tests::test_cowork_requires_claudecode ... ok
[INFO] [stdout] test tests::test_cowork_with_claudecode ... ok
[INFO] [stdout] test tests::test_cursor_extension_host_role_agent_exec ... ok
[INFO] [stdout] test tests::test_cursor_extension_host_role_other_value ... ok
[INFO] [stdout] test tests::test_detect_with_env_var ... ok
[INFO] [stdout] test tests::test_is_agent_with_env_var ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 28 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/whichagent-5be397424cd166ba)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests agent_detector
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/lib.rs - (line 10) ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 0.38s; merged doctests compilation took 0.37s
[INFO] running `Command { std: "docker" "inspect" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b", kill_on_drop: false }`
[INFO] [stdout] 8c970cce0cb00ffe028dae01a20f18bc35651f61e9b773b410bb9db27a25575b
