-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tsv-disabling' into ao-disabling-statement-distribution
* tsv-disabling: (39 commits) Handling of disabled validators in backing subsystem (#1259) Switch trie cache random seed (#1935) Expose prometheus metrics for minimal-relay-chain node in collators (#1942) Do not force collators to update after enabling async backing (#1920) Pin PRDoc image to v0.0.5 until we are ready for v0.0.6 (#1947) [prdoc] Start BEEFY gadget by default for Polkadot nodes (#1945) Update bridges subtree (#1944) bump zombienet version (#1931) [FRAME] Message Queue use proper overweight limit (#1873) Cumulus: Allow aura to use initialized collation request receiver (#1911) Use prebuilt try-runtime binary in CI (#1898) Update kusama/polkadot bootnodes (#1895) Introduce XcmFeesToAccount fee manager (#1234) upgraded review bot to v2.1.0 (#1908) Trading trait and deal with metadata in Mutate trait for nonfungibles_v2 (#1561) Add Runtime Missing Crate Descriptions (#1909) Switch to the release env (#1910) Bump paritytech/review-bot from 2.0.1 to 2.1.0 (#1924) Bump actions/checkout from 4.1.0 to 4.1.1 (#1925) Start BEEFY client by default for Polkadot nodes (#1913) ...
- Loading branch information
Showing
275 changed files
with
19,429 additions
and
1,707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
# Wrapper for building with musl. | ||
# | ||
# See comments for musl-gcc in this repo. | ||
|
||
g++ "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
# Wrapper for building with musl. | ||
# | ||
# musl unfortunately requires a musl-enabled C compiler (musl-gcc) to be | ||
# installed, which can be kind of a pain to get installed depending on the | ||
# distro. That's not a very good user experience. | ||
# | ||
# The real musl-gcc wrapper sets the correct system include paths for linking | ||
# with musl libc library. Since this is not actually used to link any binaries | ||
# it should most likely work just fine. | ||
|
||
gcc "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Config file for lychee link checker: <https://github.com/lycheeverse/lychee> | ||
# Run with `lychee -c .config/lychee.toml ./**/*.rs ./**/*.prdoc` | ||
|
||
cache = true | ||
max_cache_age = "1d" | ||
max_redirects = 10 | ||
max_retries = 6 | ||
|
||
# Exclude localhost et.al. | ||
exclude_all_private = true | ||
|
||
# Treat these codes as success condition: | ||
accept = [ | ||
# Ok | ||
200, | ||
|
||
# Rate limited - GitHub likes to throw this. | ||
429 | ||
] | ||
|
||
exclude_path = [ "./target" ] | ||
|
||
exclude = [ | ||
# Place holders (no need to fix these): | ||
"http://visitme/", | ||
"https://visitme/", | ||
|
||
# TODO <https://github.com/paritytech/polkadot-sdk/issues/134> | ||
"https://docs.substrate.io/main-docs/build/custom-rpc/#public-rpcs", | ||
"https://docs.substrate.io/rustdocs/latest/sp_api/macro.decl_runtime_apis.html", | ||
"https://github.com/ipfs/js-ipfs-bitswap/blob/", | ||
"https://github.com/paritytech/polkadot-sdk/substrate/frame/timestamp", | ||
"https://github.com/paritytech/substrate/frame/fast-unstake", | ||
"https://github.com/zkcrypto/bls12_381/blob/e224ad4ea1babfc582ccd751c2bf128611d10936/src/test-data/mod.rs", | ||
"https://polkadot.network/the-path-of-a-parachain-block/", | ||
"https://research.web3.foundation/en/latest/polkadot/BABE/Babe/#6-practical-results", | ||
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html", | ||
"https://research.web3.foundation/en/latest/polkadot/block-production/Babe.html#-6.-practical-results", | ||
"https://research.web3.foundation/en/latest/polkadot/networking/3-avail-valid.html#topology", | ||
"https://research.web3.foundation/en/latest/polkadot/NPoS/3.%20Balancing.html", | ||
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html", | ||
"https://research.web3.foundation/en/latest/polkadot/overview/2-token-economics.html#inflation-model", | ||
"https://research.web3.foundation/en/latest/polkadot/slashing/npos.html", | ||
"https://research.web3.foundation/en/latest/polkadot/Token%20Economics.html#inflation-model", | ||
"https://rpc.polkadot.io/", | ||
"https://w3f.github.io/parachain-implementers-guide/node/approval/approval-distribution.html", | ||
"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", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,13 @@ jobs: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: "18.x" | ||
registry-url: "https://npm.pkg.github.com" | ||
scope: "@paritytech" | ||
|
||
- name: Check the licenses in Polkadot | ||
run: | | ||
shopt -s globstar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Check links | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "*.rs" | ||
- "*.prdoc" | ||
- ".github/workflows/check-links.yml" | ||
- ".config/lychee.toml" | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
permissions: | ||
packages: read | ||
|
||
jobs: | ||
link-checker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Restore lychee cache | ||
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 (7. Sep 2023) | ||
with: | ||
path: .lycheecache | ||
key: cache-lychee-${{ github.sha }} | ||
# This should restore from the most recent one: | ||
restore-keys: cache-lychee- | ||
|
||
- 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) | ||
with: | ||
args: >- | ||
--config .config/lychee.toml | ||
--no-progress | ||
'./**/*.rs' | ||
'./**/*.prdoc' | ||
fail: true | ||
env: | ||
# To bypass GitHub rate-limit: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
name: Review PR | ||
name: Review Bot | ||
on: | ||
pull_request_target: | ||
workflow_run: | ||
workflows: | ||
- Review-Trigger | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- review_requested | ||
- review_request_removed | ||
- ready_for_review | ||
pull_request_review: | ||
- completed | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -17,15 +13,21 @@ jobs: | |
review-approvals: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract content of artifact | ||
id: number | ||
uses: Bullrich/[email protected] | ||
with: | ||
artifact-name: pr_number | ||
- name: Generate token | ||
id: team_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.0.1 | ||
uses: paritytech/review-bot@v2.1.0 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
team-token: ${{ steps.team_token.outputs.token }} | ||
checks-token: ${{ steps.team_token.outputs.token }} | ||
pr-number: ${{ steps.number.outputs.content }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Review-Trigger | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- review_requested | ||
- review_request_removed | ||
- ready_for_review | ||
pull_request_review: | ||
|
||
jobs: | ||
trigger-review-bot: | ||
runs-on: ubuntu-latest | ||
name: trigger review bot | ||
steps: | ||
- name: Get PR number | ||
env: | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
run: | | ||
echo "Saving PR number: $PR_NUMBER" | ||
mkdir -p ./pr | ||
echo $PR_NUMBER > ./pr/pr_number | ||
- uses: actions/upload-artifact@v3 | ||
name: Save PR number | ||
with: | ||
name: pr_number | ||
path: pr/ | ||
retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
.env* | ||
.idea | ||
.local | ||
.lycheecache | ||
.vscode | ||
.wasm-binaries | ||
*.adoc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.