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 #8

Merged
merged 70 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
de73dd9
rpc server: add rate limiting middleware (#3301)
niklasad1 Feb 17, 2024
8dc910c
Ensure referenda `TracksInfo` is sorted (#3325)
ggwpez Feb 17, 2024
6185b00
Remove unused `im-online` weights (#3373)
s0me0ne-unkn0wn Feb 18, 2024
b179b83
Make `sp-keystore` `no_std`-compatible and fix the `build-runtimes-po…
koute Feb 18, 2024
d7862aa
Fix documentation dead link (#3372)
s0me0ne-unkn0wn Feb 18, 2024
3168ed4
Bump the known_good_semver group with 1 update (#3379)
dependabot[bot] Feb 19, 2024
a5492dc
`im-online` removal cleanup: remove off-chain storage (#2290)
s0me0ne-unkn0wn Feb 19, 2024
2a32b5c
Update coretime-westend bootnodes (#3380)
BulatSaif Feb 19, 2024
b78c72c
[FRAME Core] remove unnecessary overrides while using derive_impl for…
Gilt0 Feb 19, 2024
197c6cf
gossip-support: add unittests for update authorities (#3258)
alexggh Feb 19, 2024
435e339
removed `pallet::getter` from `pallet-sudo` (#3370)
muraca Feb 19, 2024
320863a
Add Coretime to Westend (#3319)
antonva Feb 19, 2024
ca382f3
Contracts: xcm host fn fixes (#3086)
pgherveou Feb 19, 2024
5f8b6f3
implement ConversionToAssetBalance in asset-rate (#2903)
girazoki Feb 20, 2024
ef6ac94
Downgrade log message to `trace` (#3405)
bkchr Feb 20, 2024
e89d0fc
Lift dependencies to the workspace (Part 2/x) (#3366)
ggwpez Feb 20, 2024
d250a6e
Contracts: Stabilize APIs (#3384)
pgherveou Feb 20, 2024
ff40310
Externalize received fees checks from `receive_reserve_asset_deposite…
bkontur Feb 20, 2024
fee810a
rpc server: make possible to disable/enable batch requests (#3364)
niklasad1 Feb 20, 2024
b77b3a2
Nits found during the bumping fellows repo (#3410)
bkontur Feb 20, 2024
d50cf14
Bump the known_good_semver group with 5 updates (#3397)
dependabot[bot] Feb 20, 2024
60563b8
nit: add prdoc for 3370 (#3401)
ggwpez Feb 20, 2024
579ef32
remove bound on accountID in AssetFeeAsExistentialDepositMultiplier (…
girazoki Feb 20, 2024
f3a6b6d
contracts: Fix double charge of gas for host functions (#3361)
athei Feb 21, 2024
cbeccad
sc-consensus-beefy: reduce log levels (#3418)
acatangiu Feb 21, 2024
bf7c49b
Fix failing release notifications GHA (#3416)
EgorPopelyaev Feb 21, 2024
5a06771
Snowbridge - Test pallet order (#3381)
claravanstaden Feb 21, 2024
165d075
benchmarking-cli: add --list-pallets and --all options (#3395)
dastansam Feb 21, 2024
1b624c5
rpc-v2/tx: Remove the broadcast event from `transaction_submitAndWatc…
lexnv Feb 21, 2024
318fed3
ProposerFactory impl Clone (#3389)
tmpolaczyk Feb 21, 2024
cd91c6b
removed `pallet::getter` from example pallets (#3371)
muraca Feb 21, 2024
e76b244
[FRAME] Test for sane genesis default (#3412)
ggwpez Feb 22, 2024
60e537b
Elastic scaling: use an assumed `CoreIndex` in `candidate-backing` (#…
sandreim Feb 22, 2024
61ecef4
Add matrix public channels for release announcements (#3430)
EgorPopelyaev Feb 22, 2024
8220828
Fix `wasm-builder` not exiting if compilation fails (#3439)
koute Feb 22, 2024
31546c8
sc-consensus-beefy: pump gossip engine while waiting for initializati…
acatangiu Feb 22, 2024
9bf1a5e
Check that the validation code matches the parachain code (#3433)
bkchr Feb 22, 2024
e4b6b8c
Add support for BHP local and BHK local (#3443)
serban300 Feb 23, 2024
11b5354
Fix `DepositReserveAsset` fees payment (#3340)
NachoPal Feb 23, 2024
64050cf
prdoc: Print errors on CI (#3459)
skunert Feb 23, 2024
f2645ee
Contracts Add new version for marking new stable API (#3415)
pgherveou Feb 23, 2024
5fc6d67
pallet-membership weights (#3324)
Dinonard Feb 23, 2024
3386377
PoV Reclaim Runtime Side (#3002)
skunert Feb 23, 2024
6fc1d41
Bridge zombienet tests: move all "framework" files under one folder (…
serban300 Feb 23, 2024
2431001
Runtime: allow backing multiple candidates of same parachain on diffe…
sandreim Feb 23, 2024
de6d025
Use generic hash for runtime wasm in resolve_state_version_from_wasm …
tmpolaczyk Feb 24, 2024
ce5de99
Remove redundant parachains assigner pallet. (#3457)
eskimor Feb 26, 2024
b9c792a
Add more debug logs to understand if statement-distribution misbehavi…
alexggh Feb 26, 2024
3d9439f
[pallet-xcm] Adjust benchmarks (teleport_assets/reserve_transfer_asse…
bkontur Feb 26, 2024
49266f1
add Encointer as trusted teleporter for Westend (#3411)
brenzi Feb 26, 2024
0893ca1
frame-support: Improve error reporting when having too many pallets (…
bkchr Feb 26, 2024
6c5a42a
Introduce Notification block pinning limit (#2935)
skunert Feb 26, 2024
d05f8c5
Limit max execution time for `test-linux-stable` CI jobs (#3483)
rcny Feb 26, 2024
4080632
[prdoc] Validate crate names (#3467)
ggwpez Feb 26, 2024
81d447a
Cleanup String::from_utf8 (#3446)
philoniare Feb 26, 2024
f5de090
fix(zombienet): increase timeout in download artifacts (#3376)
pepoviola Feb 27, 2024
94c54d5
Snowbridge benchmark tests fix (#3424)
claravanstaden Feb 27, 2024
2cdda0e
Bridge zombienet tests: Check amount received at destination (#3490)
serban300 Feb 27, 2024
29369a4
Add documentation around FRAME Origin (#3362)
kianenigma Feb 27, 2024
0cc9b90
Add Polkadotters bootnoders per IBP application (#3423)
pmensik Feb 27, 2024
95da658
Introduce storage attr macro `#[disable_try_decode_storage]` and set …
liamaharon Feb 28, 2024
7ec0b87
Collator overseer builder unification (#3335)
maksimryndin Feb 28, 2024
12ce4f7
Runtime Upgrade ref docs and Single Block Migration example pallet (…
liamaharon Feb 28, 2024
f1b2189
rpc-v2/tx/tests: Add transaction broadcast tests and check propagated…
lexnv Feb 28, 2024
f4eedce
[prdoc] Optional SemVer bumps and Docs (#3441)
ggwpez Feb 28, 2024
1453026
Add documentation around FRAME Offchain workers (#3463)
kianenigma Feb 28, 2024
4261366
PVF: re-preparing artifact on failed runtime construction (#3187)
maksimryndin Feb 28, 2024
576681b
Snowbridge - Extract Ethereum Chain ID (#3501)
claravanstaden Feb 28, 2024
eefd5fe
Multi-Block-Migrations, `poll` hook and new System callbacks (#1781)
ggwpez Feb 28, 2024
833bafd
Fixup multi-collator parachain transition to async backing (#3510)
alexggh Feb 28, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .config/taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exclude = [
"polkadot/node/malus/integrationtests/**",
"polkadot/zombienet_tests/**",
"substrate/zombienet/**",
"target/**",
]

# global rules
Expand Down
71 changes: 71 additions & 0 deletions .github/scripts/check-prdoc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/usr/bin/env python3

'''
Ensure that the prdoc files are valid.

# Example

```sh
python3 -m pip install cargo-workspace
python3 .github/scripts/check-prdoc.py Cargo.toml prdoc/*.prdoc
```

Produces example output:
```pre
🔎 Reading workspace polkadot-sdk/Cargo.toml
📦 Checking 32 prdocs against 493 crates.
✅ All prdocs are valid
```
'''

import os
import yaml
import argparse
import cargo_workspace

def check_prdoc_crate_names(root, paths):
'''
Check that all crates of the `crates` section of each prdoc is present in the workspace.
'''

print(f'🔎 Reading workspace {root}.')
workspace = cargo_workspace.Workspace.from_path(root)
crate_names = [crate.name for crate in workspace.crates]

print(f'📦 Checking {len(paths)} prdocs against {len(crate_names)} crates.')
faulty = {}

for path in paths:
with open(path, 'r') as f:
prdoc = yaml.safe_load(f)

for crate in prdoc.get('crates', []):
crate = crate['name']
if crate in crate_names:
continue

faulty.setdefault(path, []).append(crate)

if len(faulty) == 0:
print('✅ All prdocs are valid.')
else:
print('❌ Some prdocs are invalid.')
for path, crates in faulty.items():
print(f'💥 {path} lists invalid crate: {", ".join(crates)}')
exit(1)

def parse_args():
parser = argparse.ArgumentParser(description='Check prdoc files')
parser.add_argument('root', help='The cargo workspace manifest', metavar='root', type=str, nargs=1)
parser.add_argument('prdoc', help='The prdoc files', metavar='prdoc', type=str, nargs='*')
args = parser.parse_args()

if len(args.prdoc) == 0:
print('❌ Need at least one prdoc file as argument.')
exit(1)

return { 'root': os.path.abspath(args.root[0]), 'prdocs': args.prdoc }

if __name__ == '__main__':
args = parse_args()
check_prdoc_crate_names(args['root'], args['prdocs'])
10 changes: 9 additions & 1 deletion .github/workflows/check-prdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,12 @@ jobs:
run: |
echo "Checking for PR#${GITHUB_PR}"
echo "You can find more information about PRDoc at $PRDOC_DOC"
$ENGINE run --rm -v $PWD:/repo $IMAGE check -n ${GITHUB_PR}
$ENGINE run --rm -v $PWD:/repo -e RUST_LOG=info $IMAGE check -n ${GITHUB_PR}

- name: Validate prdoc for PR#${{ github.event.pull_request.number }}
if: ${{ !contains(steps.get-labels.outputs.labels, 'R0') }}
run: |
echo "Validating PR#${GITHUB_PR}"
python3 --version
python3 -m pip install cargo-workspace==1.2.1
python3 .github/scripts/check-prdoc.py Cargo.toml prdoc/pr_${GITHUB_PR}.prdoc
25 changes: 10 additions & 15 deletions .github/workflows/release-99_notif-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ on:
jobs:
ping_matrix:
runs-on: ubuntu-latest
environment: release
strategy:
matrix:
channel:
# Internal
- name: 'RelEng: Cumulus Release Coordination'
room: '!NAEMyPAHWOiOQHsvus:parity.io'
pre-releases: true
- name: "RelEng: Polkadot Release Coordination"
room: '!cqAmzdIcbOFwrdrubV:parity.io'
pre-release: true
Expand All @@ -31,18 +29,15 @@ jobs:
pre-release: true

# Public
# - name: '#KusamaValidatorLounge:polkadot.builders'
# room: '!LhjZccBOqFNYKLdmbb:polkadot.builders'
# pre-releases: false
# - name: '#kusama-announcements:matrix.parity.io'
# room: '!FMwxpQnYhRCNDRsYGI:matrix.parity.io'
# pre-release: false
# - name: '#polkadotvalidatorlounge:web3.foundation'
# room: '!NZrbtteFeqYKCUGQtr:matrix.parity.io'
# pre-release: false
# - name: '#polkadot-announcements:matrix.parity.io'
# room: '!UqHPWiCBGZWxrmYBkF:matrix.parity.io'
# pre-release: false
- name: '#polkadotvalidatorlounge:web3.foundation'
room: '!NZrbtteFeqYKCUGQtr:matrix.parity.io'
pre-releases: false
- name: '#polkadot-announcements:parity.io'
room: '!UqHPWiCBGZWxrmYBkF:matrix.parity.io'
pre-releases: false
- name: '#kusama-announce:parity.io'
room: '!FMwxpQnYhRCNDRsYGI:matrix.parity.io'
pre-releases: false

steps:
- name: Matrix notification to ${{ matrix.channel.name }}
Expand Down
3 changes: 1 addition & 2 deletions .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ build-rustdoc:
- .run-immediately
variables:
SKIP_WASM_BUILD: 1
RUSTDOCFLAGS: ""
RUSTDOCFLAGS: "--default-theme=ayu --html-in-header ./docs/sdk/headers/header.html --extend-css ./docs/sdk/headers/theme.css"
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
when: on_success
Expand Down Expand Up @@ -341,7 +341,6 @@ build-runtimes-polkavm:
- SUBSTRATE_RUNTIME_TARGET=riscv cargo check -p westend-runtime
- SUBSTRATE_RUNTIME_TARGET=riscv cargo check -p rococo-runtime
- SUBSTRATE_RUNTIME_TARGET=riscv cargo check -p polkadot-test-runtime
allow_failure: true

.build-subkey:
stage: build
Expand Down
5 changes: 4 additions & 1 deletion .gitlab/pipeline/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ check-toml-format:
export RUST_LOG=remote-ext=debug,runtime=debug

echo "---------- Downloading try-runtime CLI ----------"
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.5.0/try-runtime-x86_64-unknown-linux-musl -o try-runtime
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.5.4/try-runtime-x86_64-unknown-linux-musl -o try-runtime
chmod +x ./try-runtime
echo "Using try-runtime-cli version:"
./try-runtime --version

echo "---------- Building ${PACKAGE} runtime ----------"
time cargo build --release --locked -p "$PACKAGE" --features try-runtime
Expand All @@ -133,6 +135,7 @@ check-runtime-migration-westend:
WASM: "westend_runtime.compact.compressed.wasm"
URI: "wss://westend-try-runtime-node.parity-chains.parity.io:443"
SUBCOMMAND_EXTRA_ARGS: "--no-weight-warnings"
allow_failure: true

check-runtime-migration-rococo:
stage: check
Expand Down
1 change: 1 addition & 0 deletions .gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test-linux-stable:
- target/nextest/default/junit.xml
reports:
junit: target/nextest/default/junit.xml
timeout: 90m

test-linux-oldkernel-stable:
extends: test-linux-stable
Expand Down
8 changes: 8 additions & 0 deletions .gitlab/pipeline/zombienet/polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ zombienet-polkadot-functional-0011-async-backing-6-seconds-rate:
--local-dir="${LOCAL_DIR}/functional"
--test="0011-async-backing-6-seconds-rate.zndsl"

zombienet-polkadot-functional-0012-elastic-scaling-mvp:
extends:
- .zombienet-polkadot-common
script:
- /home/nonroot/zombie-net/scripts/ci/run-test-local-env-manager.sh
--local-dir="${LOCAL_DIR}/functional"
--test="0012-elastic-scaling-mvp.zndsl"

zombienet-polkadot-smoke-0001-parachains-smoke-test:
extends:
- .zombienet-polkadot-common
Expand Down
Loading
Loading