fix(dpp): invalid imports and tests (#2459) #5221
tests.yml
on: push
Build JS packages
/
Build JS
4m 43s
Matrix: Build Docker images
Determine changed packages
16s
Rust crates security audit
1m 18s
JS dependency versions check
10s
JS NPM security audit
13s
JS code security audit
/
Run Code QL
3m 0s
Packages functional tests
/
Run functional tests
4m 38s
Matrix: Test Suite
Matrix: Dashmate E2E tests
Matrix: JS packages
Matrix: Rust packages
Annotations
7 errors, 78 warnings, and 5 notices
Build JS packages / Build JS
Unable to download artifact(s): Artifact not found for name: js-build-d88ea4621e3304cf3fa7c7488b61851b170f820b
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
|
JS packages (@dashevo/dapi) / Linting:
packages/dapi/lib/externalApis/drive/fetchProofForStateTransitionFactory.js#L33
'dataContractsCache' is never reassigned. Use 'const' instead
|
JS packages (@dashevo/dapi) / Linting
Process completed with exit code 1.
|
JS packages (@dashevo/dapi) / Tests
Process completed with exit code 1.
|
JS code security audit / Run Code QL
CodeQL Action major versions v1 and v2 have been deprecated. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/
|
JS packages (dash) / Tests
The job running on runner GitHub Actions 15 has exceeded the maximum execution time of 15 minutes.
|
JS packages (dash) / Tests
The operation was canceled.
|
Rust packages (wasm-dpp) / Unused dependencies
Cache not found for keys: Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/
|
Rust packages (wasm-dpp) / Unused dependencies
Cache not found for keys: librocksdb/9.9.3/Linux/X64
|
Rust packages (wasm-dpp) / Linting
Cache not found for keys: Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/
|
Rust packages (wasm-dpp) / Linting
Cache not found for keys: librocksdb/9.9.3/Linux/X64
|
Rust packages (wasm-dpp) / Linting
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Rust packages (wasm-dpp) / Linting
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Rust packages (wasm-dpp) / Tests
Cache not found for keys: Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/
|
unused variable: `t`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs#L184
warning: unused variable: `t`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs:184:41
|
184 | DocumentTransition::Replace(t) => None,
| ^ help: if this is intentional, prefix it with an underscore: `_t`
|
= note: `#[warn(unused_variables)]` on by default
|
Rust packages (wasm-dpp) / Tests
Cache not found for keys: librocksdb/9.9.3/Linux/X64
|
unused variable: `t`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs#L185
warning: unused variable: `t`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs:185:40
|
185 | DocumentTransition::Delete(t) => None,
| ^ help: if this is intentional, prefix it with an underscore: `_t`
|
Rust packages (wasm-dpp) / Tests
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
unused variable: `t`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs#L186
warning: unused variable: `t`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs:186:42
|
186 | DocumentTransition::Transfer(t) => None,
| ^ help: if this is intentional, prefix it with an underscore: `_t`
|
unused variable: `t`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs#L187
warning: unused variable: `t`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs:187:45
|
187 | DocumentTransition::UpdatePrice(t) => None,
| ^ help: if this is intentional, prefix it with an underscore: `_t`
|
Rust packages (wasm-dpp) / Tests
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
unused variable: `t`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs#L188
warning: unused variable: `t`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/batched_transition/document_transition.rs:188:42
|
188 | DocumentTransition::Purchase(t) => None,
| ^ help: if this is intentional, prefix it with an underscore: `_t`
|
unneeded unit return type:
packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs#L118
warning: unneeded unit return type
--> packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs:118:44
|
118 | pub fn set_nonce(&mut self, nonce: u64) -> () {
| ^^^^^^ help: remove the `-> ()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: `#[warn(clippy::unused_unit)]` on by default
|
casting to the same type is unnecessary (`u16` -> `u16`):
packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs#L104
warning: casting to the same type is unnecessary (`u16` -> `u16`)
--> packages/wasm-dpp/src/identity/state_transition/identity_credit_transfer_transition/transition.rs:104:9
|
104 | self.0.user_fee_increase() as u16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.0.user_fee_increase()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
unneeded unit return type:
packages/wasm-dpp/src/identity/state_transition/identity_update_transition/identity_update_transition.rs#L179
warning: unneeded unit return type
--> packages/wasm-dpp/src/identity/state_transition/identity_update_transition/identity_update_transition.rs:179:71
|
179 | pub fn set_identity_contract_nonce(&mut self, identity_nonce: u64) -> () {
| ^^^^^^ help: remove the `-> ()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
|
casting to the same type is unnecessary (`u16` -> `u16`):
packages/wasm-dpp/src/identity/state_transition/identity_update_transition/identity_update_transition.rs#L165
warning: casting to the same type is unnecessary (`u16` -> `u16`)
--> packages/wasm-dpp/src/identity/state_transition/identity_update_transition/identity_update_transition.rs:165:9
|
165 | self.0.user_fee_increase() as u16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.0.user_fee_increase()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
bound is defined in more than one place:
packages/wasm-dpp/src/utils.rs#L25
warning: bound is defined in more than one place
--> packages/wasm-dpp/src/utils.rs:25:24
|
25 | fn with_serde_into<D: DeserializeOwned>(&self) -> Result<D, JsValue>
| ^
26 | where
27 | D: for<'de> serde::de::Deserialize<'de> + 'static;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `#[warn(clippy::multiple_bound_locations)]` on by default
|
Build Docker images (Drive, drive, drive-abci) / Build Drive image
Cache not found for keys: Linux-cargo-e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux-cargo-
|
Build Docker images (Drive, drive, drive-abci) / Build Drive image
Cache not found for keys: linux/amd64-yarn-unplugged-438376cd09665fd4340cf2b7f243910a82db5b63c67c6c879b1425a683986d20, linux/amd64-yarn-unplugged-
|
Build JS packages / Build JS
Cache not found for keys: Linux/yarn/unplugged/X64/438376cd09665fd4340cf2b7f243910a82db5b63c67c6c879b1425a683986d20, Linux/yarn/unplugged/X64/
|
Build JS packages / Build JS
Cache not found for keys: Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux/cargo/registry/
|
Build JS packages / Build JS
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Build Docker images (DAPI, dapi, dapi) / Build DAPI image
Cache not found for keys: Linux-cargo-e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux-cargo-
|
Build Docker images (DAPI, dapi, dapi) / Build DAPI image
Cache not found for keys: linux/amd64-yarn-unplugged-438376cd09665fd4340cf2b7f243910a82db5b63c67c6c879b1425a683986d20, linux/amd64-yarn-unplugged-
|
Build Docker images (DAPI, dapi, dapi) / Build DAPI image
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Build Docker images (DAPI, dapi, dapi) / Build DAPI image
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
Cache not found for keys: Linux-cargo-e6b01499a2223791080b7d9818e36ad41a6a57fea36310ba194dcd018ad6d619, Linux-cargo-
|
Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
Cache not found for keys: linux/amd64-yarn-unplugged-438376cd09665fd4340cf2b7f243910a82db5b63c67c6c879b1425a683986d20, linux/amd64-yarn-unplugged-
|
Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L8
Missing JSDoc @Property "network" description
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L38
Missing JSDoc @param "options" description
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L39
Missing JSDoc @param "createHistoricalSyncStream" description
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L40
Missing JSDoc @param "createContinuousSyncStream" description
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L63
Missing JSDoc @param "blockHeadersReader" description
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L71
Missing JSDoc @param "spvChain" description
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L107
Missing JSDoc @param "headers" description
|
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L108
Missing JSDoc @param "firstHeaderHeight" description
|
JS packages (@dashevo/dapi-client) / Linting:
packages/js-dapi-client/lib/BlockHeadersProvider/BlockHeadersProvider.js#L108
Missing JSDoc @param "firstHeaderHeight" type
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Client.ts#L10
Dependency cycle via ./Platform:1
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Client.ts#L166
Assignment to function parameter 'options'
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Fetcher/Fetcher.ts#L143
Returning an awaited value that is not a promise is not allowed
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Platform.spec.ts#L5
Using exported name 'Client' as identifier for default export
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Platform.ts#L5
Dependency cycle via ./Platform:10
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Platform.ts#L5
Using exported name 'Client' as identifier for default export
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Platform.ts#L8
Dependency cycle detected
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Platform.ts#L8
Using exported name 'createAssetLockTransaction' as identifier for default export
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Platform.ts#L10
Dependency cycle detected
|
JS packages (dash) / Linting:
packages/js-dash-sdk/src/SDK/Client/Platform/Platform.ts#L11
Dependency cycle detected
|
JS packages (@dashevo/wasm-dpp) / Linting:
packages/wasm-dpp/test/integration/identity/IdentityFacade.spec.js#L69
Unexpected console statement
|
|
|
|
|
|
|
|
|
|
|
|
|
JS packages (@dashevo/wallet-lib) / Linting:
packages/wallet-lib/src/test/mocks/dashcore/block.js#L33
Unexpected console statement
|
Dashmate E2E tests (Local network, test/e2e/localNetwork.spec.js, true) / Run Local network tests
Cache not found for keys: local-network-volumes/e4e156c86
|
Packages functional tests / Run functional tests
Cache not found for keys: local-network-volumes/e4e156c86
|
Packages functional tests / Run functional tests
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Packages functional tests / Run functional tests
Cache save failed.
|
Test Suite (Test Suite in browser (2), test:browsers, 1, 2) / Run Test Suite in browser (2)
Cache not found for keys: local-network-volumes/e4e156c86
|
Test Suite (Test Suite in browser (1), test:browsers, 0, 2) / Run Test Suite in browser (1)
Cache not found for keys: local-network-volumes/e4e156c86
|
Test Suite (Test Suite in browser (1), test:browsers, 0, 2) / Run Test Suite in browser (1)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
|
Test Suite (Test Suite, test:suite, 0, 0) / Run Test Suite
Cache not found for keys: local-network-volumes/e4e156c86
|
Test Suite (Test Suite, test:suite, 0, 0) / Run Test Suite
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Test Suite (Test Suite, test:suite, 0, 0) / Run Test Suite
Cache save failed.
|
sccache stats
100% - 290 hits, 0 misses, 0 errors
|
sccache stats
100% - 403 hits, 0 misses, 0 errors
|
sccache stats
100% - 551 hits, 0 misses, 0 errors
|
sccache stats
100% - 558 hits, 1 misses, 0 errors
|
sccache stats
100% - 217 hits, 0 misses, 0 errors
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
dashpay~platform~GM9COI.dockerbuild
|
89.7 KB |
|
dashpay~platform~K6TO3Y.dockerbuild
|
100 KB |
|
dashpay~platform~ML0KV4.dockerbuild
|
79.3 KB |
|
js-build-d88ea4621e3304cf3fa7c7488b61851b170f820b
Expired
|
18.6 MB |
|