Closed MCJOHN974 closed 7 months ago
Can you please check whether you can run the tests in zkasm_runner.rs
with
cargo test --package cranelift-filetests --lib -- test_run_zkasm --nocapture
That should exercise the code that uses npm
and should give a good error message.
Also, make sure that you are running this from the root of the wasmtime
repository.
Also posting the result of running pwd
in the root of wasmtime
would be useful.
mcjohn974@mcjohn974-ASUS-TUF-Gaming-A15-FA506IV-FA506IV:~/pagoda/wasmtime$ cargo test --package cranelift-filetests --lib -- test_run_zkasm --nocapture
Compiling cranelift-codegen v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/codegen)
Compiling cranelift-native v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/native)
Compiling cranelift-frontend v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/frontend)
Compiling cranelift-module v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/module)
Compiling cranelift-reader v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/reader)
Compiling cranelift-interpreter v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/interpreter)
Compiling wasmtime-cranelift-shared v19.0.0 (/home/mcjohn974/pagoda/wasmtime/crates/cranelift-shared)
Compiling cranelift-jit v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/jit)
Compiling cranelift-wasm v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/wasm)
Compiling cranelift v0.106.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/umbrella)
Compiling wasmtime-cranelift v19.0.0 (/home/mcjohn974/pagoda/wasmtime/crates/cranelift)
Compiling wasmtime v19.0.0 (/home/mcjohn974/pagoda/wasmtime/crates/wasmtime)
Compiling cranelift-filetests v0.0.0 (/home/mcjohn974/pagoda/wasmtime/cranelift/filetests)
Finished test [unoptimized + debuginfo] target(s) in 20.50s
Running unittests src/lib.rs (target/debug/deps/cranelift_filetests-207ec478eb4f6132)
running 2 tests
test zkasm_runner::tests::test_run_zkasm_success ... ok
test zkasm_runner::tests::test_run_zkasm_runtime_error ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 34 filtered out; finished in 1.18s
mcjohn974@mcjohn974-ASUS-TUF-Gaming-A15-FA506IV-FA506IV:~/pagoda/wasmtime$ pwd
/home/mcjohn974/pagoda/wasmtime
Can you please check whether you can run the tests in
zkasm_runner.rs
withcargo test --package cranelift-filetests --lib -- test_run_zkasm --nocapture
That should exercise the code that uses
npm
and should give a good error message. Also, make sure that you are running this from the root of thewasmtime
repository.Also posting the result of running
pwd
in the root ofwasmtime
would be useful.
Above are results of this commands. And I rerunned my filetest, still same error
Can you please check whether you can run the tests in
zkasm_runner.rs
withcargo test --package cranelift-filetests --lib -- test_run_zkasm --nocapture
That should exercise the code that uses
npm
and should give a good error message. Also, make sure that you are running this from the root of thewasmtime
repository. Also posting the result of runningpwd
in the root ofwasmtime
would be useful.Above are results of this commands. And I rerunned my filetest, still same error
Ok, that is good - it means that zkasm_runner.rs
works on your machine and the problem is in the way that it is used in the filetests. Can you try to find the difference between the setup in the tests that I've linked and your usage of zkasm_runner.rs
?
The most likely culprit seems to be a different current working directory, can you check that by modifying "--prefix" "../../tests/zkasm"
argument?
Ok, that is good - it means that
zkasm_runner.rs
works on your machine and the problem is in the way that it is used in the filetests. Can you try to find the difference between the setup in the tests that I've linked and your usage ofzkasm_runner.rs
? The most likely culprit seems to be a different current working directory, can you check that by modifying"--prefix" "../../tests/zkasm"
argument?
Thanks, I resolved this issue. Should we rename it to "Make zkasm runner working with any current working directory"
Ok, that is good - it means that
zkasm_runner.rs
works on your machine and the problem is in the way that it is used in the filetests. Can you try to find the difference between the setup in the tests that I've linked and your usage ofzkasm_runner.rs
? The most likely culprit seems to be a different current working directory, can you check that by modifying"--prefix" "../../tests/zkasm"
argument?Thanks, I resolved this issue. Should we rename it to "Make zkasm runner working with any current working directory"
Yes! Let me see if I can quickly fix this.
I'm calling
zkasm_runner::run_zkasm
fromfiletests::src::test_run_zkasm::TestRunZkasm::run_target
and get this error:Mentioned log contains this:
I don't even have
/home/mcjohn974/pagoda/tests/
and the code is runned bycargo run -- test filetests/filetests/runtests/simple.clif
fromcranelift
.Am I doing something wrong? Maybe we need some comments\docs about how to use runner? My code