[INFO] fetching crate ai-context-gen 0.1.2...
[INFO] testing ai-context-gen-0.1.2 against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1
[INFO] extracting crate ai-context-gen 0.1.2 into /workspace/builds/worker-2-tc1/source
[INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml
[INFO] started tweaking crates.io crate ai-context-gen 0.1.2
[INFO] finished tweaking crates.io crate ai-context-gen 0.1.2
[INFO] tweaked toml for crates.io crate ai-context-gen 0.1.2 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate ai-context-gen 0.1.2 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 crates.io crate ai-context-gen 0.1.2 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]  Downloading crates ...
[INFO] [stderr]   Downloaded tiktoken-rs v0.5.9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 815a5d74a7e98b6f7af660a0219fe671e3913cf4d6159c6fd670cc815daa063a
[INFO] running `Command { std: "docker" "start" "-a" "815a5d74a7e98b6f7af660a0219fe671e3913cf4d6159c6fd670cc815daa063a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "815a5d74a7e98b6f7af660a0219fe671e3913cf4d6159c6fd670cc815daa063a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "815a5d74a7e98b6f7af660a0219fe671e3913cf4d6159c6fd670cc815daa063a", kill_on_drop: false }`
[INFO] [stdout] 815a5d74a7e98b6f7af660a0219fe671e3913cf4d6159c6fd670cc815daa063a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 905c3c30989a51b07d63232440e0863dc41b6ddae018850dff1ea202b0443ede
[INFO] running `Command { std: "docker" "start" "-a" "905c3c30989a51b07d63232440e0863dc41b6ddae018850dff1ea202b0443ede", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling memchr v2.7.5
[INFO] [stderr]    Compiling regex-syntax v0.8.5
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling lock_api v0.4.13
[INFO] [stderr]    Compiling anstyle v1.0.11
[INFO] [stderr]    Compiling anstyle-query v1.1.3
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]    Compiling clap_lex v0.7.5
[INFO] [stderr]    Compiling anstream v0.6.19
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling clap_builder v4.5.41
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.5
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling clap_derive v4.5.41
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling bstr v1.12.0
[INFO] [stderr]    Compiling tokio v1.46.1
[INFO] [stderr]    Compiling fancy-regex v0.12.0
[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 ai-context-gen v0.1.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.46s
[INFO] running `Command { std: "docker" "inspect" "905c3c30989a51b07d63232440e0863dc41b6ddae018850dff1ea202b0443ede", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "905c3c30989a51b07d63232440e0863dc41b6ddae018850dff1ea202b0443ede", kill_on_drop: false }`
[INFO] [stdout] 905c3c30989a51b07d63232440e0863dc41b6ddae018850dff1ea202b0443ede
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] c6012d06baef6fc014bd5dc05c136cf4957ea4bd87f9357a45b2bf72d472e680
[INFO] running `Command { std: "docker" "start" "-a" "c6012d06baef6fc014bd5dc05c136cf4957ea4bd87f9357a45b2bf72d472e680", 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.41s
[INFO] running `Command { std: "docker" "inspect" "c6012d06baef6fc014bd5dc05c136cf4957ea4bd87f9357a45b2bf72d472e680", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c6012d06baef6fc014bd5dc05c136cf4957ea4bd87f9357a45b2bf72d472e680", kill_on_drop: false }`
[INFO] [stdout] c6012d06baef6fc014bd5dc05c136cf4957ea4bd87f9357a45b2bf72d472e680
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] da05de6d25dd861a80605f01476d55bb343ad705e6bb4e6f5a8b6f3df6372ff2
[INFO] running `Command { std: "docker" "start" "-a" "da05de6d25dd861a80605f01476d55bb343ad705e6bb4e6f5a8b6f3df6372ff2", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ai_context_gen-66a4be61c677cb57)
[INFO] [stdout] running 0 tests
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ai_context_gen-354ecfaa228283bb)
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests ai_context_gen
[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 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 24 tests
[INFO] [stdout] test src/lib.rs - (line 106) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 126) - compile ... ok
[INFO] [stdout] test src/generator.rs - generator::ContextGenerator::generate_context (line 95) ... ok
[INFO] [stdout] test src/lib.rs - (line 74) - compile ... ok
[INFO] [stdout] test src/lib.rs - (line 44) - compile ... ok
[INFO] [stdout] test src/generator.rs - generator::ContextGenerator (line 24) ... ok
[INFO] [stdout] test src/lib.rs - generate_context (line 186) ... ok
[INFO] [stdout] test src/lib.rs - generate_context_with_config (line 221) ... ok
[INFO] [stdout] test src/scanner.rs - scanner::RepositoryScanner (line 125) ... ok
[INFO] [stdout] test src/config.rs - config::Config::default (line 80) ... ok
[INFO] [stdout] test src/config.rs - config::Config (line 17) ... ok
[INFO] [stdout] test src/parser.rs - parser::RustParser::parse_rust_file (line 161) ... ok
[INFO] [stdout] test src/scanner.rs - scanner::RepositoryScanner::scan (line 187) ... ok
[INFO] [stdout] test src/scanner.rs - scanner::RepositoryScanner::new (line 158) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::ContentSection (line 238) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::ContentSection::new (line 280) ... ok
[INFO] [stdout] test src/generator.rs - generator::ContextGenerator::new (line 56) ... ok
[INFO] [stdout] test src/token_counter.rs - token_counter::ContentPrioritizer (line 129) ... 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::TokenCounter (line 16) ... 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::new (line 41) ... 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 10.48s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "da05de6d25dd861a80605f01476d55bb343ad705e6bb4e6f5a8b6f3df6372ff2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "da05de6d25dd861a80605f01476d55bb343ad705e6bb4e6f5a8b6f3df6372ff2", kill_on_drop: false }`
[INFO] [stdout] da05de6d25dd861a80605f01476d55bb343ad705e6bb4e6f5a8b6f3df6372ff2
