Skip to content

Commit 7af50e0

Browse files
authored
Merge branch 'main' into bko-bump-binary
2 parents b0942b6 + e31f3a4 commit 7af50e0

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.github/workflows/check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ concurrency:
2121
# Repo env variable doesn't work for PRs from forks
2222
env:
2323
CI_IMAGE: "paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507112050"
24+
FRAME_OMNI_BENCHER_BIN_DIR: ${{ github.workspace }}/.frame-omni-bencher-bin
2425

2526
jobs:
2627
set-image:
@@ -167,6 +168,16 @@ jobs:
167168
with:
168169
shared-key: "bulletin-cache-benchmarks"
169170
save-if: ${{ github.ref == 'refs/heads/main' }}
171+
172+
- name: Download frame-omni-bencher
173+
run: |
174+
mkdir -p $FRAME_OMNI_BENCHER_BIN_DIR
175+
cd $FRAME_OMNI_BENCHER_BIN_DIR
176+
echo "Downloading frame-omni-bencher..."
177+
curl -L -o frame-omni-bencher https://github.com/paritytech/polkadot-sdk/releases/latest/download/frame-omni-bencher
178+
chmod +x frame-omni-bencher
179+
./frame-omni-bencher --version
180+
echo "${FRAME_OMNI_BENCHER_BIN_DIR}" >> $GITHUB_PATH
170181
171182
- name: Run benchmarks (Westend parachain)
172183
run: |

runtimes/bulletin-westend/src/weights/xcm/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ impl<Call> XcmWeightInfo<Call> for BulletinWestendXcmWeight<Call> {
6767
fn reserve_asset_deposited(assets: &Assets) -> Weight {
6868
assets.weigh_assets(XcmFungibleWeight::<Runtime>::reserve_asset_deposited())
6969
}
70-
fn receive_teleported_asset(assets: &Assets) -> Weight {
71-
assets.weigh_assets(XcmFungibleWeight::<Runtime>::receive_teleported_asset())
70+
fn receive_teleported_asset(_assets: &Assets) -> Weight {
71+
Weight::MAX
7272
}
7373
fn query_response(
7474
_query_id: &u64,

runtimes/bulletin-westend/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ impl<T: frame_system::Config> WeightInfo<T> {
9797
Weight::from_parts(2_130_000, 0)
9898
}
9999

100-
pub(crate) fn receive_teleported_asset() -> Weight {
101-
// Teleportation is not supported by this runtime.
102-
Weight::MAX
103-
}
104100
/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
105101
/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
106102
/// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)

scripts/cmd/cmd.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
wasm_file = f"target/{profile}/wbuild/{runtime['package']}/{runtime['package'].replace('-', '_')}.wasm"
9898
output = os.popen(
9999
f"frame-omni-bencher v1 benchmark pallet --no-csv-header --all --list --runtime={wasm_file}").read()
100+
if output == "":
101+
print(f'frame-omni-bencher not found')
102+
sys.exit(1)
100103
raw_pallets = output.split('\n')
101104

102105
all_pallets = set()
@@ -130,7 +133,7 @@
130133
print(f"No pallets [{args.pallet}] found in {args.runtime}")
131134
else:
132135
print('No runtimes found')
133-
sys.exit(0)
136+
sys.exit(1)
134137

135138
header_path = os.path.abspath('./scripts/cmd/file_header.txt')
136139

0 commit comments

Comments
 (0)