rooch-network / rooch

VApp Container with Move Language for Bitcoin ecosystem
https://rooch.network
Apache License 2.0
161 stars 85 forks source link

CI check continuous Failed due to `unbound module` #724

Closed baichuan3 closed 1 year ago

baichuan3 commented 1 year ago

CI check continuous Failed serveral times, which can normal execution in the local environment.

Task: https://github.com/rooch-network/rooch/actions/runs/6013202366/job/16329191126?pr=720

cargo nextest run --workspace --all-features
test run_test::cases/entry_function/entry_function_valid_reference.move ... FAILED
failures:
---- run_test::cases/entry_function/entry_function_valid_reference.move ----
Expected errors differ from actual errors:
processed 2 tasks
task 1 'publish'. lines 3-22:
Error: error: type `&mut signer` is not supported as a parameter type
  ┌─ /tmp/tempfile:8:5
  │  
8 │ ╭     entry public fun test_entry_function_valid_reference_mut_signer( _: &mut signer ){
9 │ │     }
  │ ╰─────^
Error: error[E03002]: unbound module
  ┌─ /tmp/tempfile:7:9
  │
7 │     use 0x2::tx_context;
  │         ^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x2::tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:12:21
   │
12 │         tx_context: tx_context::TxContext,
   │                     ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:36:74
   │
36 │     native public fun tx_context(a0: &storage_context::StorageContext): &tx_context::TxContext;
   │                                                                          ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:38:86
   │
38 │     native public fun tx_context_mut(a0: &mut storage_context::StorageContext): &mut tx_context::TxContext;
   │                                                                                      ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
  ┌─ /tmp/tempfile:8:9
  │
8 │     use 0x2::tx_context;
  │         ^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x2::tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:14:12
   │
14 │     friend tx_context;
   │            ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
  ┌─ /tmp/tempfile:7:9
  │
7 │     use 0x2::tx_context;
  │         ^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x2::tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:38:57
   │
38 │     native public(friend) fun new_table_handle(a0: &mut tx_context::TxContext): object_id::ObjectID;
   │                                                         ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
  ┌─ /tmp/tempfile:6:9
  │
6 │     use 0x2::tx_context;
  │         ^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x2::tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:30:63
   │
30 │     native public fun new<T0: copy+ drop, T1: store>(a0: &mut tx_context::TxContext): table::Table<T0, T1>;
   │                                                               ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
  ┌─ /tmp/tempfile:7:9
  │
7 │     use 0x2::tx_context;
  │         ^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x2::tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:26:45
   │
26 │     native public fun new<T0: key>(a0: &mut tx_context::TxContext, a1: address, a2: T0): object::Object<T0>;
   │                                             ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
  ┌─ /tmp/tempfile:8:9
  │
8 │     use 0x2::tx_context;
  │         ^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x2::tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:31:36
   │
31 │     native public fun new(a0: &mut tx_context::TxContext): object_storage::ObjectStorage;
   │                                    ^^^^^^^^^^ Unbound module alias 'tx_context'
error[E03002]: unbound module
  ┌─ /tmp/tempfile:5:9
  │
5 │     use 0x2::tx_context;
  │         ^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x2::tx_context'
error[E03002]: unbound module
   ┌─ /tmp/tempfile:26:36
   │
26 │     native public fun new(a0: &mut tx_context::TxContext): type_table::TypeTable;
   │                                    ^^^^^^^^^^ Unbound module alias 'tx_context'

Run with `env UB=1` (or `env UPDATE_BASELINE=1`) to save the current output as the new expected output
failures:
    run_test::cases/entry_function/entry_function_valid_reference.move
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 18 filtered out; finished in 145.81s

--- STDERR:              rooch-framework-tests::tests run_test::cases/entry_function/entry_function_valid_reference.move ---
BUILDING MoveStdlib
INCLUDING DEPENDENCY MoveStdlib
BUILDING MoveosStdlib
INCLUDING DEPENDENCY MoveStdlib
INCLUDING DEPENDENCY MoveosStdlib
BUILDING RoochFramework

   Canceling due to test failure: 15 tests still running
        PASS [ 147.312s] rooch-framework-tests::tests run_test::cases/entry_function/entry_function_valid_struct.move
        PASS [ 160.082s] rooch-framework-tests tests::nostr_validator_tests::test_validate
        PASS [ 170.[418](https://github.com/rooch-network/rooch/actions/runs/6013202366/job/16329191126?pr=720#step:9:419)s] rooch-framework-tests tests::native_validator_tests::test_validate
        PASS [ 163.798s] rooch-framework-tests tests::transaction_validator_tests::test_validate_schnorr
        PASS [ 169.458s] rooch-framework-tests::tests run_test::cases/account_storage/module_exists.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/entry_function/entry_function_with_return_value.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/event/basic.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/global_storage_access/move_to.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/object/basic.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/object/object_cap.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/private_generics/in_private_generics_types.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/private_generics/inside_module.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/private_generics/matches_function_definition.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/private_generics/mismatches_function_definition.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/private_generics/out_of_generics_types.move
        SLOW [> 60.000s] rooch-framework-tests::tests run_test::cases/private_generics/outside_module.move
        PASS [  98.821s] rooch-framework-tests::tests run_test::cases/event/basic.move
        PASS [  95.325s] rooch-framework-tests::tests run_test::cases/private_generics/in_private_generics_types.move
        SLOW [>120.000s] rooch-framework-tests::tests run_test::cases/entry_function/entry_function_with_return_value.move
        PASS [ 125.131s] rooch-framework-tests::tests run_test::cases/entry_function/entry_function_with_return_value.move
        SLOW [>120.000s] rooch-framework-tests::tests run_test::cases/global_storage_access/move_to.move
baichuan3 commented 1 year ago

Another failed case https://github.com/rooch-network/rooch/actions/runs/6020069064/job/16330819205

stevenlaw123 commented 1 year ago

Yes, this is a bug that randomly occurs during the compilation process of integration testing. Currently, I am investigating the cause.