pendulum-chain / spacewalk

Apache License 2.0
35 stars 7 forks source link

Update CI #552

Closed b-yap closed 1 month ago

b-yap commented 2 months ago

To avoid disk space issues or similar to this:

The runner has received a shutdown signal. This can happen when the runner service is stopped, or a manually started runner is canceled.

The hosted runner encountered an error while running your job. (Error Type: Disconnect).

Received request to deprovision: The request was cancelled by the remote provider.

I've split one huge job into multiple jobs (as suggested in https://github.com/actions/runner-images/issues/10401)

New CI

The jobs have shared actions:

└── prerequisite-nightly
      ├── prerequisite
      │   ├── free-up-disk-space
      │   └── installations
      │        └── cache, protoc
      └── install-rust-nightly
          └── setup nightly

Flow of the jobs:

└── Check Build (stable)
      ├── Run Clippy and Format Checks (stable)
      ├── Run Clippy and Format Checks (nightly)
      └-├─ Run Tests for Pallets (nightly)
      └-├─ Run Tests for Clients (nightly)
        └── Run Tests for Vault (nightly)

Cleanup Dependencies

Ran #![deny(unused_crate_dependencies)] on the pallets (and other directories) to identify the dependencies to:

Most of these are serde(still questionable), sp-io, sp-runtime and sp-core, pallet-balances and pallet-timestamp to name a few.

All other touched files are caused by clippy.