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

fix: update dependencies and licences in test/examples #49

Merged
merged 4 commits into from
Jan 20, 2022

Conversation

iqdecay
Copy link
Contributor

@iqdecay iqdecay commented Jan 19, 2022

  • fix: update licence and authors in examples and tests manifests
  • test: fetch git repository for sway std and core lib in manifests

This closes #37 and #38.

@iqdecay
Copy link
Contributor Author

iqdecay commented Jan 20, 2022

Running RUST_BACKTRACE=1 cargo test -j1 -p fuels-abigen-macro --test harness gives this:

Finished test [unoptimized + debuginfo] target(s) in 0.73s
Running tests/harness.rs (target/debug/deps/harness-0bb155516ec8d88f)

running 17 tests
test compile_bindings_b256_input ... ok
test compile_bindings_enum_input ... ok
test compile_bindings_from_inline_contract ... ok
test compile_bindings_array_input ... ok
test compile_bindings_bool_array_input ... ok
test compile_bindings_nested_struct_input ... ok
test compile_bindings_from_contract_file ... ok
test compile_bindings_byte_input ... ok
test compile_bindings_string_input ... ok
test compile_bindings_single_param ... ok
test create_nested_struct_from_decoded_tokens ... ok
test compile_bindings_struct_input ... ok
test create_struct_from_decoded_tokens ... ok
  Compiled library "core".
  Compiled library "core".
  Compiled library "contract_test".
  Compiled library "contract_test".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "lib-std" with 2 warnings.
  Compiled library "lib-std" with 2 warnings.
  Compiled library "lib-std" with 2 warnings.
  Compiled library "lib-std" with 2 warnings.
error: test failed, to rerun pass '-p fuels-abigen-macro --test harness'

But running the remaining harness tests "by hand" gives no error. What should my next step be?

- The `stdlib` code is changing a lot, so the program counter cannot be
  reliably estimated and should not be hard-coded.
@digorithm
Copy link
Member

Running RUST_BACKTRACE=1 cargo test -j1 -p fuels-abigen-macro --test harness gives this:

Finished test [unoptimized + debuginfo] target(s) in 0.73s
Running tests/harness.rs (target/debug/deps/harness-0bb155516ec8d88f)

running 17 tests
test compile_bindings_b256_input ... ok
test compile_bindings_enum_input ... ok
test compile_bindings_from_inline_contract ... ok
test compile_bindings_array_input ... ok
test compile_bindings_bool_array_input ... ok
test compile_bindings_nested_struct_input ... ok
test compile_bindings_from_contract_file ... ok
test compile_bindings_byte_input ... ok
test compile_bindings_string_input ... ok
test compile_bindings_single_param ... ok
test create_nested_struct_from_decoded_tokens ... ok
test compile_bindings_struct_input ... ok
test create_struct_from_decoded_tokens ... ok
  Compiled library "core".
  Compiled library "core".
  Compiled library "contract_test".
  Compiled library "contract_test".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "core".
  Compiled library "lib-std" with 2 warnings.
  Compiled library "lib-std" with 2 warnings.
  Compiled library "lib-std" with 2 warnings.
  Compiled library "lib-std" with 2 warnings.
error: test failed, to rerun pass '-p fuels-abigen-macro --test harness'

But running the remaining harness tests "by hand" gives no error. What should my next step be?

Not sure what's up with your local environment, but running all the tests (using cargo test on the root dir) on my machine works just fine. Though compilation time, now that we're using std-lib and core-lib from latest @ github, went up by a lot. :(

@iqdecay iqdecay marked this pull request as ready for review January 20, 2022 19:26
@iqdecay iqdecay merged commit 3550897 into master Jan 20, 2022
@iqdecay iqdecay deleted the vnepveu/fix-deps-and-licence branch January 20, 2022 19:29
@iqdecay iqdecay mentioned this pull request Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants