[INFO] cloning repository https://github.com/brbtavares/ai-context-gen
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brbtavares/ai-context-gen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrbtavares%2Fai-context-gen", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrbtavares%2Fai-context-gen'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a4a8442a9e3c495c37c383f56020ec24b689c6bd
[INFO] testing brbtavares/ai-context-gen against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrbtavares%2Fai-context-gen" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/brbtavares/ai-context-gen
[INFO] finished tweaking git repo https://github.com/brbtavares/ai-context-gen
[INFO] tweaked toml for git repo https://github.com/brbtavares/ai-context-gen written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/brbtavares/ai-context-gen on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/brbtavares/ai-context-gen 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" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded fancy-regex v0.12.0
[INFO] [stderr]   Downloaded tiktoken-rs v0.5.9
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 45452fc2f907edb5463691f7f3d0268b1e7557ec84cbe4871f8a91d631ad6a54
[INFO] running `Command { std: "docker" "start" "-a" "45452fc2f907edb5463691f7f3d0268b1e7557ec84cbe4871f8a91d631ad6a54", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "45452fc2f907edb5463691f7f3d0268b1e7557ec84cbe4871f8a91d631ad6a54", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "45452fc2f907edb5463691f7f3d0268b1e7557ec84cbe4871f8a91d631ad6a54", kill_on_drop: false }`
[INFO] [stdout] 45452fc2f907edb5463691f7f3d0268b1e7557ec84cbe4871f8a91d631ad6a54
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9c110505971f0faec6bcf4ce8ccea28599f814849b2443a0cd38015406af4fbe
[INFO] running `Command { std: "docker" "start" "-a" "9c110505971f0faec6bcf4ce8ccea28599f814849b2443a0cd38015406af4fbe", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling regex-syntax v0.8.5
[INFO] [stderr]    Compiling bit-vec v0.6.3
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling rustc-hash v1.1.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling bit-set v0.5.3
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling bstr v1.12.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling clap_derive v4.5.41
[INFO] [stderr]    Compiling fancy-regex v0.12.0
[INFO] [stderr]    Compiling tokio v1.46.1
[INFO] [stderr]    Compiling tiktoken-rs v0.5.9
[INFO] [stderr]    Compiling clap v4.5.41
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling ai-context-gen v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.87s
[INFO] running `Command { std: "docker" "inspect" "9c110505971f0faec6bcf4ce8ccea28599f814849b2443a0cd38015406af4fbe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9c110505971f0faec6bcf4ce8ccea28599f814849b2443a0cd38015406af4fbe", kill_on_drop: false }`
[INFO] [stdout] 9c110505971f0faec6bcf4ce8ccea28599f814849b2443a0cd38015406af4fbe
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 875afafb67f4c0103872352ef51d59a09ccd7369d079d2e61f9d4b8b214f421b
[INFO] running `Command { std: "docker" "start" "-a" "875afafb67f4c0103872352ef51d59a09ccd7369d079d2e61f9d4b8b214f421b", kill_on_drop: false }`
[INFO] [stderr]    Compiling ai-context-gen v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.36s
[INFO] running `Command { std: "docker" "inspect" "875afafb67f4c0103872352ef51d59a09ccd7369d079d2e61f9d4b8b214f421b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "875afafb67f4c0103872352ef51d59a09ccd7369d079d2e61f9d4b8b214f421b", kill_on_drop: false }`
[INFO] [stdout] 875afafb67f4c0103872352ef51d59a09ccd7369d079d2e61f9d4b8b214f421b
[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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 6105c679af7f6713680b92ad93d346b6df26abb85ce25d1a78c5705c93bec11b
[INFO] running `Command { std: "docker" "start" "-a" "6105c679af7f6713680b92ad93d346b6df26abb85ce25d1a78c5705c93bec11b", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ai_context_gen-66a4be61c677cb57)
[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]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ai_context_gen-354ecfaa228283bb)
[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 ai_context_gen
[INFO] [stdout] 
[INFO] [stdout] running 24 tests
[INFO] [stdout] test src/lib.rs - (line 74) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 44) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 126) - compile ... ok
[INFO] [stdout] test src/generator.rs - generator::ContextGenerator (line 24) ... ok
[INFO] [stdout] test src/scanner.rs - scanner::RepositoryScanner::scan (line 187) ... ok
[INFO] [stdout] test src/lib.rs - (line 106) - compile ... ok
[INFO] [stdout] test src/scanner.rs - scanner::RepositoryScanner::new (line 158) ... ok
[INFO] [stdout] test src/config.rs - config::Config::default (line 80) ... ok
[INFO] [stdout] test src/lib.rs - generate_context (line 186) ... ok
[INFO] [stdout] test src/parser.rs - parser::RustParser::parse_rust_file (line 161) ... ok
[INFO] [stdout] test src/scanner.rs - scanner::RepositoryScanner (line 125) ... ok
[INFO] [stdout] test src/lib.rs - generate_context_with_config (line 221) ... ok
[INFO] [stdout] test src/config.rs - config::Config (line 17) ... ok
[INFO] [stdout] test src/generator.rs - generator::ContextGenerator::generate_context (line 95) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::ContentSection::new (line 280) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::ContentSection (line 238) ... ok
[INFO] [stdout] test src/generator.rs - generator::ContextGenerator::new (line 56) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::TokenCounter (line 16) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::TokenCounter::count_tokens (line 66) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::ContentPrioritizer (line 129) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::TokenCounter::new (line 41) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::ContentPrioritizer::prioritize_content (line 176) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::TokenCounter::truncate_to_token_limit (line 94) ... ok
[INFO] [stdout] test src/lib.rs - (line 29) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 29) stdout ----
[INFO] [stdout] Test executable failed (exit status: 1).
[INFO] [stdout] 
[INFO] [stdout] stderr:
[INFO] [stdout] Error: Read-only file system (os error 30)
[INFO] [stdout] 
[INFO] [stdout] Stack backtrace:
[INFO] [stdout]    0: <anyhow::Error as core::convert::From<std::io::error::Error>>::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: <core::result::Result<(), anyhow::Error> as core::ops::try_trait::FromResidual<core::result::Result<core::convert::Infallible, std::io::error::Error>>>::from_residual
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/result.rs:2189:27
[INFO] [stdout]    2: <ai_context_gen::generator::ContextGenerator>::generate_context::{closure#0}
[INFO] [stdout]              at ./src/generator.rs:137:9
[INFO] [stdout]    3: ai_context_gen::generate_context::{closure#0}
[INFO] [stdout]              at ./src/lib.rs:208:45
[INFO] [stdout]    4: rust_out::main::{closure#0}
[INFO] [stdout]    5: <tokio::runtime::park::CachedParkThread>::block_on::<rust_out::main::{closure#0}>::{closure#0}
[INFO] [stdout]    6: <tokio::runtime::park::CachedParkThread>::block_on::<rust_out::main::{closure#0}>
[INFO] [stdout]    7: <tokio::runtime::context::blocking::BlockingRegionGuard>::block_on::<rust_out::main::{closure#0}>
[INFO] [stdout]    8: <tokio::runtime::scheduler::multi_thread::MultiThread>::block_on::<rust_out::main::{closure#0}>::{closure#0}
[INFO] [stdout]    9: tokio::runtime::context::runtime::enter_runtime::<<tokio::runtime::scheduler::multi_thread::MultiThread>::block_on<rust_out::main::{closure#0}>::{closure#0}, core::result::Result<(), anyhow::Error>>
[INFO] [stdout]   10: <tokio::runtime::scheduler::multi_thread::MultiThread>::block_on::<rust_out::main::{closure#0}>
[INFO] [stdout]   11: <tokio::runtime::runtime::Runtime>::block_on_inner::<rust_out::main::{closure#0}>
[INFO] [stdout]   12: <tokio::runtime::runtime::Runtime>::block_on::<rust_out::main::{closure#0}>
[INFO] [stdout]   13: rust_out::main
[INFO] [stdout]   14: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]   15: std::sys::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
[INFO] [stdout]   16: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
[INFO] [stdout]   17: <&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/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/core/src/ops/function.rs:287:21
[INFO] [stdout]   18: 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/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40
[INFO] [stdout]   19: std::panicking::catch_unwind::<i32, &dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe>
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19
[INFO] [stdout]   20: std::panic::catch_unwind::<&dyn core::ops::function::Fn<(), Output = i32> + core::marker::Sync + core::panic::unwind_safe::RefUnwindSafe, i32>
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14
[INFO] [stdout]   21: std::rt::lang_start_internal::{closure#0}
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/rt.rs:175:24
[INFO] [stdout]   22: std::panicking::catch_unwind::do_call::<std::rt::lang_start_internal::{closure#0}, isize>
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:581:40
[INFO] [stdout]   23: std::panicking::catch_unwind::<isize, std::rt::lang_start_internal::{closure#0}>
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panicking.rs:544:19
[INFO] [stdout]   24: std::panic::catch_unwind::<std::rt::lang_start_internal::{closure#0}, isize>
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/panic.rs:359:14
[INFO] [stdout]   25: std::rt::lang_start_internal
[INFO] [stdout]              at /rustc/2fd6efc32704647e64d3d646d21c4c68eae100e4/library/std/src/rt.rs:171:5
[INFO] [stdout]   26: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>
[INFO] [stdout]   27: main
[INFO] [stdout]   28: <unknown>
[INFO] [stdout]   29: __libc_start_main
[INFO] [stdout]   30: _start
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 29)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 23 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.92s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "6105c679af7f6713680b92ad93d346b6df26abb85ce25d1a78c5705c93bec11b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6105c679af7f6713680b92ad93d346b6df26abb85ce25d1a78c5705c93bec11b", kill_on_drop: false }`
[INFO] [stdout] 6105c679af7f6713680b92ad93d346b6df26abb85ce25d1a78c5705c93bec11b
