thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
219 stars 54 forks source link

[cargo tarpaulin] Failed at plugin tests #610

Closed exalate-issue-sync[bot] closed 2 years ago

exalate-issue-sync[bot] commented 2 years ago

Two tests are failed in tarpaulin.

test tests::plugin_command_update_list_fallback ... FAILED test tests::plugin_get_command_update_list ... FAILED

makr11st commented 2 years ago

I had similar issue with directory restructure. It seems that the cache doesn't contain a binary which is built during cargo build and required for some of the tests to run.

Have a look at: #559

A solution would be to add step in the workflow to build this binary:

      - name: Cargo build dummy plugin
        uses: actions-rs/cargo@v1
        # https://github.com/marketplace/actions/rust-cargo
        with:
          command: build
          args: -p tedge_dummy_plugin
rina23q commented 2 years ago

Could be, but not completely the same list of tests are failing.

test tests::plugin_call_name_and_path ... ok
test tests::plugin_check_module_type_both_different ... ok
test tests::plugin_check_module_type_default ... ok
test tests::plugin_check_module_type_both_same ... ok
test tests::plugin_get_command_finalize ... ok
test tests::plugin_get_command_install ... ok
test tests::plugin_get_command_list ... ok
test tests::plugin_command_update_list_fallback ... FAILED
test tests::plugin_get_command_prepare ... ok
test tests::plugin_get_command_remove ... ok
test tests::plugin_get_command_update_list ... FAILED
rina23q commented 2 years ago

I added cargo build -p tedge_dummy_plugin step in #637 and https://github.com/thin-edge/thin-edge.io/actions/runs/1503955052, but it didn't help. As I mentioned above, plugin_get_comand_xxx tests were successful. I think there is a different issue as this test fails in different tests.