Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Pull in latest Reserve Transfer code #14

Merged
merged 185 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
43ef694
asset-hubs runtimes: add xcm reserve transfer tests
acatangiu Sep 5, 2023
945b34c
pallet-xcm: filter assets teleports based on XcmExecutor configuration
acatangiu Sep 21, 2023
ce215a1
xcm: MultiLocation: add .chain_location() helper function
acatangiu Sep 20, 2023
a5fd746
pallet-xcm: enchance reserve_transfer_assets() to support various res…
acatangiu Sep 25, 2023
c581d76
use correct fees beneficiary on assets reserve chain
acatangiu Sep 25, 2023
fe52d48
build dest-reserve and remote-reserve XCM programs
acatangiu Sep 26, 2023
5d847e3
deduplicate teleport and reserve transfer tests
acatangiu Sep 26, 2023
026a779
add test cases plan
acatangiu Sep 26, 2023
4465c65
add pallet-assets to mock test runtime
acatangiu Sep 26, 2023
2392dd9
fix add assets to mock pallet-xcm runtime
acatangiu Sep 26, 2023
67daafe
add test for asset-reserve and fee-reserve both at destination
acatangiu Sep 27, 2023
88b3024
add test for asset-reserve and fee-reserve both at remote chain
acatangiu Sep 27, 2023
513e15a
add test for asset-reserve at destination while fee-reserve is local
acatangiu Sep 27, 2023
19eec17
add test for asset local-reserve while fee-reserve is destination
acatangiu Sep 27, 2023
1687c53
add test for asset local-reserve while fee-reserve is remote chain
acatangiu Sep 27, 2023
abf029d
refactor tests using better naming and conceptual examples
acatangiu Sep 27, 2023
576c770
add test for asset destination-reserve while fee-reserve is remote chain
acatangiu Sep 28, 2023
280c4b1
fix some typos
acatangiu Sep 28, 2023
bab8fc2
deduplicate code for do_teleport_assets()
acatangiu Sep 28, 2023
f7a4a2e
add test for asset local-reserve while teleporting fees
acatangiu Sep 28, 2023
f88de5e
add test for asset destination-reserve while teleporting fees
acatangiu Sep 28, 2023
f7abb0a
fix cases when asset reserve is remote, add test remote-asset and tel…
acatangiu Sep 28, 2023
7b920ec
add test for transfer asset remote reserve and fee local reserve
acatangiu Sep 28, 2023
3130566
add test for transfer asset remote reserve and fee destination reserve
acatangiu Sep 28, 2023
1b17e84
disallow teleportable assets in reserve-transfer, add regression test
acatangiu Sep 29, 2023
84e213a
asset-hubs: fix emulated tests and deduplicate code
acatangiu Sep 29, 2023
ce00c28
asset-hubs: use non-system para IDs in tests where non-system paras a…
acatangiu Sep 29, 2023
1dfcd01
pallet-xcm: refactor newly added tests
acatangiu Sep 29, 2023
24f9b72
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 10, 2023
022ef71
pallet-xcm: fix benchmarks
acatangiu Oct 10, 2023
9827c3b
fix pallet-xcm benchmarks for all runtimes
acatangiu Oct 10, 2023
23588a8
address review comments
acatangiu Oct 11, 2023
931e093
expose TransferType through XcmExecutor::traits::AssetTransferSupport…
acatangiu Oct 11, 2023
bf39726
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 11, 2023
8ac30aa
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 13, 2023
09badd6
allow transfer for non-fungible assets too
acatangiu Oct 13, 2023
648ba8a
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 19, 2023
f8e8b4a
fix merge damage
acatangiu Oct 20, 2023
71bd4b3
fmt
acatangiu Oct 23, 2023
4ab90f7
pallet-xcm: split asset transfer tests to own file
acatangiu Oct 23, 2023
3070994
address review comments
acatangiu Oct 23, 2023
f045c73
pallet-xcm: disallow combining remote reserves with other xfer types
acatangiu Oct 23, 2023
fe93ef4
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 23, 2023
d1a9709
xcm-barriers: allow SetFeesMode in BuyExecution barrier and fix tests
acatangiu Oct 23, 2023
955fe40
adds message queue pallet
Oct 19, 2023
00d2756
adds outbound queue
Oct 19, 2023
e39beb1
fix compiler errors
Oct 19, 2023
3c16e0f
adds snowbridge to rococo bridgehub
Oct 19, 2023
a315789
asset hub rococo
Oct 20, 2023
4d012bf
asset hub rococo
Oct 20, 2023
2aec192
finishing up applying changes
Oct 20, 2023
546274a
fix incorrect pallet-xcm imports
Oct 20, 2023
a5a2432
`CheckWeight`: Add more logging (#1996)
bkchr Oct 24, 2023
35eb133
Ensure correct variant count in `Runtime[Hold/Freeze]Reason` (#1900)
kianenigma Oct 24, 2023
9185195
Make `IdentityInfo` generic in `pallet-identity` (#1661)
georgepisaltu Oct 24, 2023
017f8d8
polkadot: enable tikv-jemallocator/unprefixed_malloc_on_supported_pla…
andresilva Oct 24, 2023
50d844f
verify assets and beneficiary in over-bridge test
acatangiu Oct 24, 2023
8cba5b9
Bump actions/setup-node from 3.8.1 to 4.0.0 (#1997)
dependabot[bot] Oct 24, 2023
0bf64e6
fix AHs tests
acatangiu Oct 24, 2023
c711961
AHs: fix emulated tests
acatangiu Oct 24, 2023
e39253c
PVF: Add worker check during tests and benches (#1771)
mrcnski Oct 24, 2023
0284e21
Refactor candidates test in paras_inherent (#2004)
tdimitrov Oct 24, 2023
67929a5
AHs: include delivery-fee checking in tests
acatangiu Oct 24, 2023
dd46f23
fix runtime-benchmarks for AHRococo
acatangiu Oct 24, 2023
12130a7
Remove obsolete comment. (#2008)
eskimor Oct 24, 2023
e8cbcb9
fix clippy
acatangiu Oct 24, 2023
4a44356
Improve features dev-ex (#1831)
ggwpez Oct 24, 2023
8a79fb2
[ci] Run check-rust-feature-propagation in pr and master (#2012)
alvicsam Oct 24, 2023
fbd5777
Application Crypto and BEEFY Support for paired (ECDSA,BLS) crypto (#…
drskalman Oct 24, 2023
ea3aaad
fixing tests
Oct 24, 2023
2e11ae8
basic-authorship: Improve time recording and logging (#2010)
bkchr Oct 24, 2023
ff3a3bc
Small optimisation to `--profile dev` wasm builds (#1851)
liamaharon Oct 25, 2023
22cc658
adds upstream changes
Oct 25, 2023
3148063
Contracts: Add benchmarks to include files (#2022)
pgherveou Oct 25, 2023
9e941d3
cleanup comments, fix upgrade gateway test
Oct 25, 2023
b7a8532
publish pallet-root-testing (#2017)
xlc Oct 25, 2023
d725103
withdraw fees before buyexecution - still broken because of executor …
acatangiu Oct 25, 2023
3d97f19
pallet-xcm: uses single custom XCM to send both fees and assets
acatangiu Oct 25, 2023
ac3773e
pallet-xcm: handle teleport checking account when custom burn+teleport
acatangiu Oct 25, 2023
c86b633
Sort the benchmarks before listing them (#2026)
ggwpez Oct 25, 2023
cb6f53a
fixes plus tests
acatangiu Oct 25, 2023
560d788
fix pallet-xcm tests
acatangiu Oct 25, 2023
3bc2d73
fix AHs tests
acatangiu Oct 25, 2023
f6560c2
[testnet] Align testnet system parachain runtimes using `RelayTreasur…
bkontur Oct 25, 2023
bdf1868
`polkadot-parachain-primitives` should not depend on `frame-support`.…
JoshOrndorff Oct 25, 2023
1217723
attempts to fix xcm config
Oct 26, 2023
f838cd5
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 26, 2023
0bcebac
Expose collection attributes from `Inspect` trait (#1914)
dastansam Oct 26, 2023
21d36b7
Removed TODO from test-case for hard-coded delivery fee estimation (#…
bkontur Oct 26, 2023
5e480dd
fixes send token
Oct 26, 2023
bd60203
remove unused SetFeesMode instruction
acatangiu Oct 26, 2023
1b08bdd
cumulus: fix test runtimes panic (#2039)
alindima Oct 26, 2023
42707bc
sp-version: Improve the docs (#2027)
bkchr Oct 26, 2023
86228fa
add `authorities_len` for aura (#2040)
yjhmelody Oct 26, 2023
533538f
Merge branch 'pallet-xcm-fully-support-reserve-transfers' into polkad…
Oct 27, 2023
7b658d6
add missing import
Oct 27, 2023
bae3b62
allows all networks
Oct 27, 2023
6ca5789
upgrade docify to 0.2.5 (#2052)
sam0x17 Oct 27, 2023
4f5d693
fmt
Oct 27, 2023
43415ef
feat: FRAME umbrella crate. (#1337)
juangirini Oct 27, 2023
3069b0a
make polkadot die graciously (#2056)
alexggh Oct 27, 2023
2e71447
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 27, 2023
371ac2d
pallet-xcm: fix broken reserve_transfer_assets benchmark
acatangiu Oct 26, 2023
9b58ff0
try add pallet-assets for benchmarking to rococo
acatangiu Oct 27, 2023
942977e
Revert "try add pallet-assets for benchmarking to rococo"
acatangiu Oct 27, 2023
3b9965b
pallet-xcm benchmarking: most chains do not have pallet-assets, use p…
acatangiu Oct 27, 2023
adcd688
pallet-xcm: fix teleport_assets benchmark
acatangiu Oct 27, 2023
eca0c3e
fix runtimes benchmarks for pallet-xcm
acatangiu Oct 27, 2023
b648df2
AHs simplify test_cases_over_bridge
acatangiu Oct 27, 2023
9643a3a
Enable "cargo run --bin substrate-node" (#1927)
pgherveou Oct 27, 2023
da7d8ff
runtimes: add dedicated benchmarking config for pallet-xcm
acatangiu Oct 27, 2023
bea8bae
level-monitor: Fix issue with warp syncing (#2053)
bkchr Oct 27, 2023
f46f5a9
upgrade to docify 0.2.6 (#2069)
sam0x17 Oct 27, 2023
a706171
Automatically build and attach production and dev runtimes to GH rele…
liamaharon Oct 27, 2023
8d85faa
AHs benchmarks: fix transfer to sibling parachain
acatangiu Oct 28, 2023
8ce16ee
fix(frame-benchmarking-cli): Pass heap_pages param to WasmExecutor (#…
ukint-vs Oct 29, 2023
7035034
Improve Client CLI help readability (#2073)
davxy Oct 29, 2023
fd8f5f3
fixed token transfer test
Oct 29, 2023
506b6b1
fixes after rebase
Oct 29, 2023
ea063f7
fixes after rebase
Oct 30, 2023
404fbd8
Merge branch 'polkadot-sdk-update-v2' into polkadot-sdk-update-v2-res…
Oct 30, 2023
0356361
fixes after rebase
Oct 30, 2023
d715caa
Improve `try-state` developer experience & fix bug (#2019)
liamaharon Oct 30, 2023
0aeab38
Stop `Balances` pallet erroneously double incrementing and decrementi…
liamaharon Oct 30, 2023
ad5163b
contracts migration: remove unnecessary panics (#2079)
liamaharon Oct 30, 2023
37552fd
Update polkadot/xcm/xcm-executor/src/traits/asset_transfer.rs
acatangiu Oct 30, 2023
6714d39
Update polkadot/xcm/pallet-xcm/src/lib.rs
acatangiu Oct 30, 2023
a79ed78
Merge branch 'master' into pallet-xcm-fully-support-reserve-transfers
acatangiu Oct 30, 2023
7a61129
fmt
acatangiu Oct 30, 2023
30f3ad2
Refactor transaction storage pallet to use fungible traits (#1800)
acatangiu Oct 30, 2023
a69da4a
Switch from `tiny-bip39` to `bip39` crate (#2084)
michalkucharczyk Oct 30, 2023
40ff09b
pub `keystore_accounts/accounts_from_keys` for offchain Signer (#2051)
yjhmelody Oct 30, 2023
2d9426f
parachain-system: Send same event & digest as a standalone chain (#2064)
bkchr Oct 30, 2023
c90619c
updates relay
Oct 30, 2023
9faea38
PVF worker: Add seccomp restrictions (restrict networking) (#2009)
mrcnski Oct 31, 2023
18ad449
Contracts migration update (#2091)
pgherveou Oct 31, 2023
d85c1d9
Add test to demonstrate the failure scenario (#1999)
rahulksnv Oct 31, 2023
3ae86ae
check-each-crate: Do not reference crate to check by name (#2098)
bkchr Oct 31, 2023
c38aae6
Elliptic curves utilities refactory (#2068)
davxy Oct 31, 2023
f1bfc08
xcmp-queue: remove outdated bridging comment (#2095)
acatangiu Oct 31, 2023
0f76530
Update polkadot/xcm/xcm-builder/src/barriers.rs
acatangiu Oct 31, 2023
9d3f2dd
Update polkadot/xcm/pallet-xcm/src/lib.rs
acatangiu Oct 31, 2023
9feb4b0
Update polkadot/xcm/pallet-xcm/src/lib.rs
acatangiu Oct 31, 2023
0a38b70
Update polkadot/xcm/pallet-xcm/src/lib.rs
acatangiu Oct 31, 2023
02447d0
fmt
acatangiu Oct 31, 2023
84e3e29
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Oct 31, 2023
ada1ac3
[DNM] bump zombienet version (#2083)
pepoviola Oct 31, 2023
64f4b15
polkadot: parachains: Fix v9 host configuration migration (#2103)
alexggh Oct 31, 2023
6e2f94f
1953 defensive testing extrinsic (#1998)
adelarja Oct 31, 2023
495d24d
Add ci check for parity-publish and fix current check issues (#1887)
Morganamilo Oct 31, 2023
6c3462b
Merge branch 'snowbridge' into alistair/merge-from-snowbridge
alistair-singh Nov 1, 2023
0652d74
remove comments
alistair-singh Nov 1, 2023
2f7d49e
Add back treasury account
alistair-singh Nov 1, 2023
f2d8350
fix warnings
alistair-singh Nov 1, 2023
b53a93a
Bump ec-utils version (#2104)
davxy Nov 1, 2023
5ddb798
Merge pull request #6 from Snowfork/alistair/merge-from-snowbridge
alistair-singh Nov 1, 2023
546d452
Merge remote-tracking branch 'adrian/pallet-xcm-fully-support-reserve…
alistair-singh Nov 1, 2023
37f3269
Bump chevdor/srtool-actions from 0.8.0 to 0.9.0 (#2089)
dependabot[bot] Nov 1, 2023
9ca2673
upgraded review-bot to 2.2.0 (#2097)
Bullrich Nov 1, 2023
b67cb0f
xcm-emulator: configure penpal for asset transfers and enhance existi…
acatangiu Nov 1, 2023
ec87ce6
xcm-emulator: add relay to penpal native transfer test
acatangiu Nov 1, 2023
da3c12e
xcm-emulator: add ah to penpal native asset transfer test
acatangiu Nov 1, 2023
1cd6acd
Move syncing code from `sc-network-common` to `sc-network-sync` (#1912)
dmitry-markin Nov 1, 2023
f50054c
[ci] Update rust nightly in ci image (#2115)
alvicsam Nov 1, 2023
00b85c5
[NPoS] Paging reward payouts in order to scale rewardable nominators…
Ank4n Nov 1, 2023
2726d5a
remove gum dependency on jaeger (#2106)
jpserrat Nov 1, 2023
8507f45
[ci] Revert CI_IMAGE variable (#2120)
alvicsam Nov 1, 2023
dce5a8d
Direct XCM `ExportMessage` fees for different bridges to different re…
serban300 Nov 1, 2023
b2bb8cb
review-bot: prevent request review of core-devs (#2121)
Bullrich Nov 1, 2023
b6965af
Improve FRAME storage docs (#1714)
wentelteefje Nov 1, 2023
ac9bf49
xcm: MultiLocation::chain_location() takes nonmut reference
acatangiu Nov 1, 2023
e85e339
pallet-xcm: benchmarks: enforce single asset transfer at the api level
acatangiu Nov 1, 2023
9987bbb
Remove transitional code wrt executor parameters (#2112)
jpserrat Nov 1, 2023
9f7538d
xcm-executor: rename AssetTransferSupport to XcmAssetTransfer
acatangiu Nov 1, 2023
45279cc
clippy
acatangiu Nov 1, 2023
59cf104
Merge branch 'master' of github.com:paritytech/polkadot-sdk into pall…
acatangiu Nov 1, 2023
d68524b
Merge remote-tracking branch 'adrian/pallet-xcm-fully-support-reserve…
alistair-singh Nov 1, 2023
ebe8baf
fixes
alistair-singh Nov 1, 2023
2dd39ad
remove duplicated trait
alistair-singh Nov 1, 2023
f101028
Merge pull request #9 from Snowfork/alistair/merge-from-adrian
alistair-singh Nov 2, 2023
4f3bf79
remove feature
alistair-singh Nov 2, 2023
528f646
unknown import
alistair-singh Nov 2, 2023
8c9dc76
move AllowSiblingsOnly to core
alistair-singh Nov 2, 2023
55305d2
Adds transfer token user fee (#7)
claravanstaden Nov 2, 2023
7e49752
Merge branch 'snowbridge' into reserve-asset-transfer
alistair-singh Nov 3, 2023
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
  •  
  •  
  •  
45 changes: 45 additions & 0 deletions .config/zepter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version:
format: 1
# Minimum version of the binary that is expected to work. This is just for printing a nice error
# message when someone tries to use an older version.
binary: 0.13.2

# The examples in this file assume crate `A` to have a dependency on crate `B`.
workflows:
check:
- [
'lint',
# Check that `A` activates the features of `B`.
'propagate-feature',
# These are the features to check:
'--features=try-runtime,runtime-benchmarks,std',
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually.
'--left-side-feature-missing=ignore',
# Enabling this feature somehow pulls in two versions of `sp-runtime-interface` and makes it impossible to build that crate with `cargo b -p sp-runtime-interface`. We therefore disable it for now.
'--ignore-missing-propagate=sp-core/std:bandersnatch_vrfs/std',
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.
'--left-side-outside-workspace=ignore',
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used.
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking',
# Actually modify the files and not just report the issues:
'--offline',
'--locked',
'--show-path',
'--quiet',
]
# Format the features into canonical format:
- ['format', 'features', '--offline', '--locked', '--quiet']
# Same as `check`, but with the `--fix` flag.
default:
- [ $check.0, '--fix' ]
- [ $check.1, '--fix' ]

# Will be displayed when any workflow fails:
help:
text: |
Polkadot-SDK uses the Zepter CLI to detect abnormalities in the feature configuration.
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`.
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you.
links:
- "https://github.com/paritytech/polkadot-sdk/issues/1831"
- "https://github.com/ggwpez/zepter"
4 changes: 4 additions & 0 deletions .github/review-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,7 @@ rules:
- minApprovals: 1
teams:
- ci

preventReviewRequests:
teams:
- core-devs
69 changes: 69 additions & 0 deletions .github/workflows/build-and-attach-release-runtimes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build and Attach Runtimes to Releases/RC

on:
release:
types:
- created

env:
PROFILE: production

jobs:
build_and_upload:
strategy:
matrix:
runtime:
- { name: westend, package: westend-runtime, path: polkadot/runtime/westend }
- { name: rococo, package: rococo-runtime, path: polkadot/runtime/rococo }
- { name: asset-hub-rococo, package: asset-hub-rococo-runtime, path: cumulus/parachains/runtimes/assets/asset-hub-rococo }
- { name: asset-hub-westend, package: asset-hub-westend-runtime, path: cumulus/parachains/runtimes/assets/asset-hub-westend }
- { name: bridge-hub-rococo, package: bridge-hub-rococo-runtime, path: cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo }
- { name: contracts-rococo, package: contracts-rococo-runtime, path: cumulus/parachains/runtimes/contracts/contracts-rococo }
build_config:
# Release build has logging disabled and no dev features
- { type: on-chain-release, opts: --features on-chain-release-build }
# Debug build has logging enabled and developer features
- { type: dev-debug-build, opts: --features try-runtime }

runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build ${{ matrix.runtime.name }} ${{ matrix.build_config.type }}
id: srtool_build
uses: chevdor/[email protected]
env:
BUILD_OPTS: ${{ matrix.build_config.opts }}
with:
chain: ${{ matrix.runtime.name }}
package: ${{ matrix.runtime.package }}
runtime_dir: ${{ matrix.runtime.path }}
profile: ${{ env.PROFILE }}

- name: Build Summary
run: |
echo "${{ steps.srtool_build.outputs.json }}" | jq . > ${{ matrix.runtime.name }}-srtool-digest.json
cat ${{ matrix.runtime.name }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"

- name: Set up paths and runtime names
id: setup
run: |
RUNTIME_BLOB_NAME=$(echo ${{ matrix.runtime.package }} | sed 's/-/_/g').compact.compressed.wasm
PREFIX=${{ matrix.build_config.type == 'dev-debug-build' && 'DEV_DEBUG_BUILD__' || '' }}

echo "RUNTIME_BLOB_NAME=$RUNTIME_BLOB_NAME" >> $GITHUB_ENV
echo "ASSET_PATH=./${{ matrix.runtime.path }}/target/srtool/${{ env.PROFILE }}/wbuild/${{ matrix.runtime.package }}/$RUNTIME_BLOB_NAME" >> $GITHUB_ENV
echo "ASSET_NAME=$PREFIX$RUNTIME_BLOB_NAME" >> $GITHUB_ENV

- name: Upload Runtime to Release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.ASSET_PATH }}
asset_name: ${{ env.ASSET_NAME }}
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/check-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@v3.8.1
- uses: actions/setup-node@v4.0.0
with:
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-node@v3.8.1
- uses: actions/setup-node@v4.0.0
with:
node-version: "18.x"
registry-url: "https://npm.pkg.github.com"
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/check-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check publish

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
check-publish:
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

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

- name: install parity-publish
run: cargo install parity-publish --profile dev

- name: parity-publish check
run: parity-publish check --allow-unpublished
2 changes: 1 addition & 1 deletion .github/workflows/fmt-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
container:
image: paritytech/ci-unified:bullseye-1.70.0-2023-05-23-v20230706
image: paritytech/ci-unified:bullseye-1.73.0-2023-11-01-v20231025
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/review-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,27 @@ on:
types:
- completed

permissions:
contents: read

jobs:
review-approvals:
runs-on: ubuntu-latest
environment: master
steps:
- name: Extract content of artifact
id: number
uses: Bullrich/[email protected]
with:
artifact-name: pr_number
- name: Generate token
id: team_token
id: app_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.REVIEW_APP_ID }}
private_key: ${{ secrets.REVIEW_APP_KEY }}
- name: "Evaluates PR reviews and assigns reviewers"
uses: paritytech/review-bot@v2.1.0
uses: paritytech/review-bot@v2.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
team-token: ${{ steps.team_token.outputs.token }}
checks-token: ${{ steps.team_token.outputs.token }}
repo-token: ${{ steps.app_token.outputs.token }}
team-token: ${{ steps.app_token.outputs.token }}
checks-token: ${{ steps.app_token.outputs.token }}
pr-number: ${{ steps.number.outputs.content }}
request-reviewers: true
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ variables:
RUSTY_CACHIER_COMPRESSION_METHOD: zstd
NEXTEST_FAILURE_OUTPUT: immediate-final
NEXTEST_SUCCESS_OUTPUT: final
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.71"
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.75"
DOCKER_IMAGES_VERSION: "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"

default:
Expand Down
10 changes: 7 additions & 3 deletions .gitlab/check-each-crate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
crates = []
for line in output.splitlines():
if line != b"":
crates.append(line.decode('utf8').split(" ")[0])
line = line.decode('utf8').split(" ")
crate_name = line[0]
# The crate path is always the last element in the line.
crate_path = line[len(line) - 1].replace("(", "").replace(")", "")
crates.append((crate_name, crate_path))

# Make the list unique and sorted
crates = list(set(crates))
Expand Down Expand Up @@ -49,9 +53,9 @@
for i in range(0, crates_per_group + overflow_crates):
crate = crates_per_group * target_group + i

print(f"Checking {crates[crate]}", file=sys.stderr)
print(f"Checking {crates[crate][0]}", file=sys.stderr)

res = subprocess.run(["cargo", "check", "--locked", "-p", crates[crate]])
res = subprocess.run(["cargo", "check", "--locked"], cwd = crates[crate][1])

if res.returncode != 0:
sys.exit(1)
2 changes: 1 addition & 1 deletion .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ build-linux-substrate:
# see https://github.com/paritytech/ci_cd/issues/682#issuecomment-1340953589
- git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
script:
- WASM_BUILD_NO_COLOR=1 time cargo build --locked --release -p node-cli
- WASM_BUILD_NO_COLOR=1 time cargo build --locked --release -p staging-node-cli
- mv $CARGO_TARGET_DIR/release/substrate-node ./artifacts/substrate/substrate
- echo -n "Substrate version = "
- if [ "${CI_COMMIT_TAG}" ]; then
Expand Down
23 changes: 5 additions & 18 deletions .gitlab/pipeline/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ check-try-runtime:
# experimental code may rely on try-runtime and vice-versa
- time cargo check --locked --all --features try-runtime,experimental

cargo-fmt-manifest:
stage: check
extends:
- .docker-env
- .common-refs
script:
- cargo install zepter --locked --version 0.11.0 -q -f --no-default-features && zepter --version
- echo "👉 Hello developer! If you see this CI check failing then it means that one of the your changes in a Cargo.toml file introduced ill-formatted or unsorted features. Please take a look at 'docs/STYLE_GUIDE.md#manifest-formatting' to find out more."
- zepter format features --check

# FIXME
.cargo-deny-licenses:
stage: check
Expand Down Expand Up @@ -91,17 +81,14 @@ job-starter:
script:
- echo ok

test-rust-feature-propagation:
check-rust-feature-propagation:
stage: check
extends:
- .kubernetes-env
- .test-pr-refs
- .common-refs
script:
- cargo install --locked --version 0.11.1 -q -f zepter && zepter --version
- echo "👉 Hello developer! If you see this CI check failing then it means that one of the crates is missing a feature for one of its dependencies. The output below tells you which feature needs to be added for which dependency to which crate. You can do this by modifying the Cargo.toml file. For more context see the MR where this check was introduced https://github.com/paritytech/substrate/pull/14660"
- zepter lint propagate-feature --feature try-runtime --left-side-feature-missing=ignore --workspace --feature-enables-dep="try-runtime:frame-try-runtime" --locked
- zepter lint propagate-feature --feature runtime-benchmarks --left-side-feature-missing=ignore --workspace --feature-enables-dep="runtime-benchmarks:frame-benchmarking" --locked
- zepter lint propagate-feature --feature std --left-side-feature-missing=ignore --workspace --locked
- cargo install --locked --version 0.13.2 -q -f zepter && zepter --version
- zepter run check

# More info can be found here: https://github.com/paritytech/polkadot/pull/5865
.check-runtime-migration:
Expand All @@ -120,7 +107,7 @@ test-rust-feature-propagation:
echo "---------- Building ${PACKAGE} runtime ----------"
time cargo build --release --locked -p "$PACKAGE" --features try-runtime

echo "---------- Executing `on-runtime-upgrade` for ${NETWORK} ----------"
echo "---------- Executing on-runtime-upgrade for ${NETWORK} ----------"
time ./try-runtime \
--runtime ./target/release/wbuild/"$PACKAGE"/"$WASM" \
on-runtime-upgrade --checks=pre-and-post ${EXTRA_ARGS} live --uri ${URI}
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ quick-benchmarks:
WASM_BUILD_NO_COLOR: 1
WASM_BUILD_RUSTFLAGS: "-C debug-assertions -D warnings"
script:
- time cargo run --locked --release -p node-cli --bin substrate-node --features runtime-benchmarks -- benchmark pallet --execution wasm --wasm-execution compiled --chain dev --pallet "*" --extrinsic "*" --steps 2 --repeat 1
- time cargo run --locked --release -p staging-node-cli --bin substrate-node --features runtime-benchmarks -- benchmark pallet --execution wasm --wasm-execution compiled --chain dev --pallet "*" --extrinsic "*" --steps 2 --repeat 1

test-frame-examples-compile-to-wasm:
# into one job
Expand Down Expand Up @@ -396,7 +396,7 @@ test-linux-stable-int:
script:
- WASM_BUILD_NO_COLOR=1
RUST_LOG=sync=trace,consensus=trace,client=trace,state-db=trace,db=trace,forks=trace,state_db=trace,storage_cache=trace
time cargo test -p node-cli --release --locked -- --ignored
time cargo test -p staging-node-cli --release --locked -- --ignored

# more information about this job can be found here:
# https://github.com/paritytech/substrate/pull/6916
Expand Down
Loading
Loading