[INFO] fetching crate ast-grep 0.42.0... [INFO] testing ast-grep-0.42.0 against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065 [INFO] extracting crate ast-grep 0.42.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate ast-grep 0.42.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate ast-grep 0.42.0 [INFO] tweaked toml for crates.io crate ast-grep 0.42.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ast-grep 0.42.0 on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ast-grep 0.42.0 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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 77a5b9fd885d7009d75437890ff776f9df7a14417e1f2e8b46f62aca1d849b26 [INFO] running `Command { std: "docker" "start" "-a" "77a5b9fd885d7009d75437890ff776f9df7a14417e1f2e8b46f62aca1d849b26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "77a5b9fd885d7009d75437890ff776f9df7a14417e1f2e8b46f62aca1d849b26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77a5b9fd885d7009d75437890ff776f9df7a14417e1f2e8b46f62aca1d849b26", kill_on_drop: false }` [INFO] [stdout] 77a5b9fd885d7009d75437890ff776f9df7a14417e1f2e8b46f62aca1d849b26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12b7eeca7ffd604a184a983dc21f490632be5a5a670f312b43434181182a19bc [INFO] running `Command { std: "docker" "start" "-a" "12b7eeca7ffd604a184a983dc21f490632be5a5a670f312b43434181182a19bc", kill_on_drop: false }` [INFO] [stderr] Compiling tree-sitter-language v0.1.7 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling litrs v1.0.0 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling futures-sink v0.3.32 [INFO] [stderr] Compiling bstr v1.12.1 [INFO] [stderr] Compiling streaming-iterator v0.1.9 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling bit-vec v0.9.1 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Compiling document-features v0.2.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling bit-set v0.9.1 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling uriparse v0.6.4 [INFO] [stderr] Compiling anstyle-parse v1.0.0 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling borrow-or-share v0.2.4 [INFO] [stderr] Compiling anstream v1.0.0 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling strict v0.2.0 [INFO] [stderr] Compiling clap_lex v1.0.0 [INFO] [stderr] Compiling target-triple v1.0.0 [INFO] [stderr] Compiling tree-sitter-scala v0.25.0 [INFO] [stderr] Compiling tree-sitter-haskell v0.23.1 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling tree-sitter-swift v0.7.1 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling tree-sitter-nix v0.3.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling tree-sitter-ruby v0.23.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling tree-sitter-json v0.23.0 [INFO] [stderr] Compiling tree-sitter-css v0.25.0 [INFO] [stderr] Compiling tree-sitter-java v0.23.5 [INFO] [stderr] Compiling tree-sitter-yaml v0.7.2 [INFO] [stderr] Compiling tree-sitter-bash v0.25.1 [INFO] [stderr] Compiling tree-sitter-html v0.23.2 [INFO] [stderr] Compiling signal-hook-mio v0.2.5 [INFO] [stderr] Compiling tree-sitter-javascript v0.25.0 [INFO] [stderr] Compiling tree-sitter-cpp v0.23.4 [INFO] [stderr] Compiling tree-sitter-lua v0.5.0 [INFO] [stderr] Compiling tree-sitter-python v0.25.0 [INFO] [stderr] Compiling tree-sitter-typescript v0.23.2 [INFO] [stderr] Compiling tree-sitter-elixir v0.3.5 [INFO] [stderr] Compiling tree-sitter-c v0.24.1 [INFO] [stderr] Compiling tree-sitter-go v0.25.0 [INFO] [stderr] Compiling tree-sitter-hcl v1.1.0 [INFO] [stderr] Compiling tree-sitter-solidity v1.2.13 [INFO] [stderr] Compiling tree-sitter-php v0.24.2 [INFO] [stderr] Compiling tree-sitter-c-sharp v0.23.1 [INFO] [stderr] Compiling tree-sitter-rust v0.24.0 [INFO] [stderr] Compiling tree-sitter-kotlin-sg v0.4.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling globset v0.4.18 [INFO] [stderr] Compiling tree-sitter v0.26.7 [INFO] [stderr] Compiling ignore v0.4.25 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling schemars_derive v1.2.1 [INFO] [stderr] Compiling clap_derive v4.6.0 [INFO] [stderr] Compiling lazy-regex-proc_macros v3.6.0 [INFO] [stderr] Compiling typed-builder-macro v0.21.2 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling crossterm v0.29.0 [INFO] [stderr] Compiling fluent-uri v0.4.1 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling ast-grep-core v0.42.0 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling clap_builder v4.6.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling lazy-regex v3.6.0 [INFO] [stderr] Compiling xterm-query v0.5.2 [INFO] [stderr] Compiling typed-builder v0.21.2 [INFO] [stderr] Compiling fuzzy-matcher v0.3.7 [INFO] [stderr] Compiling coolor v1.1.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling crossbeam v0.8.4 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling crokey-proc_macros v1.4.0 [INFO] [stderr] Compiling minimad v0.14.0 [INFO] [stderr] Compiling libloading v0.9.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling ls-types v0.0.6 [INFO] [stderr] Compiling schemars v1.2.1 [INFO] [stderr] Compiling inquire v0.9.4 [INFO] [stderr] Compiling terminal-light v1.8.0 [INFO] [stderr] Compiling schemafy_core v0.6.0 [INFO] [stderr] Compiling crokey v1.4.0 [INFO] [stderr] Compiling schemafy_lib v0.6.0 [INFO] [stderr] Compiling ast-grep-dynamic v0.42.0 [INFO] [stderr] Compiling codespan-reporting v0.13.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling termimad v0.34.1 [INFO] [stderr] Compiling clap v4.6.0 [INFO] [stderr] Compiling clap_complete v4.6.0 [INFO] [stderr] Compiling serde-sarif v0.8.0 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling ast-grep-config v0.42.0 [INFO] [stderr] Compiling ast-grep-language v0.42.0 [INFO] [stderr] Compiling tower-lsp-server v0.23.0 [INFO] [stderr] Compiling ast-grep-lsp v0.42.0 [INFO] [stderr] Compiling ast-grep v0.42.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 49s [INFO] running `Command { std: "docker" "inspect" "12b7eeca7ffd604a184a983dc21f490632be5a5a670f312b43434181182a19bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12b7eeca7ffd604a184a983dc21f490632be5a5a670f312b43434181182a19bc", kill_on_drop: false }` [INFO] [stdout] 12b7eeca7ffd604a184a983dc21f490632be5a5a670f312b43434181182a19bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c323d4241388b9ea696449559c011c33be6a0f97b9f78dd1aa8e1dbba0711ecb [INFO] running `Command { std: "docker" "start" "-a" "c323d4241388b9ea696449559c011c33be6a0f97b9f78dd1aa8e1dbba0711ecb", kill_on_drop: false }` [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling predicates-core v1.0.10 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling assert_cmd v2.2.0 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling predicates-tree v1.0.13 [INFO] [stderr] Compiling crossterm v0.29.0 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling crokey-proc_macros v1.4.0 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling bstr v1.12.1 [INFO] [stderr] Compiling coolor v1.1.0 [INFO] [stderr] Compiling crokey v1.4.0 [INFO] [stderr] Compiling inquire v0.9.4 [INFO] [stderr] Compiling terminal-light v1.8.0 [INFO] [stderr] Compiling tree-sitter v0.26.7 [INFO] [stderr] Compiling lazy-regex v3.6.0 [INFO] [stderr] Compiling predicates v3.1.4 [INFO] [stderr] Compiling termimad v0.34.1 [INFO] [stderr] Compiling globset v0.4.18 [INFO] [stderr] Compiling ast-grep-core v0.42.0 [INFO] [stderr] Compiling ignore v0.4.25 [INFO] [stderr] Compiling ast-grep-config v0.42.0 [INFO] [stderr] Compiling ast-grep-dynamic v0.42.0 [INFO] [stderr] Compiling ast-grep-language v0.42.0 [INFO] [stderr] Compiling ast-grep-lsp v0.42.0 [INFO] [stderr] Compiling ast-grep v0.42.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "c323d4241388b9ea696449559c011c33be6a0f97b9f78dd1aa8e1dbba0711ecb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c323d4241388b9ea696449559c011c33be6a0f97b9f78dd1aa8e1dbba0711ecb", kill_on_drop: false }` [INFO] [stdout] c323d4241388b9ea696449559c011c33be6a0f97b9f78dd1aa8e1dbba0711ecb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1cc445ea8bf5e6af7f4f2d1f971f5452f6db8a0d86186dc3cee46684bd3c31e0 [INFO] running `Command { std: "docker" "start" "-a" "1cc445ea8bf5e6af7f4f2d1f971f5452f6db8a0d86186dc3cee46684bd3c31e0", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.66s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ast_grep-2354bae502804dd0) [INFO] [stdout] [INFO] [stdout] running 115 tests [INFO] [stdout] test lsp::test::test_lsp_start ... ignored, test lsp later [INFO] [stdout] test lang::injection::test::test_deserialize ... ok [INFO] [stdout] test lang::lang_globs::test::test_parse_globs ... ok [INFO] [stdout] test lang::injection::test::test_good_injection ... ok [INFO] [stdout] test lang::lang_globs::test::test_merge_types ... ok [INFO] [stdout] test lang::injection::test::test_bad_inject ... ok [INFO] [stdout] test print::cloud_print::test::test_info_output ... ok [INFO] [stdout] test print::cloud_print::test::test_no_match_output ... ok [INFO] [stdout] test lang::lang_globs::test::test_invalid_language ... ok [INFO] [stdout] test lang::lang_globs::test::test_register ... ok [INFO] [stdout] test lang::test::test_sg_lang_size ... ok [INFO] [stdout] test lang::injection::test::test_multiple_matches_produce_separate_entries ... ok [INFO] [stdout] test print::cloud_print::test::test_hint_output ... ok [INFO] [stdout] test print::cloud_print::test::test_sarif_output ... ok [INFO] [stdout] test print::cloud_print::test::test_error_output ... ok [INFO] [stdout] test new::test::test_create_util ... ok [INFO] [stdout] test new::test::test_create_new ... ok [INFO] [stdout] test completions::test::test_generate_command ... ok [INFO] [stdout] test print::colored_print::test::test_overlap_print ... ok [INFO] [stdout] test print::colored_print::test::test_empty_printer ... ok [INFO] [stdout] test print::interactive_print::test::test_rewrite_nested ... ok [INFO] [stdout] test print::json_print::test::test_empty_printer ... ok [INFO] [stdout] test print::interactive_print::test::test_rewrite_with_empty_lines ... ok [INFO] [stdout] test print::colored_print::test::test_print_matches ... ok [INFO] [stdout] test print::colored_print::test::test_print_matches_without_heading ... ok [INFO] [stdout] test print::interactive_print::test::test_apply_rewrite ... ok [INFO] [stdout] test print::colored_print::test::test_before_after ... ok [INFO] [stdout] test print::json_print::test::test_metadata ... ok [INFO] [stdout] test print::json_print::test::test_label ... ok [INFO] [stdout] test lang::lang_globs::test::test_merge_with_globs ... ok [INFO] [stdout] test print::colored_print::test::test_non_overlap_print ... ok [INFO] [stdout] test print::json_print::test::test_single_matched_json ... ok [INFO] [stdout] test print::colored_print::test::test_print_rule_diffs_short ... ok [INFO] [stdout] test print::json_print::test::test_streaming ... ok [INFO] [stdout] test print::colored_print::test::test_print_rules ... ok [INFO] [stdout] test print::json_print::test::test_transform ... ok [INFO] [stdout] test print::json_print::test::test_multi_matched_json ... ok [INFO] [stdout] test print::json_print::test::test_replace_json ... ok [INFO] [stdout] test print::json_print::test::test_invariant ... ok [INFO] [stdout] test print::json_print::test::test_rule_json ... ok [INFO] [stdout] test print::colored_print::test::test_print_rule_diffs ... ok [INFO] [stdout] test scan::test::test_scan_with_inline_rules_error ... ok [INFO] [stdout] Cargo.toml +2 [INFO] [stdout] test test_cli::test_default_subcommand ... ok [INFO] [stdout] test test_cli::test_no_arg_run ... ok [INFO] [stdout] test test_cli::test_shell ... ok [INFO] [stdout] test print::colored_print::test::test_print_diffs ... ok [INFO] [stdout] test test_cli::test_test ... ok [INFO] [stdout] test test_cli::test_wrong_usage ... ok [INFO] [stdout] test utils::args::test::test_build_globs ... ok [INFO] [stdout] test test_cli::test_version_and_help ... ok [INFO] [stdout] test print::cloud_print::test::test_warning_output ... ok [INFO] [stdout] test test_cli::test_new ... ok [INFO] [stdout] test utils::debug_query::test::test_dump_node ... ok [INFO] [stdout] test print::interactive_print::test::test_open_editor ... ok [INFO] [stdout] test utils::debug_query::test::test_dump_pattern_multi_capture ... ok [INFO] [stdout] test test_cli::test_scan ... ok [INFO] [stdout] test utils::debug_query::test::test_dump_pattern_nested_nodes ... ok [INFO] [stdout] test utils::debug_query::test::test_dump_pattern_simple_metavar ... ok [INFO] [stdout] test utils::debug_query::test::test_missing_node ... ok [INFO] [stdout] test utils::debug_query::test::test_dump_pattern_with_metavars ... ok [INFO] [stdout] test utils::error_context::test::test_bare_anyhow ... ok [INFO] [stdout] test utils::error_context::test::test_exit_interactive_editing_is_soft_error ... ok [INFO] [stdout] test utils::error_context::test::test_display_warning ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_claim_exceeds_limit ... ok [INFO] [stdout] test utils::inspect::test::test_tracing ... ok [INFO] [stdout] test utils::inspect::test::test_tracing_nothing ... ok [INFO] [stdout] test utils::test::test_html_embedding ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_claim_more_than_baseline ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_claim_within_limit ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_initialization ... ok [INFO] [stdout] test utils::error_context::test::test_display_error ... ok [INFO] [stdout] test utils::test::test_html_embedding_lang_not_found ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_reached_max ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_multiple_small_claims ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_partial_claim ... ok [INFO] [stdout] test verify::find_file::test::test_read_snapshot ... ok [INFO] [stdout] test verify::find_file::test::test_read_multi ... ok [INFO] [stdout] test verify::case_result::test::test_snapshot ... ok [INFO] [stdout] test verify::case_result::test::test_is_snapshot_mismatch_only_failure ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_concurrent_claims ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_zero_max ... ok [INFO] [stdout] test verify::reporter::test::test_after_report_mixed_failures ... ok [INFO] [stdout] test verify::reporter::test::test_after_report_success ... ok [INFO] [stdout] test verify::reporter::test::test_report_summary ... ok [INFO] [stdout] test verify::reporter::test::test_valid_case_detail ... ok [INFO] [stdout] test verify::find_file::test::test_read_test ... ok [INFO] [stdout] test verify::snapshot::tests::test_not_found ... ok [INFO] [stdout] test verify::snapshot::tests::test_snapshot_action ... ok [INFO] [stdout] test verify::reporter::test::test_invalid_case_detail ... ok [INFO] [stdout] test utils::worker::tests::test_max_item_counter_claim_zero ... ok [INFO] [stdout] test scan::test::test_scan_with_inline_rules_diff ... ok [INFO] [stdout] test verify::reporter::test::test_after_report_snapshot_mismatch_only ... ok [INFO] [stdout] test verify::reporter::test::test_many_cases ... ok [INFO] [stdout] test verify::test::test_noisy ... ok [INFO] [stdout] test test_cli::test_run ... ok [INFO] [stdout] test verify::test::test_run_verify_error ... ok [INFO] [stdout] test verify::snapshot::tests::test_secondary_label ... ok [INFO] [stdout] test verify::test_case::tests::test_invalid ... ok [INFO] [stdout] test verify::test::test_verify_transform ... ok [INFO] [stdout] test verify::test::test_no_such_rule ... ok [INFO] [stdout] test verify::test::test_reported ... ok [INFO] [stdout] test verify::test::test_missing ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_rule ... ok [INFO] [stdout] test verify::snapshot::tests::test_generate ... ok [INFO] [stdout] test verify::test::test_validated ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_with_existing ... ok [INFO] [stdout] test scan::test::test_scan_with_inline_rules ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_without_existing ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_with_mismatch ... ok [INFO] [stdout] test verify::test_case::tests::test_verify_snapshot_without_existing_2 ... ok [INFO] [stdout] test run::test::test_run_with_pattern ... ok [INFO] [stdout] test run::test::test_run_with_specific_lang ... ok [INFO] [stdout] test scan::test::test_run_with_config ... ok [INFO] [stdout] test run::test::test_run_with_strictness ... ok [INFO] [stdout] test verify::test_case::tests::test_unmatching_id - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 114 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.76s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ast_grep-4a4c03228f23fa49) [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/bin/alias.rs (/opt/rustwide/target/debug/deps/sg-9fd8cce1ec7ac8a7) [INFO] [stderr] Running tests/help_test.rs (/opt/rustwide/target/debug/deps/help_test-03426ab148d26da2) [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 1 test [INFO] [stdout] test test_help_work_for_invalid_sgconfig ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s [INFO] [stdout] [INFO] [stderr] Running tests/run_test.rs (/opt/rustwide/target/debug/deps/run_test-f5893cb81b42d586) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test test_unsupport_config_arg ... ok [INFO] [stdout] test test_simple_specific_lang ... ok [INFO] [stdout] test test_rewrite_js_in_html ... ok [INFO] [stdout] test test_simple_infer_lang ... ok [INFO] [stdout] test test_js_in_html ... ok [INFO] [stdout] test test_inspect ... ok [INFO] [stdout] test test_debug_query ... ok [INFO] [stdout] test test_status_code_fail_with_no_match ... ok [INFO] [stdout] test test_trace_default_project ... ok [INFO] [stdout] test test_trace_project ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s [INFO] [stdout] [INFO] [stderr] Running tests/scan_test.rs (/opt/rustwide/target/debug/deps/scan_test-57b302ef1252435a) [INFO] [stdout] [INFO] [stdout] running 31 tests [INFO] [stdout] test test_max_diagnostics_shown_stdin ... ok [INFO] [stdout] test test_scan_invalid_rule_id ... ok [INFO] [stdout] test test_scan_unused_suppression_off ... ok [INFO] [stdout] test test_max_diagnostics_shown ... ok [INFO] [stdout] test test_severity_override_with_inline_rule_and_stdin ... ok [INFO] [stdout] test test_scan_duplicate_default_ids ... ok [INFO] [stdout] test test_sg_rule_off ... ok [INFO] [stdout] test test_sg_scan_html ... ok [INFO] [stdout] test test_file ... ok [INFO] [stdout] test test_sg_scan_py_empty_text ... ok [INFO] [stdout] test test_scan_inline_rules_no_id ... ok [INFO] [stdout] test test_scan_multi_rule_file_with_explicit_ids ... ok [INFO] [stdout] test test_label ... ok [INFO] [stdout] test test_severity_override_with_rule_path ... ok [INFO] [stdout] test test_sg_scan_inline_rules ... ok [INFO] [stdout] test test_sg_scan_multiple_rules_in_one_file ... ok [INFO] [stdout] test test_scan_multi_rule_file_mixed_ids ... ok [INFO] [stdout] test test_scan_explicit_id_not_overwritten ... ok [INFO] [stdout] test test_sg_scan_sarif_with_fixes ... ok [INFO] [stdout] test test_scan_multi_rule_file_auto_numbered_ids ... ok [INFO] [stdout] test test_status_code_success_with_no_match ... ok [INFO] [stdout] test test_yaml_sgconfig_extension ... ok [INFO] [stdout] test test_max_diagnostics_shown_single_file ... ok [INFO] [stdout] test test_severity_override_with_inline_rule ... ok [INFO] [stdout] test test_sg_scan_sarif_output ... ok [INFO] [stdout] test test_transform_indent ... ok [INFO] [stdout] test test_sg_scan ... ok [INFO] [stdout] test test_scan_rule_id_defaults_to_filename ... ok [INFO] [stdout] test test_scan_unused_suppression ... ok [INFO] [stdout] test test_unused_suppression_only_in_scan ... ok [INFO] [stdout] test test_severity_override ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.30s [INFO] [stdout] [INFO] [stderr] Running tests/verify_test.rs (/opt/rustwide/target/debug/deps/verify_test-3f5d740af92be1f8) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] Running 1 tests [INFO] [stdout] Running 1 tests [INFO] [stdout] Configuration not found! test-rule [INFO] [stdout] Running 1 tests [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [Noisy] Expect test-rule to report no issue, but some issues found in: [INFO] [stdout] [INFO] [stdout] Some(123) [INFO] [stdout] [INFO] [stdout] [Missing] Expect rule test-rule to report issues, but none found in: [INFO] [stdout] [INFO] [stdout] None [INFO] [stdout] [INFO] [stdout] FAIL test-rule NM [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] PASS test-rule .. [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; [INFO] [stdout] Running 1 tests [INFO] [stdout] test test_sg_test ... ok [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [Noisy] Expect test-rule to report no issue, but some issues found in: [INFO] [stdout] [INFO] [stdout] Some(123) [INFO] [stdout] [INFO] [stdout] [Missing] Expect rule test-rule to report issues, but none found in: [INFO] [stdout] [INFO] [stdout] None [INFO] [stdout] [INFO] [stdout] FAIL test-rule NM [INFO] [stdout] [INFO] [stdout] test test_sg_test_error ... ok [INFO] [stdout] test test_sg_test_off_rule ... ok [INFO] [stdout] Running 1 tests [INFO] [stderr] Doc-tests ast_grep [INFO] [stdout] [INFO] [stdout] ----------- Case Details ----------- [INFO] [stdout] [Noisy] Expect test-rule to report no issue, but some issues found in: [INFO] [stdout] [INFO] [stdout] Some(123) [INFO] [stdout] [INFO] [stdout] [Missing] Expect rule test-rule to report issues, but none found in: [INFO] [stdout] [INFO] [stdout] None [INFO] [stdout] [INFO] [stdout] FAIL test-rule NM [INFO] [stdout] [INFO] [stdout] test test_sg_test_filter ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [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] running `Command { std: "docker" "inspect" "1cc445ea8bf5e6af7f4f2d1f971f5452f6db8a0d86186dc3cee46684bd3c31e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cc445ea8bf5e6af7f4f2d1f971f5452f6db8a0d86186dc3cee46684bd3c31e0", kill_on_drop: false }` [INFO] [stdout] 1cc445ea8bf5e6af7f4f2d1f971f5452f6db8a0d86186dc3cee46684bd3c31e0