Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from paritytech:master #13

Closed
wants to merge 146 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
ae0b3bf
CheckWeight: account for extrinsic len as proof size (#4765)
sandreim Jun 14, 2024
2f64381
add ref doc for logging practices in FRAME (#4768)
kianenigma Jun 17, 2024
7968909
CI: Add stable clobber (#4780)
ggwpez Jun 17, 2024
d91cbbd
Impl and use default config for pallet-staking in tests (#4797)
Ank4n Jun 17, 2024
2e39e05
Improve pruning CLI documentation (#4810)
bkchr Jun 17, 2024
fed508f
chore: remove unnecessary words (#4796)
hattizai Jun 17, 2024
6cb3bd2
Ibp bootnodes for Kusama People (#6) (#4741)
hitchhooker Jun 17, 2024
5055294
node-inspect: do not depend on rocksdb (#4783)
FlorianFranzen Jun 17, 2024
55a13ab
remove pallet::getter usage from pallet-timestamp (#3374)
tesol2y090 Jun 17, 2024
7c847f8
refactor: parachain template (#4684)
Daanvdplas Jun 18, 2024
1dc68de
glutton: also increase parachain block length (#4728)
sandreim Jun 18, 2024
40677b6
Remove deprecated treasury pallet calls (#3820)
chungquantin Jun 18, 2024
cc38713
Add set_partial_params dispatchable function (#3843)
chungquantin Jun 18, 2024
029a656
Unify `code_at` logic between `CallExecutor` & `Client` (#4618)
bkchr Jun 18, 2024
e172959
chore: remove redundant words. (#4653)
tianyeyouyou Jun 18, 2024
6daa939
Migrated commands to github actions (#4701)
Bullrich Jun 18, 2024
739c37b
Fix core sharing and make use of scheduling_lookahead (#4724)
tdimitrov Jun 19, 2024
4389aaf
Update bridges zombienet tests relay version (#4821)
bkontur Jun 19, 2024
9f09169
Fix CLI pruning params (#4836)
bkchr Jun 19, 2024
6c85760
rpc server: add `health/readiness endpoint` (#4802)
niklasad1 Jun 19, 2024
74decbb
Bump curve25519-dalek from 4.1.2 to 4.1.3 (#4824)
dependabot[bot] Jun 20, 2024
a23abb1
Bump ws from 8.16.0 to 8.17.1 in /bridges/testing/framework/utils/gen…
dependabot[bot] Jun 21, 2024
b301218
[ci] Change storage type for forklift in GHA (#4850)
alvicsam Jun 21, 2024
2657cfb
Do not make pallet-nfts benchmarks signature-dependent (#4756)
Moliholy Jun 21, 2024
d18d362
[HRMP] Dont partially modify pages (#4710)
ggwpez Jun 21, 2024
a477bd0
Implement `pallet-assets-freezer` (#3951)
pandres95 Jun 21, 2024
3b3a1d2
sc-network-types: implement `From<IpAddr> for Multiaddr` (#4855)
dmitry-markin Jun 21, 2024
c4b3c1c
Bump time to fix compilation on latest nightly (#4862)
bkchr Jun 21, 2024
812dbff
Frame: `Consideration` trait generic over `Footprint` and indicates z…
muharem Jun 22, 2024
25a648d
Remove pallet::getter macro usage from pallet-elections-phragmen (#4513)
PolkadotDom Jun 23, 2024
f8feebc
Reinitialize should allow to override existing config in collationGen…
girazoki Jun 23, 2024
686aa23
Block import cleanups (#4842)
nazar-pc Jun 23, 2024
7df94a4
Dont publish example pallets (#4861)
ggwpez Jun 24, 2024
fed81f7
pallet-membership should implement ContainsLengthBound (#4865)
Aideepakchaudhary Jun 24, 2024
b776716
Ensure earliest allowed block is at minimum the next block (#4823)
bkchr Jun 24, 2024
8efa054
Lift all dependencies (the big one) (#4716)
ggwpez Jun 24, 2024
0b11c27
pallet ranked collective: max member count per rank (#4807)
muharem Jun 24, 2024
10b68db
CI quick-checks: Pull Rust deps in advance (#4867)
ggwpez Jun 24, 2024
5e62782
treasury pallet: remove unused config parameters (#4831)
muharem Jun 24, 2024
63e2644
chore: remove repeat words (#4869)
dashangcun Jun 24, 2024
a0fc3b5
rpc2: Finalized event doesn't indicate that the best block changes (#…
bkchr Jun 25, 2024
909bfc2
[subsystem-bench] Trigger own assignments in approval-voting (#4772)
AndreiEres Jun 25, 2024
a406dd5
chore: remove unused rustc-hex deps; enable rustc-hex for primitive-t…
yjhmelody Jun 25, 2024
3c21372
chain-spec-builder: Add support for `codeSubstitutes` (#4685)
skunert Jun 25, 2024
414a8fc
Upgrade libp2p to 0.52.4 (#1631)
altonen Jun 25, 2024
2f3a1bf
Use real rust type for pallet alias in `runtime` macro (#4769)
gupnik Jun 25, 2024
0ed3f04
Block import and verification refactoring (#4844)
nazar-pc Jun 26, 2024
20aecad
[FRAME] Remove storage migration type (#3828)
muharem Jun 26, 2024
7a2592e
rpc: upgrade jsonrpsee v0.23 (#4730)
niklasad1 Jun 26, 2024
7084463
Update parity publish (#4878)
Morganamilo Jun 26, 2024
7506956
[xcm] runtime api for LocationToAccount conversions (#4857)
bkontur Jun 26, 2024
b4ae5b0
Fellowship-core: add fast promote (#4877)
ggwpez Jun 26, 2024
4a7155e
network: Upgrade `litep2p` to v0.6.2 (#4799)
dmitry-markin Jun 26, 2024
f1db2c6
Coretime: Add request revenue info (#3940)
antonva Jun 26, 2024
929a273
pallet assets: optional auto-increment for the asset ID (#4757)
muharem Jun 26, 2024
7c6ab07
Mention the signed extensions in the reference docs (#4887)
bkchr Jun 27, 2024
d604e84
Ensure key ownership proof is optimal (#4699)
serban300 Jun 27, 2024
569f994
Only sc-rpc-server uses `http` (#4890)
jasl Jun 27, 2024
29a8da4
Use newer nightly in check-semver (#4895)
Morganamilo Jun 27, 2024
dee1824
BridgeHubs fresh weights for bridging pallets (#4891)
bkontur Jun 27, 2024
de41ae8
chore(deps): upgrade prometheous server to hyper v1 (#4898)
niklasad1 Jun 27, 2024
18a6a56
Add `Runtime::OmniNode` variant to `polkadot-parachain` (#4805)
serban300 Jun 28, 2024
30cdf5d
Add Async Backing guide (#4363)
DrW3RK Jun 28, 2024
016f394
[Rococo<>Westend bridge] Allow any asset over the lane between the tw…
acatangiu Jun 28, 2024
31986a6
Adds CheckMetadata SignedExtension to Coretime Parachains (Rococo and…
SBalaguer Jun 28, 2024
aaf0443
network: Sync peerstore constants between libp2p and litep2p (#4906)
lexnv Jun 28, 2024
333f4c7
Remove getters from pallet-membership (#4840)
PolkadotDom Jul 1, 2024
18228a9
prdoc upgrade (#4918)
mutantcornholio Jul 1, 2024
18ed309
Pallet Name Customisation (#4806)
ndkazu Jul 1, 2024
b69fc17
Update `PULL_REQUEST_TEMPLATE` and `CONTRIBUTING` docs. (#4908)
kianenigma Jul 3, 2024
62b955e
Fix markdown lint step (#4933)
alexggh Jul 3, 2024
b31880c
`polkadot-parachain`: Unify asset-hub authoring codepath with general…
skunert Jul 3, 2024
6b9d14a
litep2p: Increment random walk metrics (#4929)
lexnv Jul 3, 2024
98ce675
bridge tests: send bridged assets from random parachain to bridged as…
acatangiu Jul 3, 2024
33324fe
approval-voting: Make tests deterministic (#3899)
alexggh Jul 3, 2024
e5791a5
Fixes warnings in `frame-support-procedural` crate (#4915)
gupnik Jul 3, 2024
b6f1823
[BEEFY] Add runtime support for reporting fork voting (#4522)
serban300 Jul 3, 2024
282eaaa
[Staking] Delegators can stake but stakers can't delegate (#4904)
Ank4n Jul 3, 2024
6084923
Remove pallet::getter usage from all pallet-tips (#4871)
Aideepakchaudhary Jul 3, 2024
51e9827
rename the candidate backing message from `GetBackedCandidates` to `G…
axaysagathiya Jul 3, 2024
924728c
Remove getter macro from pallet-insecure-randomness-collective-flip (…
PolkadotDom Jul 3, 2024
e44f61a
Introduce basic slot-based collator (#4097)
skunert Jul 5, 2024
299aacb
[ci] Increase timeout for ci jobs (#4950)
alvicsam Jul 5, 2024
95c7e4f
Stabilize elastic-scaling pov-recovery test (#4958)
skunert Jul 5, 2024
2b17cb8
remove getter from vesting pallet (#4902)
Aideepakchaudhary Jul 5, 2024
221eddc
Optimize finalization performance (#4922)
nazar-pc Jul 5, 2024
706d2f3
upgrade to macro_magic 0.5.1 (#4945)
sam0x17 Jul 6, 2024
515a9f7
Fix small typo in fungible token freeze docs (#4943)
tsenovilla Jul 6, 2024
d3a679d
remove getter from transaction storage pallet (#4885)
Aideepakchaudhary Jul 6, 2024
d3cdfc4
remove getter from babe pallet (#4912)
Aideepakchaudhary Jul 6, 2024
f7dd85d
Assets: can_decrease/increase for destroying asset is not successful …
muharem Jul 7, 2024
e1460b5
[Backport] Version bumps and prdocs reordering from 1.14.0 (#4955)
EgorPopelyaev Jul 8, 2024
8af45d2
sp-core: Improve docs generated by `generate_feature_enabled_macro` (…
bkchr Jul 8, 2024
7290042
Make `tracing::log` work in the runtime (#4863)
bkchr Jul 8, 2024
d4657f8
litep2p/peerstore: Fix bump last updated time (#4971)
lexnv Jul 8, 2024
72dab6d
allow clear_origin in safe xcm builder (#4777)
orgr Jul 9, 2024
1e1fd74
Update Templates README docs (#4980)
DrW3RK Jul 9, 2024
01e0fc2
`polkadot-parachain` simplifications and deduplications (#4916)
serban300 Jul 9, 2024
2f0e5a6
add notices to the implementer's guide docs that changed for elastic …
alindima Jul 9, 2024
9403a5d
Add `MAX_INSTRUCTIONS_TO_DECODE` to XCMv2 (#4978)
franciscoaguirre Jul 9, 2024
9fd7b43
Expose metadata-hash feature from polkadot crate (#4886)
jsdw Jul 10, 2024
02e50ad
Explain usage of `<T: Config>` in FRAME storage + Update parachain pa…
kianenigma Jul 10, 2024
6dd777f
fixed cmd bot commenting not working (#5000)
Bullrich Jul 11, 2024
53598b8
Remove usage of `sp-std` on templates (#5001)
jasl Jul 11, 2024
2a555c3
xcm-executor: Improve logging (#4996)
bkchr Jul 12, 2024
1f8e448
Bridges V2 refactoring backport and `pallet_bridge_messages` simplifi…
bkontur Jul 12, 2024
ebb1bb6
added sync command (#4818)
Bullrich Jul 12, 2024
d31285a
[statement-distribution] Add metrics for distributed statements in V2…
AndreiEres Jul 12, 2024
4aa29a4
Try State Hook for Bounties (#4563)
dharjeezy Jul 12, 2024
d2dff5f
network/tx: Ban peers with tx that fail to decode (#5002)
lexnv Jul 15, 2024
291210a
Use sp_runtime::traits::BadOrigin (#5011)
jasl Jul 15, 2024
7ecf3f7
Remove most all usage of `sp-std` (#5010)
jasl Jul 15, 2024
c05b0b9
Updated substrate-relay version for tests (#5017)
bkontur Jul 15, 2024
926c1b6
rpc: add back rpc logger (#4952)
niklasad1 Jul 15, 2024
8d39271
net/litep2p: Propagate ValuePut events to the network backend (#5018)
lexnv Jul 16, 2024
d8d36a0
command-action: added scoped permissions to the github tokens (#5016)
Bullrich Jul 16, 2024
0b3d760
Remove `pallet-getter` usage from pallet-session (#4972)
mittal-parth Jul 16, 2024
cde2eb4
[1 / 5] Optimize logic for gossiping assignments (#4848)
alexggh Jul 16, 2024
eac2a22
[pallet_contracts] Add support for transient storage in contracts hos…
smiasojed Jul 16, 2024
79a3d6c
Adjust base value for statement-distribution regression tests (#5028)
AndreiEres Jul 16, 2024
66baa2f
[ci] Update forklift in CI image (#5032)
alvicsam Jul 16, 2024
975e04b
Send PeerViewChange with high priority (#4755)
AndreiEres Jul 16, 2024
0db5092
add elastic scaling MVP guide (#4663)
alindima Jul 17, 2024
7399519
Adjust release flows to use those with the new branch model (#5015)
EgorPopelyaev Jul 17, 2024
1b6292b
Do not crash on block gap in `displaced_leaves_after_finalizing` (#4997)
skunert Jul 17, 2024
b862b18
fix: Update libp2p-websocket to v0.42.2 to fix panics (#5040)
lexnv Jul 17, 2024
b3cabd8
Fix landlock presence test (#5037)
s0me0ne-unkn0wn Jul 17, 2024
12f352c
Remove accidentally added files (#5052)
bkchr Jul 17, 2024
72030ce
Add 'missing_docs' attribute to dummy package (#4992)
hrls Jul 17, 2024
a053d2c
Update command-fmt.yml (#5054)
mordamax Jul 17, 2024
4bcdf81
Update the stake.plus bootnode addresses (#5039)
senseless Jul 17, 2024
25d9b59
upgrade `wasm-bindgen` to 0.2.92 (#5056)
jasl Jul 18, 2024
b6607cb
Update the template synchronization script (#5022)
rzadp Jul 18, 2024
e2d3b8b
Bump the known_good_semver group with 8 updates (#5060)
dependabot[bot] Jul 18, 2024
35fcac7
wasm-builder: Also set `mcpu` for c deps (#3777)
bkchr Jul 18, 2024
d97fbb1
Use `Mutex` in `HeaderMetadataCache` (#5063)
nazar-pc Jul 18, 2024
d05cd9a
Bump enumn from 0.1.12 to 0.1.13 (#5061)
dependabot[bot] Jul 18, 2024
ad9804f
Add `pub` to xcm::v4::PalletInfo (#4976)
JuaniRios Jul 18, 2024
59b11ca
Bump actions/setup-node from 4.0.1 to 4.0.3 (#4990)
dependabot[bot] Jul 19, 2024
f8f70b3
relax `XcmFeeToAccount` trait bound on `AccountId` (#4959)
ozgunozerk Jul 19, 2024
b01ef04
prdoc: Require `bump` field (#5073)
ggwpez Jul 19, 2024
d16af0b
Backport claim assets tests from polkadot-fellows repo (#4930)
programskillforverification Jul 19, 2024
7f2a99f
beefy: put not only lease parachain heads into mmr (#4751)
ordian Jul 19, 2024
394ea70
[NPoS] Some simple refactors to Delegate Staking (#4981)
Ank4n Jul 19, 2024
d649746
Implements `PoV` export and local validation (#4640)
bkchr Jul 19, 2024
59e3315
Balances Pallet: Emit events when TI is updated in currency impl (#4936)
mittal-parth Jul 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .config/taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ keys = ["build"]

[rule.formatting]
reorder_arrays = false

[[rule]]
include = ["Cargo.toml"]
keys = ["workspace.dependencies"]

[rule.formatting]
reorder_keys = true
33 changes: 33 additions & 0 deletions .forklift/config-gitlab.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[compression]
type = "zstd"

[compression.zstd]
compressionLevel = 3

[general]
jobNameVariable = "CI_JOB_NAME"
jobsBlackList = []
logLevel = "warn"
threadsCount = 6

[cache]
extraEnv = ["RUNTIME_METADATA_HASH"]

[metrics]
enabled = true
pushEndpoint = "placeholder"

[metrics.extraLabels]
environment = "production"
job_name = "$CI_JOB_NAME"
project_name = "$CI_PROJECT_PATH"

[storage]
type = "s3"

[storage.s3]
accessKeyId = "placeholder"
bucketName = "placeholder"
concurrency = 10
endpointUrl = "placeholder"
secretAccessKey = "placeholder"
10 changes: 3 additions & 7 deletions .forklift/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ job_name = "$CI_JOB_NAME"
project_name = "$CI_PROJECT_PATH"

[storage]
type = "s3"
type = "gcs"

[storage.s3]
accessKeyId = "placeholder"
bucketName = "placeholder"
concurrency = 10
endpointUrl = "placeholder"
secretAccessKey = "placeholder"
[storage.gcs]
bucketName = "parity-ci-forklift"
36 changes: 36 additions & 0 deletions .github/actions/set-up-gh/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'install gh'
description: 'Install the gh cli in a debian based distro and switches to the PR branch.'
inputs:
pr-number:
description: "Number of the PR"
required: true
GH_TOKEN:
description: "GitHub token"
required: true
outputs:
branch:
description: 'Branch name for the PR'
value: ${{ steps.branch.outputs.branch }}
runs:
using: "composite"
steps:
- name: Instal gh cli
shell: bash
# Here it would get the script from previous step
run: |
(type -p wget >/dev/null || (apt update && apt-get install wget -y))
mkdir -p -m 755 /etc/apt/keyrings
wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
apt update
apt install gh -y
git config --global --add safe.directory '*'
- run: gh pr checkout ${{ inputs.pr-number }}
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.GH_TOKEN }}
- name: Export branch name
shell: bash
run: echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> "$GITHUB_OUTPUT"
id: branch
Binary file added .github/command-screnshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
200 changes: 200 additions & 0 deletions .github/commands-readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
# Running commands

Command bot has been migrated, it is no longer a comment parser and now it is a GitHub action that works as a [`workflow_dispatch`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch) event.

## How to run an action

To run an action, you need to go to the [_actions tab_](https://github.com/paritytech/polkadot-sdk/actions) and pick the one you desire to run.

The current available command actions are:

- [Command FMT](https://github.com/paritytech/polkadot-sdk/actions/workflows/command-fmt.yml)
- [Command Update UI](https://github.com/paritytech/polkadot-sdk/actions/workflows/command-update-ui.yml)
- [Command Sync](https://github.com/paritytech/polkadot-sdk/actions/workflows/command-sync.yml)
- [Command Bench](https://github.com/paritytech/polkadot-sdk/actions/workflows/command-bench.yml)
- [Command Bench All](https://github.com/paritytech/polkadot-sdk/actions/workflows/command-bench-all.yml)
- [Command Bench Overhead](https://github.com/paritytech/polkadot-sdk/actions/workflows/command-bench-overhead.yml)

You need to select the action, and click on the dropdown that says: `Run workflow`. It is located in the upper right.

If this dropdown is not visible, you may not have permission to run the action. Contact IT for help.

![command screenshot](command-screnshot.png)

Each command will have the same two required values, but it could have more.

GitHub's official documentation: [Manually running a workflow](https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow)

### Number of the Pull Request

The number of the pull request. Required so the action can fetch the correct branch and comment if it fails.

## Action configurations

### Bench

Runs `benchmark pallet` or `benchmark overhead` against your PR and commits back updated weights.

Posible combinations based on the `benchmark` dropdown.

- `substrate-pallet`: Pallet Benchmark for Substrate for specific pallet
- Requires `Subcommand` to be `pallet`
- Requires `Runtime` to be `dev`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Target Directory` to be `substrate`
- `polkadot-pallet`: Pallet Benchmark for Polkadot for specific pallet
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one of the following:
- `rococo`
- `westend`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Target Directory` to be `polkadot`
- `cumulus-assets`: Pallet Benchmark for Cumulus assets
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one of the following:
- `asset-hub-westend`
- `asset-hub-rococo`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `assets`
- Requires `Target Directory` to be `cumulus`
- `cumulus-collectives`: Pallet Benchmark for Cumulus collectives
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be `collectives-westend`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `collectives`
- Requires `Target Directory` to be `cumulus`
- `cumulus-coretime`: Pallet Benchmark for Cumulus coretime
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one of the following:
- `coretime-rococo`
- `coretime-westend`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `coretime`
- Requires `Target Directory` to be `cumulus`
- `cumulus-bridge-hubs`: Pallet Benchmark for Cumulus bridge-hubs
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one of the following:
- `bridge-hub-rococo`
- `bridge-hub-westend`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `bridge-hub`
- Requires `Target Directory` to be `cumulus`
- `cumulus-contracts`: Pallet Benchmark for Cumulus contracts
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one `contracts-rococo`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `contracts`
- Requires `Target Directory` to be `cumulus`
- `cumulus-glutton`: Pallet Benchmark for Cumulus glutton
- Requires `Subcommand` to be `pallet`
- Requires `Runtime` to be one of the following:
- `glutton-westend`
- `glutton-westend-dev-1300`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `glutton`
- Requires `Target Directory` to be `cumulus`
- `cumulus-starters`: Pallet Benchmark for Cumulus starters
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one of the following:
- `seedling`
- `shell`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `starters`
- Requires `Target Directory` to be `cumulus`
- `cumulus-people`: Pallet Benchmark for Cumulus people
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one of the following:
- `people-westend`
- `people-rococo`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `people`
- Requires `Target Directory` to be `cumulus`
- `cumulus-testing`: Pallet Benchmark for Cumulus testing
- Requires `Subcommand` to be one of the following:
- `pallet`
- `xcm`
- Requires `Runtime` to be one of the following:
- `penpal`
- `rococo-parachain`
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- Requires `Runtime Dir` to be `testing`
- Requires `Target Directory` to be `cumulus`

### Bench-all

This is a wrapper to run `bench` for all pallets.

Posible combinations based on the `benchmark` dropdown.

- `pallet`: Benchmark for Substrate/Polkadot/Cumulus/Trappist for specific pallet
- Requires field `Pallet` to have an input that applies to `^([a-z_]+)([:]{2}[a-z_]+)?$`
- `substrate`: Pallet + Overhead + Machine Benchmark for Substrate for all pallets
- Requires `Target Directory` to be `substrate`
- `polkadot`: Pallet + Overhead Benchmark for Polkadot
- Requires `Runtime` to be one of the following:
- `rococo`
- `westend`
- Requires `Target Directory` to be `polkadot`
- `cumulus`: Pallet Benchmark for Cumulus
- Requires `Runtime` to be one of the following:
- `rococo`
- `westend`
- `asset-hub-kusama`
- `asset-hub-polkadot`
- `asset-hub-rococo`
- `asset-hub-westend`
- `bridge-hub-kusama`
- `bridge-hub-polkadot`
- `bridge-hub-rococo`
- `bridge-hub-westend`
- `collectives-polkadot`
- `collectives-westend`
- `coretime-rococo`
- `coretime-westend`
- `contracts-rococo`
- `glutton-kusama`
- `glutton-westend`
- `people-rococo`
- `people-westend`
- Requires `Target Directory` to be `cumulus`

### Bench-overhead

Run benchmarks overhead and commit back results to PR.

Posible combinations based on the `benchmark` dropdown.

- `default`: Runs `benchmark overhead` and commits back to PR the updated `extrinsic_weights.rs` files
- Requires `Runtime` to be one of the following:
- `rococo`
- `westend`
- Requires `Target directory` to be `polkadot`
- `substrate`: Runs `benchmark overhead` and commits back to PR the updated `extrinsic_weights.rs` files
- Requires `Target directory` to be `substrate`
- `cumulus`: Runs `benchmark overhead` and commits back to PR the updated `extrinsic_weights.rs` files
- Requires `Runtime` to be one of the following:
- `asset-hub-rococo`
- `asset-hub-westend`
- Requires `Target directory` to be `cumulus`

## How to modify an action

If you want to modify an action and test it, you can do by simply pushing your changes and then selecting your branch in the `Use worflow from` option.

This will use a file from a specified branch.
2 changes: 1 addition & 1 deletion .github/env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
IMAGE="docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v20240408"
IMAGE="docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v202407161507"
2 changes: 2 additions & 0 deletions .github/review-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ rules:
- ^\.gitlab/.*
- ^\.config/nextest.toml
- ^\.cargo/.*
- ^\.forklift/.*
exclude:
- ^\.gitlab/pipeline/zombienet.*
type: "or"
Expand All @@ -33,6 +34,7 @@ rules:
- ^docker/.*
- ^\.github/.*
- ^\.gitlab/.*
- ^\.forklift/.*
- ^\.config/nextest.toml
- ^\.cargo/.*
minApprovals: 2
Expand Down
10 changes: 6 additions & 4 deletions .github/scripts/check-workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ def check_deps(deps):
if dep_name in all_crates:
links.append((name, dep_name))

if not 'path' in deps[dep]:
broken.append((name, dep_name, "crate must be linked via `path`"))
if name == 'polkadot-sdk':
if not 'path' in deps[dep]:
broken.append((name, dep_name, "crate must use path"))
return
elif not 'workspace' in deps[dep] or not deps[dep]['workspace']:
broken.append((name, dep_name, "crate must use workspace inheritance"))
return

def check_crate(deps):
Expand All @@ -154,8 +158,6 @@ def check_crate(deps):

check_crate(manifest)



links.sort()
broken.sort()

Expand Down
13 changes: 13 additions & 0 deletions .github/scripts/common/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,3 +444,16 @@ get_latest_release_tag() {
latest_release_tag=$(curl -s -H "$TOKEN" $api_base/paritytech/polkadot-sdk/releases/latest | jq -r '.tag_name')
printf $latest_release_tag
}

function get_polkadot_node_version_from_code() {
# list all the files with node version
git grep -e "\(NODE_VERSION[^=]*= \)\".*\"" |
# fetch only the one we need
grep "primitives/src/lib.rs:" |
# Print only the version
awk '{ print $7 }' |
# Remove the quotes
sed 's/"//g' |
# Remove the semicolon
sed 's/;//g'
}
14 changes: 12 additions & 2 deletions .github/scripts/deny-git-deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

root = sys.argv[1] if len(sys.argv) > 1 else os.getcwd()
workspace = Workspace.from_path(root)
errors = []

def check_dep(dep, used_by):
if dep.location != DependencyLocation.GIT:
Expand All @@ -27,14 +28,23 @@ def check_dep(dep, used_by):
if used_by in KNOWN_BAD_GIT_DEPS.get(dep.name, []):
print(f'🤨 Ignoring git dependency {dep.name} in {used_by}')
else:
print(f'🚫 Found git dependency {dep.name} in {used_by}')
sys.exit(1)
errors.append(f'🚫 Found git dependency {dep.name} in {used_by}')

# Check the workspace dependencies that can be inherited:
for dep in workspace.dependencies:
check_dep(dep, "workspace")

if workspace.crates.find_by_name(dep.name):
if dep.location != DependencyLocation.PATH:
errors.append(f'🚫 Workspace must use path to link local dependency {dep.name}')

# And the dependencies of each crate:
for crate in workspace.crates:
for dep in crate.dependencies:
check_dep(dep, crate.name)

if errors:
print('❌ Found errors:')
for error in errors:
print(error)
sys.exit(1)
Loading
Loading