[INFO] cloning repository https://github.com/greenhat616/rquickjs-module-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/greenhat616/rquickjs-module-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgreenhat616%2Frquickjs-module-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgreenhat616%2Frquickjs-module-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43a49355adef9a75f812e4280d88ad40a9986abd [INFO] testing greenhat616/rquickjs-module-test against 1.99.0-beta.8+cargoflags=--release for beta-release-1.100-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgreenhat616%2Frquickjs-module-test" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/greenhat616/rquickjs-module-test [INFO] finished tweaking git repo https://github.com/greenhat616/rquickjs-module-test [INFO] tweaked toml for git repo https://github.com/greenhat616/rquickjs-module-test written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/greenhat616/rquickjs-module-test on toolchain 1.99.0-beta.8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/greenhat616/rquickjs-module-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d [INFO] running `Command { std: "docker" "start" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling rquickjs-sys v0.6.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling rquickjs-core v0.6.2 [INFO] [stderr] Compiling rquickjs v0.6.2 [INFO] [stderr] Compiling rquickjs-module-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 59.10s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rquickjs-core v0.6.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5` [INFO] running `Command { std: "docker" "inspect" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling rquickjs-module-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 3.21s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rquickjs-core v0.6.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5` [INFO] running `Command { std: "docker" "inspect" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.06s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rquickjs-core v0.6.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/deps/rquickjs_module_test-28926acd1cf64746) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test::test_process ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test::test_process stdout ---- [INFO] [stdout] user_module: [INFO] [stdout] export default async function main(config) { [INFO] [stdout] if (Array.isArray(config.rules)) { [INFO] [stdout] config.rules = [...config.rules, "add"]; [INFO] [stdout] } [INFO] [stdout] config.proxies = ["111"]; [INFO] [stdout] return config; [INFO] [stdout] }; [INFO] [stdout] let config = JSON.parse('{"rules":[111,222],"tun":{"enable":false},"dns":{"enable":false}}'); [INFO] [stdout] export let _processed_config = await main(config); [INFO] [stdout] [INFO] [stdout] thread 'test::test_process' (823) panicked at src/main.rs:101:69: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: failed to evaluate user script: Exception(Exception { message: Some("Error resolving module 'user_script' from 'process'"), file: None, line: Some(-1), column: Some(-1), stack: Some("") }) [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: ::msg:: [INFO] [stdout] 1: rquickjs_module_test::process::{closure#0}::{closure#0}::{closure#0}::{closure#1} [INFO] [stdout] 2: rquickjs_module_test::process::{closure#0}::{closure#0}::{closure#0} [INFO] [stdout] 3: > as core::future::future::Future>::poll [INFO] [stdout] 4: as core::future::future::Future>::poll [INFO] [stdout] 5: ::block_on::> [INFO] [stdout] 6: tokio::runtime::context::runtime::enter_runtime::<::block_on::{closure#0}, ()> [INFO] [stdout] 7: ::block_on:: [INFO] [stdout] 8: rquickjs_module_test::test::test_process [INFO] [stdout] 9: >::call_once [INFO] [stdout] 10: test::__rust_begin_short_backtrace::, fn() -> core::result::Result<(), alloc::string::String>> [INFO] [stdout] 11: test::run_test::{closure#0} [INFO] [stdout] 12: std::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 13: ::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 14: ::new::thread_start [INFO] [stdout] 15: [INFO] [stdout] 16: clone [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55a3e2ade901 - <::print::DisplayBacktrace as core[df12db4294e9bfd3]::fmt::Display>::fmt [INFO] [stdout] 1: 0x55a3e2af48da - core[df12db4294e9bfd3]::fmt::write [INFO] [stdout] 2: 0x55a3e2ae350c - as core[df12db4294e9bfd3]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x55a3e2aba026 - std[70759c8f55707aa4]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x55a3e2ad6af9 - std[70759c8f55707aa4]::panicking::default_hook [INFO] [stdout] 5: 0x55a3e297eda0 - test[9d35eded1c95d3be]::test_main_inner::::{closure#0} [INFO] [stdout] 6: 0x55a3e2ad6e22 - std[70759c8f55707aa4]::panicking::panic_with_hook [INFO] [stdout] 7: 0x55a3e2aba0d2 - std[70759c8f55707aa4]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x55a3e2ab2709 - std[70759c8f55707aa4]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x55a3e2abaddd - __rustc[8fa7c3cbc660c2b3]::rust_begin_unwind [INFO] [stdout] 10: 0x55a3e2af503c - core[df12db4294e9bfd3]::panicking::panic_fmt [INFO] [stdout] 11: 0x55a3e2af4e12 - core[df12db4294e9bfd3]::result::unwrap_failed [INFO] [stdout] 12: 0x55a3e2946d4e - as core[df12db4294e9bfd3]::future::future::Future>::poll [INFO] [stdout] 13: 0x55a3e29430f5 - ::block_on::> [INFO] [stdout] 14: 0x55a3e293ce34 - tokio[1a4143dac82de3d0]::runtime::context::runtime::enter_runtime::<::block_on::{closure#0}, ()> [INFO] [stdout] 15: 0x55a3e2942d8c - ::block_on:: [INFO] [stdout] 16: 0x55a3e293f1bc - rquickjs_module_test[fe6586692569bbd8]::test::test_process [INFO] [stdout] 17: 0x55a3e2942ca9 - >::call_once [INFO] [stdout] 18: 0x55a3e297208b - test[9d35eded1c95d3be]::__rust_begin_short_backtrace::, fn() -> core[df12db4294e9bfd3]::result::Result<(), alloc[2182bb758b4b3781]::string::String>> [INFO] [stdout] 19: 0x55a3e297f6f5 - test[9d35eded1c95d3be]::run_test::{closure#0} [INFO] [stdout] 20: 0x55a3e2978fb4 - std[70759c8f55707aa4]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 21: 0x55a3e2982852 - ::{closure#1} as core[df12db4294e9bfd3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 22: 0x55a3e2addea9 - ::new::thread_start [INFO] [stdout] 23: 0x7a3e0d081dfa - [INFO] [stdout] 24: 0x7a3e0d1153d4 - clone [INFO] [stdout] 25: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test::test_process [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin rquickjs-module-test` [INFO] running `Command { std: "docker" "inspect" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d", kill_on_drop: false }` [INFO] [stdout] e05e8e33882088b8d0984aaa25f6c84f8a1bd6dd5a4914b6cd89b2ddbb98ac4d