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

Update from master #103

Merged
merged 190 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
ce1c9a4
parachain-system: Do not take `self` for `last_relay_block_number` (#…
bkchr Dec 15, 2023
ddd5434
fix zombienet test (#2719)
pepoviola Dec 15, 2023
ffb2125
[NPoS] Remove better solution threshold for unsigned submissions (#2694)
Ank4n Dec 15, 2023
e5b2ada
`chain-spec-builder`: Improve output path example (#2693)
liamaharon Dec 16, 2023
64d52f2
Publicly expose inaccessible `pallet_uniques` state (#2727)
Szegoo Dec 16, 2023
a250652
Bump async-trait from 0.1.73 to 0.1.74 (#2730)
dependabot[bot] Dec 18, 2023
d941784
Relaxed clippy fixes/nits (#2661)
bkontur Dec 18, 2023
792e374
Bridges subtree update (#2736)
bkontur Dec 18, 2023
ebe2aad
BEEFY: expect_validator_set() small fix (#2737)
serban300 Dec 18, 2023
f93f461
[ci] Fix node-bench-regression-guard job (#2732)
alvicsam Dec 18, 2023
526c81b
subsystem benchmarks: add cpu profiling (#2734)
AndreiEres Dec 19, 2023
657fc2a
Bump dyn-clone from 1.0.13 to 1.0.16 (#2748)
dependabot[bot] Dec 19, 2023
81156d0
Bump actions/setup-node from 4.0.0 to 4.0.1 (#2746)
dependabot[bot] Dec 19, 2023
0b74812
`UnionOf` types for merged `fungible` and `fungibles` implementations…
muharem Dec 19, 2023
166ae5a
[NFTs] Fix consumers issue (#2653)
jsidorenko Dec 19, 2023
2e70dd3
Rococo/Westend Coretime Runtime
joepetrowski Dec 19, 2023
d192401
Ref docs: runtime vs contracts (#2609)
juangirini Dec 19, 2023
7c79741
SDK docs ref cli (#2741)
juangirini Dec 19, 2023
84d6342
pallet-uniques/nfts: Small optimizations (#2754)
bkchr Dec 19, 2023
5ce0451
pallet-asset-conversion: Swap Credit (#1677)
muharem Dec 19, 2023
8efaabd
Add srtool GHA (#2755)
EgorPopelyaev Dec 19, 2023
421af26
Update schnorrkel to 0.11.4 (#2524)
andresilva Dec 19, 2023
c9f9b4b
Fix bridges scripts to test Rococo <> Westend bridge locally (#2752)
svyatonik Dec 20, 2023
d32f66f
Bump chrono from 0.4.27 to 0.4.31 (#2761)
dependabot[bot] Dec 20, 2023
4f832ea
pallet-asset-conversion: Decoupling Native Currency Dependancy (#2031)
muharem Dec 20, 2023
b51904d
use a single source for simple-mermaid dependency (#2760)
andresilva Dec 20, 2023
280aa0b
Add Authorize Upgrade Pattern to Frame System (#2682)
joepetrowski Dec 20, 2023
d68868f
Fix clippy lints behind feature gates and add new CI step all feature…
seadanda Dec 20, 2023
d84e135
Fix Coretime Master (#2765)
joepetrowski Dec 20, 2023
9f5221c
Cleanup bridges tests: with-grandpa-chain case (#2763)
svyatonik Dec 21, 2023
18d53db
Adds Snowbridge to Rococo runtime (#2522)
claravanstaden Dec 21, 2023
69434d9
Coretime Feature branch (relay chain) (#1694)
eskimor Dec 21, 2023
9475973
Cleanup bridges tests: with-parachain case (#2772)
svyatonik Dec 21, 2023
32c047a
Bump AH and BH runtime versions (#2775)
al3mart Dec 21, 2023
8d459d9
Try to set `beacon-spec-mainnet` as default on runtime and not binary…
bkontur Dec 22, 2023
46dd4b8
frame-support: Print key as hex for corrupted state (#2779)
bkchr Dec 22, 2023
96bec7a
pallet-sudo: Accept `Root` origin as valid sudo (#2783)
bkchr Dec 22, 2023
d7ca2cb
Update Safe Call Filters (#2786)
joepetrowski Dec 22, 2023
0686cf1
Bump unsafe-libyaml from 0.2.9 to 0.2.10 (#2776)
dependabot[bot] Dec 22, 2023
b62df69
Final nits for bridge-hub-test-utils (#2788)
svyatonik Dec 22, 2023
0ce506e
incrementing sufficient accounts references with saturating_add for s…
0xMenna01 Dec 22, 2023
4c0e0e0
fix overflow in `balance_to_point` conversion (#2706)
SCJangra Dec 22, 2023
ecbbb5a
Rococo & Westend People Chain (#2281)
joepetrowski Dec 22, 2023
753967a
Coretime: Use `Superuser` for sending the transact calls (#2793)
bkchr Dec 22, 2023
8acd630
Improve `TryDecodeEntireState` output (#2724)
liamaharon Dec 23, 2023
b4c8166
Remove rustdocs allowances (#2797)
juangirini Dec 24, 2023
ac14d36
Update rust docs link in README.md (#2794)
muddlebee Dec 25, 2023
56849c3
Fix typo in comments (#2807)
cuteolaf Dec 26, 2023
7070b65
xcm: Improve debuggability (#2799)
bkchr Dec 26, 2023
dcbc36a
Saner weights + lease calcuation fix. (#2778)
eskimor Dec 27, 2023
5c0b8e0
BEEFY: Support compatibility with Warp Sync - Allow Warp Sync for Val…
serban300 Dec 27, 2023
201ec44
Fix slot_duration divide by zero panic in rococo-parachain runtime (#…
Sophia-Gold Dec 28, 2023
00cb41b
Bump the known_good_semver group with 2 updates (#2810)
dependabot[bot] Dec 28, 2023
a813e4d
Remove unused pallet-contracts-primitives (#2806)
jasl Dec 28, 2023
ae14e6d
Broker pallet: fix interlacing (#2811)
Szegoo Dec 29, 2023
45f4d9a
Development Environment Advice Reference Doc (#2759)
liamaharon Dec 29, 2023
8bf5a1c
PVF: ensure job processes are cleaned up, add tests (#2643)
mrcnski Dec 29, 2023
9a27b53
core-fellowship: allow infinite demotion period (#2828)
andresilva Dec 31, 2023
1dd1a16
Extract PartialComponents into a type alias (#2767)
gilescope Jan 1, 2024
909c1e4
malus: use spawn_blocking (#2804)
ordian Jan 2, 2024
d842966
Implement only sending one notification at a time as per RFC 56 (#2813)
tomaka Jan 2, 2024
cad9479
Finish up polkadot doc (#2798)
juangirini Jan 2, 2024
73942e0
Bump chevdor/srtool-actions from 0.9.1 to 0.9.2 (#2840)
dependabot[bot] Jan 3, 2024
ac7352e
Upgrade @polkadot/api and @polkadot/util package version to latest (#…
svyatonik Jan 3, 2024
88e7b49
Bump the known_good_semver group with 4 updates (#2845)
dependabot[bot] Jan 4, 2024
924089f
Fix vote weights of ranked members in the Society pallet (#2758)
laurogripa Jan 4, 2024
5b9e69d
Remove `dotgraph` feature (#2848)
bkchr Jan 4, 2024
b0a8746
malus: add new variant SupportDisabled (#2835)
ordian Jan 4, 2024
6f9b1f6
Remove kusama and polkadot SP constants from parachains-common (#2666)
seadanda Jan 4, 2024
f82c297
Contracts build risc-v fixtures (#2554)
pgherveou Jan 4, 2024
99290fd
Bump webpki from 0.22.0 to 0.22.4 (#2849)
dependabot[bot] Jan 4, 2024
e07476e
Update missing worker binaries error (#2853)
mrcnski Jan 4, 2024
19de1c9
proposer: return optional block (#2834)
rphmeier Jan 4, 2024
1c95310
`fungible::Unbalanced::decrease_balance`: Handle `precision` properly…
bkchr Jan 5, 2024
cea7024
Fix clippy warnings (#2861)
tdimitrov Jan 5, 2024
930c151
`cumulus-primitives-parachain-inherent`: Split into two crates (#2803)
bkchr Jan 5, 2024
2e4b899
Kitchensink chain: Add BEEFY support (#2856)
serban300 Jan 6, 2024
204fe7f
Bump the known_good_semver group with 4 updates (#2865)
dependabot[bot] Jan 7, 2024
745c02c
pallet-contracts-fixtures: Only build RISCV when the feature is enabl…
bkchr Jan 7, 2024
8232749
Bump proc-macro-crate from 2.0.1 to 3.0.0 (#2876)
dependabot[bot] Jan 8, 2024
a97a6f2
rpc: add `rpc v2 chainSpec` to polkadot (#2859)
niklasad1 Jan 8, 2024
dbff87c
Return latest known relay chain block number in `on_initialize` etc (…
bkchr Jan 8, 2024
5daef5d
Contracts rename riscv-experimental and enable ci tests (#2879)
pgherveou Jan 8, 2024
1914775
Make `simple-mermaid` optional (#2878)
bkchr Jan 8, 2024
4fdab49
Coretime Zombienet test (#2867)
bkchr Jan 8, 2024
a02b534
backport to master: Handling of disabled validators in backing subsys…
ordian Jan 8, 2024
0ff3f4d
dispute-coordinator: disabling in participation (#2637)
ordian Jan 9, 2024
d288c81
pallet-core-fellowship: import an unimported member on approve (#2883)
muharem Jan 9, 2024
06fa111
Contracts: Bump polkavm (#2884)
pgherveou Jan 9, 2024
69e2ae6
[ci] Revert reference to ci image (#2890)
alvicsam Jan 9, 2024
3811629
Snowbridge Rococo deployment updates (#2792)
claravanstaden Jan 9, 2024
14f4900
Bump the known_good_semver group with 1 update (#2881)
dependabot[bot] Jan 9, 2024
9d80735
Bump aquamarine from 0.3.2 to 0.4.0 (#2882)
dependabot[bot] Jan 9, 2024
49cea35
Remove bounds from `PrevalidateAttests` struct definition (#2886)
ggwpez Jan 9, 2024
ce4e549
Bump lycheeverse/lychee-action (#2875)
dependabot[bot] Jan 10, 2024
01ea45c
Fix deps for local docs build for Rust `1.75.0` (#2896)
nuke-web3 Jan 10, 2024
a419532
statement-distribution: validator disabling (#1841)
ordian Jan 10, 2024
d1f678c
Unique Usernames in Identity Pallet (#2651)
joepetrowski Jan 10, 2024
ccd5555
Bump parking_lot from 0.11.2 to 0.12.1 (#2901)
dependabot[bot] Jan 10, 2024
a56ad80
Bump trybuild from 1.0.83 to 1.0.88 (#2902)
dependabot[bot] Jan 10, 2024
af2e30e
Improve storage monitor API (#2899)
nazar-pc Jan 10, 2024
f2a750e
add fallback request for req-response protocols (#2771)
alindima Jan 10, 2024
6a80c10
PVF: Remove artifact persistence across restarts (#2895)
mrcnski Jan 10, 2024
bab0348
Update Snowbridge versions and prep for publishing (#2894)
claravanstaden Jan 10, 2024
c8112e2
frame-support: sp-runtime dependency updated (serde) (#2907)
michalkucharczyk Jan 11, 2024
578960f
Warp sync zombienet tests: add basic BEEFY checks (#2854)
serban300 Jan 11, 2024
f270b08
Move Cors data structure into reachable place (#2898)
nazar-pc Jan 11, 2024
fc749fa
Fix coretime migration (#2905)
antonva Jan 11, 2024
2bdf5dc
[ci] Remove unused jobs (#2502)
alvicsam Jan 11, 2024
c93f5ab
Cumulus test service cleanup (#2887)
skunert Jan 11, 2024
c45732d
Bump Swatinem/rust-cache from 2.7.1 to 2.7.2 (#2909)
dependabot[bot] Jan 11, 2024
c4380d6
Bump indexmap from 1.9.3 to 2.0.0 (#2911)
dependabot[bot] Jan 12, 2024
f7306d3
Add More HRMP Channel Opening Tests (#2915)
joepetrowski Jan 12, 2024
868788a
Kitchensink: Fix pallet_mmr config (#2919)
serban300 Jan 12, 2024
6579d6c
Bump actions/cache from 3.3.2 to 3.3.3 (#2918)
dependabot[bot] Jan 12, 2024
5ed0a75
Run bridges zombienet tests on CI (#2439)
svyatonik Jan 12, 2024
5208bed
Extract warp sync strategy from `ChainSync` (#2467)
dmitry-markin Jan 12, 2024
c421b87
Bump zombienet version `v1.3.91` (#2912)
pepoviola Jan 12, 2024
bd80dcf
Contracts: Translate .wat fixtures to rust (#2654)
pgherveou Jan 12, 2024
38a0ac0
Upgrade aquamarine to v0.5.0, v0.4.0 has yanked (#2921)
jasl Jan 13, 2024
127b9be
wasm-builder: bump toml from 0.8.2 to 0.8.8; replace ansi_term (#2914)
maksimryndin Jan 13, 2024
e879c48
Warp sync zombienet tests: update DB snapshot (#2928)
serban300 Jan 15, 2024
46090ff
Unbalanced and Balanced fungible conformance tests, and fungible fixe…
liamaharon Jan 15, 2024
53bcbb1
archive: Implement archive_unstable_storage (#1846)
lexnv Jan 15, 2024
ac30340
Bump the known_good_semver group with 1 update (#2926)
dependabot[bot] Jan 15, 2024
36a8318
Add missing crates to the workspace (#2932)
ggwpez Jan 15, 2024
f2fbba3
Contracts: stabilize sr25519 (#2920)
pgherveou Jan 15, 2024
0c166ae
Bump lycheeverse/lychee-action (#2900)
dependabot[bot] Jan 15, 2024
1c2db17
Some random fixes (#2936)
bkchr Jan 16, 2024
4c4963a
Bump Swatinem/rust-cache from 2.7.2 to 2.7.3 (#2925)
dependabot[bot] Jan 16, 2024
2cb39f8
XCM WeightTrader: Swap Fee Asset for Native Asset (#1845)
muharem Jan 16, 2024
a42a47f
Bump rococo relay and coretime-rococo to 1.6 (#2913)
seadanda Jan 16, 2024
05cfb02
CI check features (#1708)
AurevoirXavier Jan 16, 2024
82c057e
Bump walkdir from 2.3.3 to 2.4.0 (#2910)
dependabot[bot] Jan 16, 2024
ec7bfae
subsystem-bench: cache misses profiling (#2893)
AndreiEres Jan 16, 2024
8428f67
XCMv4 (#1230)
franciscoaguirre Jan 16, 2024
33d533e
Bump futures-util from 0.3.28 to 0.3.30 (#2952)
dependabot[bot] Jan 17, 2024
c01dbeb
Revert "pallet-core-fellowship: import an unimported member on approv…
joepetrowski Jan 17, 2024
8b28031
Add `Storage` to `PolkadotXcm` for People Chains (#2959)
NachoPal Jan 17, 2024
c1c0e62
contracts: Update to Polkavm 0.5 (#2945)
athei Jan 17, 2024
f80cfc2
[Backport] Version bumps from 1.6.0 release (#2965)
EgorPopelyaev Jan 17, 2024
f574868
Rococo Identity Migration Part 2 + Bug Fix (#2946)
joepetrowski Jan 18, 2024
f895409
Filter votes from disabled validators in `BackedCandidates` in proces…
tdimitrov Jan 18, 2024
d6c0f15
Fix typo in traits.rs (#2971)
smoelius Jan 18, 2024
38205bf
Downgrade logging to `debug` (#2980)
bkchr Jan 18, 2024
1113fce
Bump the known_good_semver group with 1 update (#2953)
dependabot[bot] Jan 18, 2024
9a8ef49
Fix typos (#2983)
cristiantroy Jan 18, 2024
13f2342
Bump prost from 0.11.9 to 0.12.3 (#2976)
dependabot[bot] Jan 18, 2024
dcc7652
Westend/Rococo Asset Hub: pay xcm fees with sufficient assets (#2978)
muharem Jan 18, 2024
0e124a0
pallet-contracts: Fix compilation on latest nightly (#2986)
bkchr Jan 18, 2024
b469960
approval-distribution: downgrade errors to debug (#2989)
sandreim Jan 18, 2024
f9bbe7d
contracts: Update weights (#2969)
Robbepop Jan 18, 2024
b4b523c
Fix contracts compilation with `CARGO_TARGET_DIR` set (#2927)
nazar-pc Jan 18, 2024
87927bb
`GenesisBuilder`: `arbitrary_precision` feature enabled for `serde_js…
michalkucharczyk Jan 18, 2024
9db9211
More tests and checks confirming that `ledger.controller` is always c…
gpestana Jan 18, 2024
697c2c3
Update `translate` to use `defensive!` (#2985)
liamaharon Jan 19, 2024
47a3faa
Pvf thiserror (#2958)
maksimryndin Jan 19, 2024
66b2fa2
Bump libc from 0.2.149 to 0.2.152 (#2994)
dependabot[bot] Jan 19, 2024
50a2e28
Enable cross-chain NFT transfers on asset-hub (#2796)
Szegoo Jan 19, 2024
2e9b440
Contract fixtures tests: fixe nightly version (#3000)
ggwpez Jan 19, 2024
320b528
Update bridges subtree (#2996)
serban300 Jan 19, 2024
e02c520
Update Wasm benchmarks (#2957)
Robbepop Jan 19, 2024
4fb2a55
Make `Slot` and `SlotDuration` transparent (#2999)
nazar-pc Jan 19, 2024
f2336d3
better debugging for accountid32 in debug build (#2990)
pgherveou Jan 19, 2024
84ff0a9
Bump h2 from 0.3.21 to 0.3.24 (#3004)
dependabot[bot] Jan 19, 2024
3b7a8c7
Adding `try_state` hook for Tips pallet (#1871)
Doordashcon Jan 20, 2024
a5370fb
Bump comfy-table from 7.0.1 to 7.1.0 (#2993)
dependabot[bot] Jan 20, 2024
caa987d
Adder Parachain: Accept output file argument to `export-genesis-*` su…
JoshOrndorff Jan 20, 2024
21ef949
Use clone instead of fork on pvf (#2477)
jpserrat Jan 21, 2024
d37a456
Make candidate validation bounded again (#2125)
s0me0ne-unkn0wn Jan 21, 2024
757ae37
Switch All `construct_runtime`s to New Syntax (#2979)
joepetrowski Jan 22, 2024
e2caa81
Review: Remove audit rules (#3010)
bkchr Jan 22, 2024
d53534c
Enable async backing on asset-hub-rococo (#2826)
mrcnski Jan 22, 2024
deb72f4
sc-informant: Respect `--disable-log-color` (#3009)
bkchr Jan 22, 2024
10be8a3
Bump memmap2 from 0.5.10 to 0.9.3 (#3012)
dependabot[bot] Jan 22, 2024
c83ccda
Adds missing feature flags in UI Test update script (#3015)
codekitz Jan 22, 2024
ac7f057
Merge branch 'master' into update-from-master-22-jan
Jan 22, 2024
7f3563d
remove snowbridge in polkadot-sdk
Jan 22, 2024
9ad79b4
fix merge damage
Jan 22, 2024
88ee98f
merge damage
Jan 22, 2024
6391978
merge damage
Jan 22, 2024
3029280
Implement wrapping of EPM types (#1633)
wirednkod Jan 22, 2024
bbfff66
Bump wasm-instrument from 0.3.0 to 0.4.0 (#1294)
dependabot[bot] Jan 22, 2024
37ce47a
Merge branch 'master' into update-from-master-22-jan
Jan 22, 2024
95ff9b2
approval-voting: Move verbose log from debug to tracing (#3019)
alexggh Jan 22, 2024
4c10fd2
Move cryptographic hashing procedures to crypto folder. (#2306)
davxy Jan 22, 2024
5290031
fix imports
Jan 23, 2024
785883f
fix test
Jan 23, 2024
9117a24
Merge branch 'master' into update-from-master-22-jan
Jan 23, 2024
3ad3a9c
update lock file
Jan 23, 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
  •  
  •  
  •  
8 changes: 6 additions & 2 deletions .config/lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ exclude_all_private = true
# Treat these codes as success condition:
accept = [
# Ok
200,
"200",

# Rate limited - GitHub likes to throw this.
429,
"429",
]

exclude_path = ["./target"]
Expand Down Expand Up @@ -47,4 +47,8 @@ exclude = [
"https://w3f.github.io/parachain-implementers-guide/node/index.html",
"https://w3f.github.io/parachain-implementers-guide/protocol-chain-selection.html",
"https://w3f.github.io/parachain-implementers-guide/runtime/session_info.html",

# Behind a captcha (code 403):
"https://iohk.io/en/blog/posts/2023/11/03/partner-chains-are-coming-to-cardano/",
"https://www.reddit.com/r/rust/comments/3spfh1/does_collect_allocate_more_than_once_while/",
]
17 changes: 0 additions & 17 deletions .github/review-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,6 @@ rules:
teams:
- core-devs

- name: Audit rules
type: basic
condition:
include:
- ^polkadot/runtime/common/.*
- ^polkadot/primitives/src\/.+\.rs$
- ^substrate/primitives/.*
- ^substrate/frame/.*
exclude:
- ^substrate\/frame\/.+\.md$
minApprovals: 1
allowedToSkipRule:
teams:
- core-devs
teams:
- srlabs

- name: Core developers
countAuthor: true
condition:
Expand Down
162 changes: 162 additions & 0 deletions .github/scripts/check-workspace.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
#!/usr/bin/env python3

# Ensures that:
# - all crates are added to the root workspace
# - local dependencies are resolved via `path`
#
# It does not check that the local paths resolve to the correct crate. This is already done by cargo.
#
# Must be called with a folder containing a `Cargo.toml` workspace file.

import os
import sys
import toml
import argparse

def parse_args():
parser = argparse.ArgumentParser(description='Check Rust workspace integrity.')

parser.add_argument('workspace_dir', help='The directory to check', metavar='workspace_dir', type=str, nargs=1)
parser.add_argument('--exclude', help='Exclude crate paths from the check', metavar='exclude', type=str, nargs='*', default=[])

args = parser.parse_args()
return (args.workspace_dir[0], args.exclude)

def main(root, exclude):
workspace_crates = get_members(root, exclude)
all_crates = get_crates(root, exclude)
print(f'📦 Found {len(all_crates)} crates in total')

check_missing(workspace_crates, all_crates)
check_links(all_crates)

# Extract all members from a workspace.
# Return: list of all workspace paths
def get_members(workspace_dir, exclude):
print(f'🔎 Indexing workspace {os.path.abspath(workspace_dir)}')

root_manifest_path = os.path.join(workspace_dir, "Cargo.toml")
if not os.path.exists(root_manifest_path):
print(f'❌ No root manifest found at {root_manifest}')
sys.exit(1)

root_manifest = toml.load(root_manifest_path)
if not 'workspace' in root_manifest:
print(f'❌ No workspace found in root {root_manifest_path}')
sys.exit(1)

if not 'members' in root_manifest['workspace']:
return []

members = []
for member in root_manifest['workspace']['members']:
if member in exclude:
print(f'❌ Excluded member should not appear in the workspace {member}')
sys.exit(1)
members.append(member)

return members

# List all members of the workspace.
# Return: Map name -> (path, manifest)
def get_crates(workspace_dir, exclude_crates) -> dict:
crates = {}

for root, dirs, files in os.walk(workspace_dir):
if "target" in root:
continue
for file in files:
if file != "Cargo.toml":
continue

path = os.path.join(root, file)
with open(path, "r") as f:
content = f.read()
manifest = toml.loads(content)

if 'workspace' in manifest:
if root != workspace_dir:
print("⏩ Excluded recursive workspace at %s" % path)
continue

# Cut off the root path and the trailing /Cargo.toml.
path = path[len(workspace_dir)+1:-11]
name = manifest['package']['name']
if path in exclude_crates:
print("⏩ Excluded crate %s at %s" % (name, path))
continue
crates[name] = (path, manifest)

return crates

# Check that all crates are in the workspace.
def check_missing(workspace_crates, all_crates):
print(f'🔎 Checking for missing crates')
if len(workspace_crates) == len(all_crates):
print(f'✅ All {len(all_crates)} crates are in the workspace')
return

missing = []
# Find out which ones are missing.
for name, (path, manifest) in all_crates.items():
if not path in workspace_crates:
missing.append([name, path, manifest])
missing.sort()

for name, path, _manifest in missing:
print("❌ %s in %s" % (name, path))
print(f'😱 {len(all_crates) - len(workspace_crates)} crates are missing from the workspace')
sys.exit(1)

# Check that all local dependencies are good.
def check_links(all_crates):
print(f'🔎 Checking for broken dependency links')
links = []
broken = []

for name, (path, manifest) in all_crates.items():
def check_deps(deps):
for dep in deps:
# Could be renamed:
dep_name = dep
if 'package' in deps[dep]:
dep_name = deps[dep]['package']
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`"))
return

def check_crate(deps):
to_checks = ['dependencies', 'dev-dependencies', 'build-dependencies']

for to_check in to_checks:
if to_check in deps:
check_deps(deps[to_check])

# There could possibly target dependant deps:
if 'target' in manifest:
# Target dependant deps can only have one level of nesting:
for _, target in manifest['target'].items():
check_crate(target)

check_crate(manifest)



links.sort()
broken.sort()

if len(broken) > 0:
for (l, r, reason) in broken:
print(f'❌ {l} -> {r} ({reason})')

print("💥 %d out of %d links are broken" % (len(broken), len(links)))
sys.exit(1)
else:
print("✅ All %d internal dependency links are correct" % len(links))

if __name__ == "__main__":
args = parse_args()
main(args[0], args[1])
2 changes: 1 addition & 1 deletion .github/workflows/build-and-attach-release-runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Build ${{ matrix.runtime.name }} ${{ matrix.build_config.type }}
id: srtool_build
uses: chevdor/srtool-actions@v0.9.1
uses: chevdor/srtool-actions@v0.9.2
env:
BUILD_OPTS: ${{ matrix.build_config.opts }}
with:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/check-features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Features

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
check-features:
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v4
- name: Check
uses: hack-ink/cargo-featalign-action@bea88a864d6ca7d0c53c26f1391ce1d431dc7f34 # v0.1.1
with:
crate: substrate/bin/node/runtime
features: std,runtime-benchmarks,try-runtime
ignore: sc-executor
default-std: true
4 changes: 2 additions & 2 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Restore lychee cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 (7. Sep 2023)
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.2 (7. Sep 2023)
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.0 (22. Sep 2023)

- name: Lychee link checker
uses: lycheeverse/lychee-action@2ac9f030ccdea0033e2510a23a67da2a2da98492 # for v1.8.0 (15. May 2023)
uses: lycheeverse/lychee-action@c3089c702fbb949e3f7a8122be0c33c017904f9b # for v1.9.1 (10. Jan 2024)
with:
args: >-
--config .config/lychee.toml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ jobs:
env:
CONFIG: .github/.markdownlint.yaml
run: |
echo "Checking markdown formatting. More info: docs/contributor/markdown_linting.md"
markdownlint --config "$CONFIG" --ignore target .
2 changes: 1 addition & 1 deletion .github/workflows/check-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Rust Cache
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-on-failure: true

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/check-workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check workspace

on:
pull_request:
paths:
- "*.toml"
merge_group:

jobs:
check-workspace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.0 (22. Sep 2023)

- name: install python deps
run: pip3 install toml

- name: check integrity
run: >
python3 .github/scripts/check-workspace.py .
--exclude
"substrate/frame/contracts/fixtures/build"
"substrate/frame/contracts/fixtures/contracts/common"
2 changes: 1 addition & 1 deletion .github/workflows/claim-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Rust Cache
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-on-failure: true

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-50_publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
fetch_release_artifacts

- name: Cache the artifacts
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
key: artifacts-${{ env.BINARY }}-${{ github.sha }}
path: |
Expand All @@ -121,7 +121,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Get artifacts from cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
key: artifacts-${{ env.BINARY }}-${{ github.sha }}
fail-on-cache-miss: true
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0

- name: Cache Docker layers
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/review-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- review_request_removed
- ready_for_review
pull_request_review:
merge_group:

jobs:
trigger-review-bot:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/srtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.9.1
uses: chevdor/srtool-actions@v0.9.2
with:
chain: ${{ matrix.chain }}
runtime_dir: ${{ matrix.runtime_dir }}
Expand Down
10 changes: 0 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,6 @@ cancel-pipeline-test-linux-stable3:
needs:
- job: "test-linux-stable 3/3"

cancel-pipeline-test-linux-stable-additional-tests:
extends: .cancel-pipeline-template
needs:
- job: "test-linux-stable-additional-tests"

cancel-pipeline-test-linux-stable-slow:
extends: .cancel-pipeline-template
needs:
- job: "test-linux-stable-slow"

cancel-pipeline-cargo-check-benches1:
extends: .cancel-pipeline-template
needs:
Expand Down
18 changes: 18 additions & 0 deletions .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,21 @@ build-subkey-linux:
# after_script: [""]
# tags:
# - osx

# bridges

# we need some non-binary artifacts in our bridges+zombienet image
prepare-bridges-zombienet-artifacts:
stage: build
extends:
- .docker-env
- .common-refs
- .run-immediately
- .collect-artifacts
before_script:
- mkdir -p ./artifacts/bridges-polkadot-sdk/bridges
- mkdir -p ./artifacts/bridges-polkadot-sdk/cumulus/zombienet
script:
- cp -r bridges/zombienet ./artifacts/bridges-polkadot-sdk/bridges/zombienet
- cp -r cumulus/scripts ./artifacts/bridges-polkadot-sdk/cumulus/scripts
- cp -r cumulus/zombienet/bridge-hubs ./artifacts/bridges-polkadot-sdk/cumulus/zombienet/bridge-hubs
Loading
Loading