Skip to content

Commit

Permalink
Merge branch 'master' into aleks-container-chains-disabled-offchain-w…
Browse files Browse the repository at this point in the history
…orkers-check
  • Loading branch information
chexware authored Nov 5, 2024
2 parents 7834cad + fafdcc9 commit 53fac57
Show file tree
Hide file tree
Showing 100 changed files with 5,754 additions and 1,595 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: Install typescript-api
Expand Down
2 changes: 1 addition & 1 deletion .github/workflow-templates/zombienet-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: "Download binaries"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/client-release-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-binary-tannsi-relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-runtime-chevdor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
uses: pnpm/[email protected]
with:
version: 9
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: 'pnpm'
- name: Build typescript API
run: |
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Formatting check"
run: |
Expand All @@ -214,7 +214,7 @@ jobs:
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Linting check"
run: |
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Generate Local interfaces"
run: |
Expand Down Expand Up @@ -452,7 +452,7 @@ jobs:
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Generate typescript api"
run: |
Expand Down Expand Up @@ -487,7 +487,7 @@ jobs:
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Generate typescript api"
run: |
Expand Down Expand Up @@ -517,7 +517,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Download binaries"
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -552,7 +552,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Download binaries"
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -587,7 +587,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Download binaries"
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -621,7 +621,7 @@ jobs:
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: "Generate typescript api"
run: |
Expand Down Expand Up @@ -683,7 +683,7 @@ jobs:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"
- name: Create local folders
run: |
Expand Down Expand Up @@ -720,7 +720,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: Create local folders
Expand Down Expand Up @@ -803,7 +803,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: Create local folders
Expand Down Expand Up @@ -850,7 +850,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: Create local folders
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-zombienet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: Get test names
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/runtime-release-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upgrade-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ jobs:
uses: pnpm/[email protected]
with:
version: 9
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
- name: Regenerate typescript api with new runtime metadata
run: |
cd typescript-api
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0
node-version: 22.11.0
- name: Generate version bump issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
**/.yarn
test/tsconfig.json

# Test data
tmp

# Spec/Wasm build directory
**/build/

Expand Down
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pallet-collator-assignment-runtime-api = { path = "pallets/collator-assignment/r
pallet-configuration = { path = "pallets/configuration", default-features = false }
pallet-data-preservers = { path = "pallets/data-preservers", default-features = false }
pallet-data-preservers-runtime-api = { path = "pallets/data-preservers/runtime-api", default-features = false }
pallet-external-validators = { path = "pallets/external-validators", default-features = false }
pallet-inflation-rewards = { path = "pallets/inflation-rewards", default-features = false }
pallet-initializer = { path = "pallets/initializer", default-features = false }
pallet-invulnerables = { path = "pallets/invulnerables", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion container-chains/nodes/frontier/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ pub fn run() -> Result<()> {

runner.run_node_until_exit(|config| async move {
let relaychain_args = cli.relaychain_args();
let hwbench = (!cli.no_hardware_benchmarks).then_some(
let hwbench = (!cli.no_hardware_benchmarks).then(||
config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
Expand Down
2 changes: 1 addition & 1 deletion container-chains/nodes/simple/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ pub fn run() -> Result<()> {
let collator_options = cli.run.collator_options();

runner.run_node_until_exit(|config| async move {
let hwbench = (!cli.no_hardware_benchmarks).then_some(
let hwbench = (!cli.no_hardware_benchmarks).then(||
config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
Expand Down
12 changes: 7 additions & 5 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,12 @@ pub fn run() -> Result<()> {
.as_ref()
.expect("base_path is always set");
let hwbench = (!cmd.no_hardware_benchmarks)
.then_some(Some(containers_base_path).map(|database_path| {
let _ = std::fs::create_dir_all(database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
}))
.then(|| {
Some(containers_base_path).map(|database_path| {
let _ = std::fs::create_dir_all(database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
})
})
.flatten();

let polkadot_cli = solochain::relay_chain_cli_new(
Expand Down Expand Up @@ -413,7 +415,7 @@ pub fn run() -> Result<()> {
let collator_options = cli.run.collator_options();

runner.run_node_until_exit(|config| async move {
let hwbench = (!cli.no_hardware_benchmarks).then_some(
let hwbench = (!cli.no_hardware_benchmarks).then(||
config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
Expand Down
Loading

0 comments on commit 53fac57

Please sign in to comment.