[INFO] cloning repository https://github.com/tenxhq/tenx-hooks [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tenxhq/tenx-hooks" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftenxhq%2Ftenx-hooks", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftenxhq%2Ftenx-hooks'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bcf7afb38ea50122ea90404fe561bf5f802743f5 [INFO] testing tenxhq/tenx-hooks against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftenxhq%2Ftenx-hooks" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tenxhq/tenx-hooks [INFO] finished tweaking git repo https://github.com/tenxhq/tenx-hooks [INFO] tweaked toml for git repo https://github.com/tenxhq/tenx-hooks written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tenxhq/tenx-hooks on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tenxhq/tenx-hooks 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae690fb9ca2d038488b97ad16a0ae4b4e8b43eacf867d1b125c2af798593e7ea [INFO] running `Command { std: "docker" "start" "-a" "ae690fb9ca2d038488b97ad16a0ae4b4e8b43eacf867d1b125c2af798593e7ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae690fb9ca2d038488b97ad16a0ae4b4e8b43eacf867d1b125c2af798593e7ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae690fb9ca2d038488b97ad16a0ae4b4e8b43eacf867d1b125c2af798593e7ea", kill_on_drop: false }` [INFO] [stdout] ae690fb9ca2d038488b97ad16a0ae4b4e8b43eacf867d1b125c2af798593e7ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 595b6edf8d1a363de8baa3edb3a8183cd666d4697ea6e6f4cd029e382af3a79b [INFO] running `Command { std: "docker" "start" "-a" "595b6edf8d1a363de8baa3edb3a8183cd666d4697ea6e6f4cd029e382af3a79b", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling clap_builder v4.5.40 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling clap v4.5.40 [INFO] [stderr] Compiling onig v6.5.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling plist v1.7.2 [INFO] [stderr] Compiling claude-transcript v0.0.1 (/opt/rustwide/workdir/crates/claude-transcript) [INFO] [stderr] Compiling syntect v5.2.0 [INFO] [stderr] Compiling code-hooks v0.0.1 (/opt/rustwide/workdir/crates/code-hooks) [INFO] [stderr] Compiling rust-hook v0.0.1 (/opt/rustwide/workdir/crates/rust-hook) [INFO] [stderr] Compiling hooktest v0.0.1 (/opt/rustwide/workdir/crates/hooktest) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.43s [INFO] running `Command { std: "docker" "inspect" "595b6edf8d1a363de8baa3edb3a8183cd666d4697ea6e6f4cd029e382af3a79b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "595b6edf8d1a363de8baa3edb3a8183cd666d4697ea6e6f4cd029e382af3a79b", kill_on_drop: false }` [INFO] [stdout] 595b6edf8d1a363de8baa3edb3a8183cd666d4697ea6e6f4cd029e382af3a79b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d5cf19d8d41eb2be9f36c353fac076d2ebde889981b941e1cbe2c01a7ccd642 [INFO] running `Command { std: "docker" "start" "-a" "7d5cf19d8d41eb2be9f36c353fac076d2ebde889981b941e1cbe2c01a7ccd642", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling onig v6.5.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling assert_cmd v2.0.17 [INFO] [stderr] Compiling code-hooks v0.0.1 (/opt/rustwide/workdir/crates/code-hooks) [INFO] [stderr] Compiling syntect v5.2.0 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling rust-hook v0.0.1 (/opt/rustwide/workdir/crates/rust-hook) [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling claude-transcript v0.0.1 (/opt/rustwide/workdir/crates/claude-transcript) [INFO] [stderr] Compiling hooktest v0.0.1 (/opt/rustwide/workdir/crates/hooktest) [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/hooktest/tests/cli_tests.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut file = NamedTempFile::new().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 28.09s [INFO] running `Command { std: "docker" "inspect" "7d5cf19d8d41eb2be9f36c353fac076d2ebde889981b941e1cbe2c01a7ccd642", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d5cf19d8d41eb2be9f36c353fac076d2ebde889981b941e1cbe2c01a7ccd642", kill_on_drop: false }` [INFO] [stdout] 7d5cf19d8d41eb2be9f36c353fac076d2ebde889981b941e1cbe2c01a7ccd642 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6d227fadd3e668d7b1e92b24f1bfdc9468c4437b8048dba4fe40708275f6fc62 [INFO] running `Command { std: "docker" "start" "-a" "6d227fadd3e668d7b1e92b24f1bfdc9468c4437b8048dba4fe40708275f6fc62", kill_on_drop: false }` [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/hooktest/tests/cli_tests.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | let mut file = NamedTempFile::new().unwrap(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `hooktest` (test "cli_tests") generated 1 warning (run `cargo fix --test "cli_tests" -p hooktest` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/claude_transcript-45e719f4cb6b4d25) [INFO] [stdout] [INFO] [stderr] Running tests/test_transcript_parsing.rs (/opt/rustwide/target/debug/deps/test_transcript_parsing-940b55cd93f37017) [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] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test test_assistant_api_error_without_request_id ... ok [INFO] [stdout] test test_complex_content_structures ... ok [INFO] [stdout] test test_parse_transcript_with_context_errors ... ok [INFO] [stdout] test test_assistant_thinking_content ... ok [INFO] [stdout] test test_system_entry_without_tool_use_id ... ok [INFO] [stdout] test test_tool_result_with_array_content ... ok [INFO] [stdout] test test_system_entry_without_level ... ok [INFO] [stdout] test test_parse_various_entry_types ... ok [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/code_hooks-2c35b0ecb63e17f1) [INFO] [stdout] test test_tool_uses_parsing ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test notification::tests::test_notification_roundtrip ... ok [INFO] [stdout] test error::tests::test_error_display ... ok [INFO] [stdout] test posttool::tests::test_post_tool_use_roundtrip ... ok [INFO] [stdout] test pretool::tests::test_pre_tool_use_roundtrip ... ok [INFO] [stdout] test stop::tests::test_stop_roundtrip ... ok [INFO] [stdout] test subagent_stop::tests::test_subagent_stop_roundtrip ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/hooktest-0790dfa5e6c10995) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test input::tests::test_parse_string_inputs ... ok [INFO] [stderr] Running tests/cli_tests.rs (/opt/rustwide/target/debug/deps/cli_tests-e59db54179fee0bd) [INFO] [stdout] test input::tests::test_combine_inputs ... ok [INFO] [stdout] test input::tests::test_parse_json_inputs ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test test_help ... ok [INFO] [stdout] test test_posttool ... ok [INFO] [stdout] test test_subagent_stop ... ok [INFO] [stdout] test test_pretool ... ok [INFO] [stdout] test test_notification ... FAILED [INFO] [stdout] test test_stop ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_notification stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_notification' (40) panicked at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5: [INFO] [stdout] Unexpected failure. [INFO] [stdout] code=1 [INFO] [stdout] stderr=`````` [INFO] [stdout] Error: Broken pipe (os error 32) [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: >::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.98/src/backtrace.rs:27:14 [INFO] [stdout] 1: , anyhow::Error> as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/result.rs:2189:27 [INFO] [stdout] 2: hooktest::execute::execute_hook [INFO] [stdout] at ./src/execute.rs:42:9 [INFO] [stdout] 3: hooktest::notification::run_notification_hook [INFO] [stdout] at ./src/notification.rs:29:32 [INFO] [stdout] 4: hooktest::main [INFO] [stdout] at ./src/main.rs:285:13 [INFO] [stdout] 5: core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 6: std::sys::backtrace::__rust_begin_short_backtrace:: core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 7: std::rt::lang_start::>::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:206:18 [INFO] [stdout] 8: <&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 9: std::panicking::catch_unwind::do_call::<&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 10: std::panicking::catch_unwind:: + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 11: std::panic::catch_unwind::<&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 12: std::rt::lang_start_internal::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:175:24 [INFO] [stdout] 13: std::panicking::catch_unwind::do_call:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 14: std::panicking::catch_unwind:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 15: std::panic::catch_unwind:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 16: std::rt::lang_start_internal [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:171:5 [INFO] [stdout] 17: std::rt::lang_start::> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:205:5 [INFO] [stdout] 18: main [INFO] [stdout] 19: [INFO] [stdout] 20: __libc_start_main [INFO] [stdout] 21: _start [INFO] [stdout] ``` [INFO] [stdout] ``` [INFO] [stdout] command=`"/opt/rustwide/target/debug/hooktest" "notification" "--" "true"` [INFO] [stdout] code=1 [INFO] [stdout] stdout=``` [INFO] [stdout] [INFO] [stdout] === Running Hook === [INFO] [stdout] Command: true [INFO] [stdout] [INFO] [stdout] === Input JSON === [INFO] [stdout] { [INFO] [stdout] \"hook_event_name\": \"Claude Code\", [INFO] [stdout] \"message\": \"Claude needs permission to run a command\", [INFO] [stdout] \"session_id\": \"test-session-1774976903031\", [INFO] [stdout] \"transcript_path\": \"/tmp/transcript.json\" [INFO] [stdout] } [INFO] [stdout] === Execution === [INFO] [stdout] ``` [INFO] [stdout] [INFO] [stdout] stderr=``` [INFO] [stdout] Error: Broken pipe (os error 32) [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: >::from [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.98/src/backtrace.rs:27:14 [INFO] [stdout] 1: , anyhow::Error> as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/result.rs:2189:27 [INFO] [stdout] 2: hooktest::execute::execute_hook [INFO] [stdout] at ./src/execute.rs:42:9 [INFO] [stdout] 3: hooktest::notification::run_notification_hook [INFO] [stdout] at ./src/notification.rs:29:32 [INFO] [stdout] 4: hooktest::main [INFO] [stdout] at ./src/main.rs:285:13 [INFO] [stdout] 5: core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 6: std::sys::backtrace::__rust_begin_short_backtrace:: core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 7: std::rt::lang_start::>::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:206:18 [INFO] [stdout] 8: <&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe as core::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 9: std::panicking::catch_unwind::do_call::<&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 10: std::panicking::catch_unwind:: + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 11: std::panic::catch_unwind::<&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe, i32> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 12: std::rt::lang_start_internal::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:175:24 [INFO] [stdout] 13: std::panicking::catch_unwind::do_call:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 14: std::panicking::catch_unwind:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 15: std::panic::catch_unwind:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 16: std::rt::lang_start_internal [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:171:5 [INFO] [stdout] 17: std::rt::lang_start::> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/rt.rs:205:5 [INFO] [stdout] 18: main [INFO] [stdout] 19: [INFO] [stdout] 20: __libc_start_main [INFO] [stdout] 21: _start [INFO] [stdout] ``` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x593ab71cc1aa - std[e72de78501789eb0]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x593ab71cc1aa - std[e72de78501789eb0]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x593ab71cc1aa - std[e72de78501789eb0]::sys::backtrace::_print_fmt [INFO] [stderr] error: test failed, to rerun pass `-p hooktest --test cli_tests` [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x593ab71cc1aa - <::print::DisplayBacktrace as core[6aaeda2c7ad07a48]::fmt::Display>::fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x593ab71e250a - ::fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x593ab71e250a - core[6aaeda2c7ad07a48]::fmt::write [INFO] [stdout] 6: 0x593ab71d1d82 - std[e72de78501789eb0]::io::default_write_fmt::> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x593ab71d1d82 - as std[e72de78501789eb0]::io::Write>::write_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x593ab71aa84f - ::print [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x593ab71aa84f - std[e72de78501789eb0]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x593ab71c4329 - std[e72de78501789eb0]::panicking::default_hook [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x593ab7127fec - core[6aaeda2c7ad07a48]::ops::function::Fn<(&'a std[e72de78501789eb0]::panic::PanicHookInfo<'b>,), Output = ()> + core[6aaeda2c7ad07a48]::marker::Sync + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::Fn<(&std[e72de78501789eb0]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x593ab7127fec - test[4f12b380f1fb68c5]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x593ab71c44e2 - core[6aaeda2c7ad07a48]::ops::function::Fn<(&'a std[e72de78501789eb0]::panic::PanicHookInfo<'b>,), Output = ()> + core[6aaeda2c7ad07a48]::marker::Sync + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::Fn<(&std[e72de78501789eb0]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x593ab71c44e2 - std[e72de78501789eb0]::panicking::panic_with_hook [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x593ab71aa908 - std[e72de78501789eb0]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:698:13 [INFO] [stdout] 16: 0x593ab71a21f9 - std[e72de78501789eb0]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x593ab71ab6ad - __rustc[78a4cf188af856fc]::rust_begin_unwind [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x593ab71e2cdc - core[6aaeda2c7ad07a48]::panicking::panic_fmt [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x593ab7165a78 - core[6aaeda2c7ad07a48]::panicking::panic_display:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panicking.rs:259:5 [INFO] [stdout] 20: 0x593ab716d787 - ::panic:: [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/assert_cmd-2.0.17/src/assert.rs:1033:9 [INFO] [stdout] 21: 0x593ab716cfb7 - <::panic as core[6aaeda2c7ad07a48]::ops::function::FnOnce<(assert_cmd[572cd56eeac4e081]::assert::AssertError,)>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 22: 0x593ab71698e3 - >::unwrap_or_else::<::panic> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/result.rs:1622:23 [INFO] [stdout] 23: 0x593ab716e4e0 - ::success [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/assert_cmd-2.0.17/src/assert.rs:158:28 [INFO] [stdout] 24: 0x593ab7119d17 - cli_tests[ce4b1d74800fc85]::test_notification [INFO] [stdout] at /opt/rustwide/workdir/crates/hooktest/tests/cli_tests.rs:71:10 [INFO] [stdout] 25: 0x593ab7118cf7 - cli_tests[ce4b1d74800fc85]::test_notification::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/crates/hooktest/tests/cli_tests.rs:66:23 [INFO] [stdout] 26: 0x593ab711bec6 - >::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 27: 0x593ab711c0cb - core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x593ab711c0cb - test[4f12b380f1fb68c5]::__rust_begin_short_backtrace::, fn() -> core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:663:18 [INFO] [stdout] 29: 0x593ab7128abb - test[4f12b380f1fb68c5]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:686:74 [INFO] [stdout] 30: 0x593ab7128abb - as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 31: 0x593ab7128abb - std[e72de78501789eb0]::panicking::catch_unwind::do_call::, core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 32: 0x593ab7128abb - std[e72de78501789eb0]::panicking::catch_unwind::, core[6aaeda2c7ad07a48]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 33: 0x593ab7128abb - std[e72de78501789eb0]::panic::catch_unwind::, core[6aaeda2c7ad07a48]::result::Result<(), alloc[28d2dab30c1dc666]::string::String>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 34: 0x593ab7128abb - test[4f12b380f1fb68c5]::run_test_in_process [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:686:27 [INFO] [stdout] 35: 0x593ab7128abb - test[4f12b380f1fb68c5]::run_test::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:607:43 [INFO] [stdout] 36: 0x593ab71241d4 - test[4f12b380f1fb68c5]::run_test::{closure#1} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/test/src/lib.rs:637:41 [INFO] [stdout] 37: 0x593ab71241d4 - std[e72de78501789eb0]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 38: 0x593ab712b6c2 - std[e72de78501789eb0]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 39: 0x593ab712b6c2 - ::{closure#1}::{closure#0}> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/panic/unwind_safe.rs:275:9 [INFO] [stdout] 40: 0x593ab712b6c2 - std[e72de78501789eb0]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:581:40 [INFO] [stdout] 41: 0x593ab712b6c2 - std[e72de78501789eb0]::panicking::catch_unwind::<(), core[6aaeda2c7ad07a48]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panicking.rs:544:19 [INFO] [stdout] 42: 0x593ab712b6c2 - std[e72de78501789eb0]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/panic.rs:359:14 [INFO] [stdout] 43: 0x593ab712b6c2 - std[e72de78501789eb0]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 44: 0x593ab712b6c2 - ::{closure#1} as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 45: 0x593ab71cb86f - + core[6aaeda2c7ad07a48]::marker::Send> as core[6aaeda2c7ad07a48]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 46: 0x593ab71cb86f - ::new::thread_start [INFO] [stdout] at /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 47: 0x748a831a7aa4 - [INFO] [stdout] 48: 0x748a83234a64 - clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_notification [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6d227fadd3e668d7b1e92b24f1bfdc9468c4437b8048dba4fe40708275f6fc62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d227fadd3e668d7b1e92b24f1bfdc9468c4437b8048dba4fe40708275f6fc62", kill_on_drop: false }` [INFO] [stdout] 6d227fadd3e668d7b1e92b24f1bfdc9468c4437b8048dba4fe40708275f6fc62