Alexandru Vasile
c1073bc8d1
ci: Better job parallelism, cancel pipeline on failure and extra clippy checks ( #1409 )
...
* ci: Change CI order for better parallelism
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Cancel ongoing jobs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* TO REVERT: Check early termination due to clipp/check
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci/clippy: Extend clippy checks for lightclient and web feature flags
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Use cancel-action@3
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Derive Default
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt/rpc: Resolve redundant closure
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Fix clippy
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Fix clippy warnings
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Extend clippy rules
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Remove redundant clone
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Use subxt instead of subxt-lightclient
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Add wasm clippy step
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Simplify the clippy step into a single run command
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Pin version for cancel-action
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Fix pinned version
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2024-01-31 11:53:33 +02:00
Alexandru Vasile
372c36c2b9
lightclient: Fix wasm socket closure called after being dropped ( #1289 )
...
* lightclient: Close wasm socket while dropping from connecting state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Construct one time only closures
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Enable console logs for lightclient WASM testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Separate wakes and check connectivity on poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Close the socket depending on internal state
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Revert "lightclient: Separate wakes and check connectivity on poll_read"
This reverts commit 866094001d4c0b119a80ed681a74b323f74eae1b.
* lightclient: Return pending if socket is opening from poll_read
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Close the socket on `poll_close`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Reset closures on Drop to avoid recursive invokation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Close the socket if not already closing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-11-29 13:16:49 +02:00
Alexandru Vasile
4bda673847
Add light client platform WASM compatible ( #1026 )
...
* Cargo update in prep for wasm build
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add light client test
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Implement low level socket
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add native platform primitives
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add wasm platform primitives
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Implement smoldot platform
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust code to use custom platform
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust feature flags
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Adjust wasm endpoint to accept ws for p2p
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust wasm socket
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Book mention of wasm
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Propagate env variable properly
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Revert to native feature flags
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* cli: Use tokio rt-multi-thread feature
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* subxt: Add tokio feature flags for native platform
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm: Use polkadot live for wasm testing
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm: Add support for DNS p2p addresses
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm: Disable logs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm: Run wasm test for firefox driver
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm: Reenable chrome driver
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Move lightclient RPC to dedicated crate for better feature flags and modularity
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Use subxt-lightclient low level RPC crate
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Apply cargo fmt
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Enable default:native feature for cargo check
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Extra step for subxt-lightclient similar to signer crate
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove native platform code and use smoldot instead
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* codegen: Enable tokio/multi-threads
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* lightclient: Refactor modules
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust testing crates
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Run light-client WASM tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm-rpc: Remove light-client imports
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* testing: Update wasm cargo.lock files
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* ci: Spawn substrate node with deterministic p2p address for WASM tests
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm_socket: Use rc and refcell
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* wasm_socket: Switch back to Arc<Mutex<>>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add comments
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-07-18 14:27:16 +03:00