Date: Tue, 8 Oct 2024 22:45:45 +0100
Subject: [PATCH 04/10] Update README.md
---
README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/README.md b/README.md
index 1952c3f29d1e..8016b6b37301 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-1
![SDK Logo](./docs/images/Polkadot_Logo_Horizontal_Pink_White.png#gh-dark-mode-only)
From 23c65529e45b2b7676050b583fcaa6c4aee5891c Mon Sep 17 00:00:00 2001
From: Maksym H
Date: Tue, 8 Oct 2024 22:46:24 +0100
Subject: [PATCH 05/10] Delete pr_5977.prdoc
---
prdoc/pr_5977.prdoc | 6 ------
1 file changed, 6 deletions(-)
delete mode 100644 prdoc/pr_5977.prdoc
diff --git a/prdoc/pr_5977.prdoc b/prdoc/pr_5977.prdoc
deleted file mode 100644
index f22027ac31d7..000000000000
--- a/prdoc/pr_5977.prdoc
+++ /dev/null
@@ -1,6 +0,0 @@
-title: '[DNM] testing /cmd'
-doc:
-- audience:
- - Node Dev
- description: null
-crates: []
From 6c5cb681524ef396124530dca7d136066a5ad26e Mon Sep 17 00:00:00 2001
From: Maksym H
Date: Wed, 9 Oct 2024 12:44:35 +0100
Subject: [PATCH 06/10] add timeout to cmd
---
.github/workflows/cmd.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml
index 00fec329e49f..d87aaa55137a 100644
--- a/.github/workflows/cmd.yml
+++ b/.github/workflows/cmd.yml
@@ -279,6 +279,7 @@ jobs:
echo "The repository is ${{ steps.get-pr.outputs.repo }}"
cmd:
+ timeout-minutes: 1800 # 30 hours as it could take a long time to run all the runtimes/pallets
needs: [set-image, get-pr-branch]
env:
JOB_NAME: "cmd"
From c1169b06ac051edaaeee909dbe5182a522eaf572 Mon Sep 17 00:00:00 2001
From: Maksym H
Date: Wed, 9 Oct 2024 14:47:16 +0100
Subject: [PATCH 07/10] fix examples tasks name by convention
---
substrate/bin/node/runtime/src/lib.rs | 2 +-
substrate/frame/examples/tasks/src/mock.rs | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/substrate/bin/node/runtime/src/lib.rs b/substrate/bin/node/runtime/src/lib.rs
index c81921f844bd..ececf0d87b2d 100644
--- a/substrate/bin/node/runtime/src/lib.rs
+++ b/substrate/bin/node/runtime/src/lib.rs
@@ -2643,7 +2643,7 @@ mod benches {
[pallet_contracts, Contracts]
[pallet_revive, Revive]
[pallet_core_fellowship, CoreFellowship]
- [tasks_example, TasksExample]
+ [pallet_example_tasks, TasksExample]
[pallet_democracy, Democracy]
[pallet_asset_conversion, AssetConversion]
[pallet_election_provider_multi_phase, ElectionProviderMultiPhase]
diff --git a/substrate/frame/examples/tasks/src/mock.rs b/substrate/frame/examples/tasks/src/mock.rs
index 33912bb5269c..9a1112946f69 100644
--- a/substrate/frame/examples/tasks/src/mock.rs
+++ b/substrate/frame/examples/tasks/src/mock.rs
@@ -18,7 +18,7 @@
//! Mock runtime for `tasks-example` tests.
#![cfg(test)]
-use crate::{self as tasks_example};
+use crate::{self as pallet_example_tasks};
use frame_support::derive_impl;
use sp_runtime::testing::TestXt;
@@ -29,7 +29,7 @@ type Block = frame_system::mocking::MockBlock;
frame_support::construct_runtime!(
pub enum Runtime {
System: frame_system,
- TasksExample: tasks_example,
+ TasksExample: pallet_example_tasks,
}
);
@@ -48,7 +48,7 @@ where
type Extrinsic = Extrinsic;
}
-impl tasks_example::Config for Runtime {
+impl pallet_example_tasks::Config for Runtime {
type RuntimeTask = RuntimeTask;
type WeightInfo = ();
}
From a1cb7396e5348c501219d2a228b0ee34c69d0b94 Mon Sep 17 00:00:00 2001
From: Maksym H
Date: Thu, 10 Oct 2024 15:45:33 +0100
Subject: [PATCH 08/10] log output multiline in workflow
---
.github/workflows/cmd.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml
index c278ce62868d..99525807b15e 100644
--- a/.github/workflows/cmd.yml
+++ b/.github/workflows/cmd.yml
@@ -372,8 +372,12 @@ jobs:
if [ -f /tmp/cmd/command_output.log ]; then
CMD_OUTPUT=$(cat /tmp/cmd/command_output.log)
- echo "cmd_output=$CMD_OUTPUT" >> $GITHUB_OUTPUT
+ # export to summary to display in the PR
echo "$CMD_OUTPUT" >> $GITHUB_STEP_SUMMARY
+ # should be multiline, otherwise it captures the first line only
+ echo 'cmd_output<> $GITHUB_OUTPUT
+ echo "$CMD_OUTPUT" >> $GITHUB_OUTPUT
+ echo 'EOF' >> $GITHUB_OUTPUT
fi
- name: Upload command output
@@ -435,6 +439,7 @@ jobs:
let runUrl = ${{ steps.build-link.outputs.run_url }}
let subweight = process.env.SUBWEIGHT;
let cmdOutput = process.env.CMD_OUTPUT;
+ console.log(cmdOutput);
let subweightCollapsed = subweight.trim() !== ''
? `\n\nSubweight results:
\n\n${subweight}\n\n `
From 6ba0a88571355ec439b1704dfb07ee55792d5d7e Mon Sep 17 00:00:00 2001
From: Maksym H
Date: Thu, 10 Oct 2024 16:05:52 +0100
Subject: [PATCH 09/10] Update cmd.yml
---
.github/workflows/cmd.yml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.github/workflows/cmd.yml b/.github/workflows/cmd.yml
index 99525807b15e..1818cdc11bbc 100644
--- a/.github/workflows/cmd.yml
+++ b/.github/workflows/cmd.yml
@@ -279,7 +279,6 @@ jobs:
echo "The repository is ${{ steps.get-pr.outputs.repo }}"
cmd:
- timeout-minutes: 1800 # 30 hours as it could take a long time to run all the runtimes/pallets
needs: [set-image, get-pr-branch]
env:
JOB_NAME: "cmd"
From da2c61ea490ef9935b853043a457f11fb6c868f7 Mon Sep 17 00:00:00 2001
From: Maksym H
Date: Thu, 10 Oct 2024 22:43:13 +0100
Subject: [PATCH 10/10] Update weight-generation.md
---
docs/contributor/weight-generation.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/contributor/weight-generation.md b/docs/contributor/weight-generation.md
index d5b407d5562d..a22a55404a44 100644
--- a/docs/contributor/weight-generation.md
+++ b/docs/contributor/weight-generation.md
@@ -40,7 +40,7 @@ For Substrate pallets (supports sub-modules too):
> So might be quick, but might also take up to 10 mins (That's in control of Github).
> Once the action is run, you'll see reaction 👀 on original comment, and if you didn't pass `--quiet` -
> it will also send a link to a pipeline when started, and link to whole workflow when finished.
-
+>
> **📝 Note**: It will try keep benchmarking even if some pallets failed, with the result of failed/successful pallets.
>
> If you want to fail fast on first failed benchmark, add `--fail-fast` flag to the command.