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

Bullrich/review bot/discard reviews #27

Closed
wants to merge 150 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
cfc4050
Improve Penpal runtime + emulated tests (#3543)
NachoPal Mar 14, 2024
3c6ebd9
fix(paseo-spec): New Paseo Bootnodes (#3674)
al3mart Mar 14, 2024
7099f6e
Removes `as [disambiguation_path]` from `derive_impl` usage (#3652)
codekitz Mar 15, 2024
4987d79
Add elastic scaling support in ParaInherent BenchBuilder (#3690)
sandreim Mar 15, 2024
e8b51f6
Contracts use polkavm workspace deps (#3715)
pgherveou Mar 15, 2024
02e1a7f
collator protocol changes for elastic scaling (validator side) (#3302)
ordian Mar 15, 2024
d2a7100
Crowdload burn remaining funds (#3707)
ggwpez Mar 17, 2024
1f9505c
Eliminate `experimental` feature (#3654)
s0me0ne-unkn0wn Mar 17, 2024
fe343cc
Bump the known_good_semver group with 3 updates (#3717)
dependabot[bot] Mar 17, 2024
6b1179f
Fix typo (#3691)
jokess123 Mar 17, 2024
1b5f424
sp-std removal from substrate/primitives (#3274)
gilescope Mar 18, 2024
816c072
Pallet AURA: remove pallet::getter macro and write the corresponding …
k-gunjan Mar 18, 2024
8d0cd4f
Fix kusama validators getting 0 backing rewards the first session the…
alexggh Mar 18, 2024
1d60f9c
Fix typos (#3725)
jokess123 Mar 18, 2024
0c6c837
Bridge zombienet tests: remove unneeded accounts (#3700)
serban300 Mar 18, 2024
610987a
removed `pallet::getter` usage from cumulus pallets (#3471)
muraca Mar 18, 2024
e2ead88
Bump the known_good_semver group with 2 updates (#3726)
dependabot[bot] Mar 19, 2024
8b3bf39
Add HRMP notification handlers to the xcm-executor (#3696)
JuaniRios Mar 19, 2024
430ad2f
Make `availability-recovery-regression-bench` a benchmark (#3741)
bkchr Mar 19, 2024
abd3f0c
Benchmarking: Add pov_mode to V2 syntax (#3616)
ggwpez Mar 19, 2024
817870e
Removed `pallet::getter` usage from Beefy and MMR pallets (#3740)
muraca Mar 19, 2024
923f27c
rpc: Enable `transaction_unstable_broadcast` RPC V2 API (#3713)
lexnv Mar 19, 2024
5fd72a1
collator-side: send parent head data (#3521)
ordian Mar 19, 2024
1e9fd23
Implement crypto byte array newtypes in term of a shared type (#3684)
davxy Mar 19, 2024
c486da3
chore: bump zombienet version (1.3.95) (#3745)
pepoviola Mar 19, 2024
e659c4b
Contracts: Test benchmarking v2 (#3585)
pgherveou Mar 19, 2024
e58e854
Expose `ClaimQueue` via a runtime api and use it in `collation-genera…
tdimitrov Mar 20, 2024
bb973aa
Bump anyhow from 1.0.75 to 1.0.81 (#3752)
dependabot[bot] Mar 20, 2024
7241a8d
Fix typos (#3753)
slicejoke Mar 20, 2024
b686bfe
Defensive Programming in Substrate Reference Document (#2615)
CrackTheCode016 Mar 20, 2024
b74353d
Fix algorithmic complexity of on-demand scheduler with regards to num…
eskimor Mar 20, 2024
1da8a6b
Enable PoV reclaim on `rococo-parachain` (#3765)
s0me0ne-unkn0wn Mar 20, 2024
93b1abb
Migrates Westend to Runtime V2 (#3754)
codekitz Mar 21, 2024
7b6b061
[Backport] version bumps and prdocs reordering 1.9.0 (#3758)
EgorPopelyaev Mar 21, 2024
7507495
[Backport] Reformat release notes generation (#3759)
EgorPopelyaev Mar 21, 2024
4842faf
Elastic scaling: runtime dependency tracking and enactment (#3479)
alindima Mar 21, 2024
64a707a
approval-voting: remove some inefficiences on startup (#3747)
ordian Mar 21, 2024
9922fd3
there's a typo (#3779)
kevin-valerio Mar 21, 2024
46ba855
Fix toml formatting (#3782)
tdimitrov Mar 21, 2024
01d65f6
Revert `SendXcmOrigin` in Rococo & Westend (#2571)
al3mart Mar 21, 2024
ea5f4e9
Adding LF's bootnodes to relay and system chains (#3514)
paradox-tt Mar 22, 2024
3410dfb
Snowbridge Beacon header age check (#3727)
claravanstaden Mar 22, 2024
22d5b80
Add a linear fee multiplier (#127) (#3790)
vgeddes Mar 22, 2024
9d2963c
Make public addresses go first in authority discovery DHT records (#3…
dmitry-markin Mar 22, 2024
2f59e9e
XCM remove extra QueryId types from traits (#3763)
pgherveou Mar 22, 2024
9a04ebb
[pallet-xcm] fix transport fees for remote reserve transfers (#3792)
girazoki Mar 22, 2024
19490ab
Fix xcm config for coretime. (#3768)
eskimor Mar 23, 2024
463ccb8
pallet-aura: Expose `SlotDuration` as constant (#3732)
bkchr Mar 24, 2024
e88d1cb
[docs] Update ci image in container.md (#3799)
alvicsam Mar 25, 2024
0711729
[Bridges] Move chain definitions to separate folder (#3822)
serban300 Mar 25, 2024
c6f7ccf
elastic scaling: preserve candidate ordering in provisioner (#3778)
alindima Mar 25, 2024
ce7613a
[prdoc] Remove default audience (#3723)
ggwpez Mar 25, 2024
9d12240
Refactor crypto-related traits implementations in term of Public/Sign…
davxy Mar 25, 2024
cc1e6ac
[subsystem-benchmarks] Fix availability-write regression tests (#3698)
AndreiEres Mar 25, 2024
ea97863
Fix formatting in Cargo.toml (#3842)
dcompoze Mar 26, 2024
b839c99
Update bridges subtree (#3841)
serban300 Mar 26, 2024
002d926
Fix spelling mistakes across the whole repository (#3808)
dcompoze Mar 26, 2024
fd79b3b
[subsystem-benchmarks] Save results to json (#3829)
AndreiEres Mar 26, 2024
9023454
Migrate parachain swaps to Coretime (#3714)
tdimitrov Mar 26, 2024
0c15d88
westend: `SignedPhase` is a constant (#3646)
bkchr Mar 26, 2024
3c972fc
XCM Fee Payment Runtime API (#3607)
PraetorP Mar 26, 2024
ed90781
add metaspan boot node to coretime-westend.json (#3781)
dcolley Mar 26, 2024
3fc5b82
fix regression in approval-voting introduced in #3747 (#3831)
ordian Mar 26, 2024
f394477
chore: bump zombienet version (#3830)
pepoviola Mar 27, 2024
66051ad
testnet genesis: enable approval voting v2 assignments and coalescing…
sandreim Mar 27, 2024
feee773
pallet-xcm: Deprecate `execute` and `send` in favor of `execute_blob`…
franciscoaguirre Mar 27, 2024
5ac32ee
authority-discovery: Set intervals to start when authority keys chang…
lexnv Mar 27, 2024
25af0ad
[ci] Collect subsystem-benchmarks results and add graphs for them (#3…
alvicsam Mar 27, 2024
417c54c
collation-generation + collator-protocol: collate on multiple assigne…
sandreim Mar 27, 2024
8342947
process enqueued messages on idle (#3844)
ermalkaleci Mar 27, 2024
374aefa
[ci] Fix publish benchmarks job (#3864)
alvicsam Mar 27, 2024
bbdbeb7
Extrinsic to restore corrupt staking ledgers (#3706)
gpestana Mar 27, 2024
597ea92
pallet-scheduler: Unrequest call on failed lookup (#3849)
bkchr Mar 27, 2024
5d314eb
pallet-referenda: Detect incorrect pre-image length (#3850)
bkchr Mar 27, 2024
daf04f0
Deprecate scheduler traits v1 and v2 (#3718)
chungquantin Mar 28, 2024
1ed44af
[prdoc] Require SemVer bump level (#3816)
liamaharon Mar 28, 2024
60846a0
[parachain-template] runtime API Implementations into `mod apis` (#3817)
asiniscalchi Mar 28, 2024
78b1cab
Contracts: add test builders (#3796)
pgherveou Mar 28, 2024
987f1c2
Update benchmarking README.md (#3862)
RomarQ Mar 28, 2024
2e4e657
Export unified ParachainHostFunctions (#3854)
skunert Mar 28, 2024
79b08d8
Try State Hook for Beefy (#3246)
dharjeezy Mar 28, 2024
6a0859e
bugfix: request fragment tree membership for all candidates (#3874)
alindima Mar 28, 2024
c106dbd
add missing syscalls for workers (#2212)
tugytur Mar 28, 2024
eb6f5ab
[ci] fix subsystem-benchmarks gha (#3876)
alvicsam Mar 28, 2024
30ef865
collation-genereation: fix tests (#3883)
sandreim Mar 29, 2024
b310b57
Remove transient code after `im-online` pallet removal (#3383)
s0me0ne-unkn0wn Mar 29, 2024
5638d1a
Decorate mpsc-notification-to-protocol with the protocol name (#3873)
alexggh Mar 29, 2024
0d93248
Fix `addresses_to_publish_respects_existing_p2p_protocol` test in sc-…
dmitry-markin Mar 29, 2024
4125706
Tokens in FRAME Docs (#2802)
liamaharon Mar 31, 2024
256d5ae
Revert log level changes (#3913)
bkchr Mar 31, 2024
aa44384
Fix two typos (#3812)
gemini132 Mar 31, 2024
a2c9ab8
Removed `pallet::getter` usage from `pallet-alliance` (#3738)
muraca Apr 1, 2024
e0c081d
network:bridge: fix peer_count metric (#3711)
alexggh Apr 1, 2024
8d30534
[parachain-template] pallet configurations into `mod configs` (#3809)
asiniscalchi Apr 1, 2024
07720dd
Improve `HostConfiguration` consistency check (#3897)
sandreim Apr 1, 2024
b772cb5
Pools: Make `PermissionlessWithdraw` the default claim permission (#3…
Apr 1, 2024
e6bd920
Fix 0007-dispute-freshly-finalized.zndsl failing (#3893)
alexggh Apr 1, 2024
d6f68bb
primitives: Move out of staging released APIs (#3925)
alexggh Apr 1, 2024
9805ba2
Fix links (#3928)
serban300 Apr 1, 2024
bf1ca86
pallet-scheduler: fix test (#3923)
sandreim Apr 1, 2024
52e1037
`im-online` removal final cleanup (#3902)
s0me0ne-unkn0wn Apr 1, 2024
9a62de2
Update derive syn parse 0.2.0 (+ docify) (#3920)
sam0x17 Apr 2, 2024
d0ebb85
pallet-xcm: fix weights for all XTs and deprecate unlimited weight on…
acatangiu Apr 2, 2024
12eb285
Fix parachain upgrade scheduling when done by the owner/root (#3341)
bkchr Apr 2, 2024
db1af43
chore(zombienet): bump version (#3933)
pepoviola Apr 2, 2024
d5617cf
Update bridges subtree (#3938)
serban300 Apr 2, 2024
5eff3f9
beefy: error logs for validators with dummy keys (#3939)
acatangiu Apr 2, 2024
7430f41
chainHead: Allow methods to be called from within a single connection…
lexnv Apr 2, 2024
8e95a3e
Align dependencies with `parity-bridges-common` (#3937)
serban300 Apr 2, 2024
e542796
migrations: prevent accidentally using unversioned migrations instead…
dastansam Apr 2, 2024
5d9826c
Snowbridge: Synchronize from Snowfork repository (#3761)
claravanstaden Apr 2, 2024
0becc45
sp_runtime: TryFrom<RuntimeString> for &str (#3942)
michalkucharczyk Apr 2, 2024
f88190a
SortedMembers::add for pallet-membership benchmarks (#3729)
Dinonard Apr 2, 2024
665e365
Remove nextest filtration (#3885)
AndreiEres Apr 2, 2024
e8e201f
statement-distribution: fix filtering of statements for elastic parac…
sandreim Apr 3, 2024
9b378a2
sp-wasm-interface: `wasmtime` should not be enabled by `std` (#3954)
bkchr Apr 3, 2024
cdacfb9
Added tests for XCM barriers: `AllowSubscriptions`, `WithUniqueTopic`…
bkontur Apr 3, 2024
287b116
chainHead: Ensure reasonable distance between leaf and finalized bloc…
lexnv Apr 3, 2024
ecc51a2
Enable pov-reclaim on rococo and westend parachains (#3858)
skunert Apr 3, 2024
0f4e849
Add ClaimQueue wrapper (#3950)
sandreim Apr 3, 2024
3836376
Renames `frame` crate to `polkadot-sdk-frame` (#3813)
codekitz Apr 4, 2024
ebdca15
Convince GitLab not to crop collapsed multiline strings (#3971)
rcny Apr 4, 2024
0bbda78
Use 0.1.0 as minimum version for crates (#3941)
Morganamilo Apr 4, 2024
0ef37c7
Fix Mermaid diagram rendering (#3875)
liamaharon Apr 4, 2024
bcb4d13
[doc] Example MBM pallet (#2119)
juangirini Apr 4, 2024
c130ea9
XCM builder pattern improvement - Accept `impl Into<T>` instead of ju…
franciscoaguirre Apr 4, 2024
bda4e75
Migrate fee payment from `Currency` to `fungible` (#2292)
liamaharon Apr 4, 2024
68cdb12
Added support for coretime-kusama/polkadot and people-kusama/polkadot…
bkontur Apr 4, 2024
9d052b7
Make `BlockNumberProvider::set_block_number` available in tests / std…
shawntabrizi Apr 4, 2024
f910a15
`GenesisConfig` presets for runtime (#2714)
michalkucharczyk Apr 4, 2024
a7acec7
Add Helikon boot nodes for Coretime Westend and People Westend. (#3922)
kukabi Apr 4, 2024
5fb4397
Update pr_3844.prdoc (#3988)
ermalkaleci Apr 4, 2024
0dc0d40
Elastic scaling: add e2e test (#3929)
sandreim Apr 5, 2024
cb0748b
Revert "[prdoc] Require SemVer bump level" (#3987)
ggwpez Apr 5, 2024
03e9dd7
Update pr_3302.prdoc (#3985)
ordian Apr 5, 2024
d3eba36
[prdoc] Support multiple audiences (#3990)
ggwpez Apr 5, 2024
ba0f8de
[pallet-broker] Fix claim revenue behaviour for zero timeslices (#3997)
seadanda Apr 5, 2024
33bbdb3
[parachain-template] benchmarks into `mod benchmarks` (#3818)
asiniscalchi Apr 5, 2024
0832f0f
Rococo/Westend: publish `claim_queue` Runtime API (#4005)
sandreim Apr 5, 2024
a0eed0a
chore: fix some comments (#4004)
divdeploy Apr 5, 2024
05b9706
Bump h2 from 0.3.24 to 0.3.26 (#4008)
dependabot[bot] Apr 5, 2024
1c85bfe
Broker: sale price runtime api (#3485)
Szegoo Apr 5, 2024
9d62618
`pallet-uniques`: decrement `total_deposit` when clearing collection …
liamaharon Apr 6, 2024
74d6309
Improve frame umbrella crate doc experience (#4007)
liamaharon Apr 6, 2024
9940038
Major bump of tracing-subscriber version (#3891)
gilescope Apr 6, 2024
bd4471b
Fix some typos (#4018)
HongKuang Apr 8, 2024
59f868d
Deprecate `para_id()` from `CoreState` in polkadot primitives (#3979)
tdimitrov Apr 8, 2024
c1063a5
sc-beefy-consensus: Remove unneeded stream. (#4015)
bkchr Apr 8, 2024
b8d9c26
added script to require a review post push
Bullrich Feb 21, 2024
0441836
added missing value
Bullrich Feb 21, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# - Multiple owners are supported.
# - Either handle (e.g, @github_user or @github/team) or email can be used. Keep in mind,
# that handles might work better because they are more recognizable on GitHub,
# eyou can use them for mentioning unlike an email.
# you can use them for mentioning unlike an email.
# - The latest matching rule, if multiple, takes precedence.

# CI
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/common/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fetch_release_artifacts() {
popd > /dev/null
}

# Fetch the release artifacts like binary and sigantures from S3. Assumes the ENV are set:
# Fetch the release artifacts like binary and signatures from S3. Assumes the ENV are set:
# - RELEASE_ID
# - GITHUB_TOKEN
# - REPO in the form paritytech/polkadot
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Check links
on:
pull_request:
paths:
- "*.rs"
- "*.prdoc"
- "**.rs"
- "**.prdoc"
- ".github/workflows/check-links.yml"
- ".config/lychee.toml"
types: [opened, synchronize, reopened, ready_for_review]
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/review-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@ jobs:
- name: Skip merge queue
if: ${{ contains(github.ref, 'gh-readonly-queue') }}
run: exit 0
- name: Fail when author pushes new code
# Require new reviews when the author is pushing and he is not a member
if: |
github.event_name == 'pull_request_target' &&
github.event.action == 'synchronize' &&
github.event.sender.login == github.event.pull_request.user.login &&
github.event.pull_request.author_association != 'MEMBER'
run: |
echo "::error::Project needs to be reviewed again"

# We get the list of reviewers who approved the PR
REVIEWERS=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.number }}/reviews \
--jq '{reviewers: [.[] | select(.state == "APPROVED") | .user.login]}')

# We request them to review again
echo $REVIEWERS | gh api --method POST repos/${{ github.repository }}/pulls/${{ github.event.number }}/requested_reviewers --input -
exit 1
env:
GH_TOKEN: ${{ github.token }}
- name: Get PR number
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/subsystem-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# The actions takes json file as input and runs github-action-benchmark for it.

on:
workflow_dispatch:
inputs:
benchmark-data-dir-path:
description: "Path to the benchmark data directory"
required: true
type: string
output-file-path:
description: "Path to the benchmark data file"
required: true
type: string

jobs:
subsystem-benchmarks:
runs-on: ubuntu-latest
environment: subsystem-benchmarks
steps:
- name: Validate inputs
run: |
echo "${{ github.event.inputs.benchmark-data-dir-path }}" | grep -P '^[a-z\-]'
echo "${{ github.event.inputs.output-file-path }}" | grep -P '^[a-z\-]+\.json'

- name: Checkout Sources
uses: actions/[email protected]
with:
fetch-depth: 0
ref: "gh-pages"

- name: Copy bench results
id: step_one
run: |
cp bench/gitlab/${{ github.event.inputs.output-file-path }} ${{ github.event.inputs.output-file-path }}

- name: Switch branch
id: step_two
run: |
git checkout master --

- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.POLKADOTSDK_GHPAGES_APP_ID }}
private-key: ${{ secrets.POLKADOTSDK_GHPAGES_APP_KEY }}

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "customSmallerIsBetter"
output-file-path: ${{ github.event.inputs.output-file-path }}
benchmark-data-dir-path: "bench/${{ github.event.inputs.benchmark-data-dir-path }}"
github-token: ${{ steps.app-token.outputs.token }}
auto-push: true
13 changes: 10 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ default:
- cp $FL_FORKLIFT_CONFIG ~/.forklift/config.toml
- shopt -s expand_aliases
- export PATH=$PATH:$(pwd)
- |
- >
if [ "$FORKLIFT_BYPASS" != "true" ]; then
echo "FORKLIFT_BYPASS not set, creating alias cargo='forklift cargo'"
alias cargo="forklift cargo"
echo "FORKLIFT_BYPASS not set, creating alias cargo='forklift cargo'";
alias cargo="forklift cargo";
fi
#
- echo "FL_FORKLIFT_VERSION ${FL_FORKLIFT_VERSION}"
Expand All @@ -147,6 +147,13 @@ default:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^gh-readonly-queue.*$/ # merge queues

.publish-gh-pages-refs:
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "master"

# handle the specific case where benches could store incorrect bench data because of the downstream staging runs
# exclude cargo-check-benches from such runs
.test-refs-check-benches:
Expand Down
35 changes: 17 additions & 18 deletions .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,40 +91,39 @@ build-rustdoc:
- .run-immediately
variables:
SKIP_WASM_BUILD: 1
RUSTDOCFLAGS: "--default-theme=ayu --html-in-header ./docs/sdk/headers/header.html --extend-css ./docs/sdk/headers/theme.css"
RUSTDOCFLAGS: "-Dwarnings --default-theme=ayu --html-in-header ./docs/sdk/assets/header.html --extend-css ./docs/sdk/assets/theme.css --html-after-content ./docs/sdk/assets/after-content.html"
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
when: on_success
expire_in: 1 days
paths:
- ./crate-docs/
script:
# FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"` and `--all-features`
- time cargo doc --features try-runtime,experimental --workspace --no-deps
- time cargo doc --all-features --workspace --no-deps
- rm -f ./target/doc/.lock
- mv ./target/doc ./crate-docs
# Inject Simple Analytics (https://www.simpleanalytics.com/) privacy preserving tracker into
# all .html files
- |
- >
inject_simple_analytics() {
local path="$1"
local script_content="<script async defer src=\"https://apisa.parity.io/latest.js\"></script><noscript><img src=\"https://apisa.parity.io/latest.js\" alt=\"\" referrerpolicy=\"no-referrer-when-downgrade\" /></noscript>"
local path="$1";
local script_content="<script async defer src=\"https://apisa.parity.io/latest.js\"></script><noscript><img src=\"https://apisa.parity.io/latest.js\" alt=\"\" referrerpolicy=\"no-referrer-when-downgrade\" /></noscript>";

# Function that inject script into the head of an html file using sed.
process_file() {
local file="$1"
echo "Adding Simple Analytics script to $file"
sed -i "s|</head>|$script_content</head>|" "$file"
}
export -f process_file
# xargs runs process_file in seperate shells without access to outer variables.
# to make script_content available inside process_file, export it as an env var here.
export script_content
local file="$1";
echo "Adding Simple Analytics script to $file";
sed -i "s|</head>|$script_content</head>|" "$file";
};
export -f process_file;
# xargs runs process_file in separate shells without access to outer variables.
# make script_content available inside process_file, export it as an env var here.
export script_content;

# Modify .html files in parallel using xargs, otherwise it can take a long time.
find "$path" -name '*.html' | xargs -I {} -P "$(nproc)" bash -c 'process_file "$@"' _ {}
}
inject_simple_analytics "./crate-docs"
find "$path" -name '*.html' | xargs -I {} -P "$(nproc)" bash -c 'process_file "$@"' _ {};
};
inject_simple_analytics "./crate-docs";
- echo "<meta http-equiv=refresh content=0;url=polkadot_sdk_docs/index.html>" > ./crate-docs/index.html

build-implementers-guide:
Expand Down Expand Up @@ -350,7 +349,7 @@ build-runtimes-polkavm:
- .run-immediately
# - .collect-artifact
variables:
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
# this variable gets overridden by "rusty-cachier environment inject", use the value as default
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
before_script:
- mkdir -p ./artifacts/subkey
Expand Down
29 changes: 13 additions & 16 deletions .gitlab/pipeline/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,20 @@ check-toml-format:
- .docker-env
- .test-pr-refs
script:
- |
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.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

echo "---------- Executing on-runtime-upgrade for ${NETWORK} ----------"
- 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.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
- echo "---------- Executing on-runtime-upgrade for ${NETWORK} ----------"
- >
time ./try-runtime ${COMMAND_EXTRA_ARGS} \
--runtime ./target/release/wbuild/"$PACKAGE"/"$WASM" \
on-runtime-upgrade --disable-spec-version-check --checks=all ${SUBCOMMAND_EXTRA_ARGS} live --uri ${URI}
sleep 5
--runtime ./target/release/wbuild/"$PACKAGE"/"$WASM" \
on-runtime-upgrade --disable-spec-version-check --checks=all ${SUBCOMMAND_EXTRA_ARGS} live --uri ${URI}
- sleep 5

# Check runtime migrations for Parity managed relay chains
check-runtime-migration-westend:
Expand Down
76 changes: 70 additions & 6 deletions .gitlab/pipeline/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@

publish-rustdoc:
stage: publish
extends: .kubernetes-env
extends:
- .kubernetes-env
- .publish-gh-pages-refs
variables:
CI_IMAGE: node:18
GIT_DEPTH: 100
RUSTDOCS_DEPLOY_REFS: "master"
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "master"
needs:
- job: build-rustdoc
artifacts: true
Expand Down Expand Up @@ -60,9 +57,76 @@ publish-rustdoc:
- git commit -m "___Updated docs for ${CI_COMMIT_REF_NAME}___" ||
echo "___Nothing to commit___"
- git push origin gh-pages --force
# artificial sleep to publish gh-pages
- sleep 300
after_script:
- rm -rf .git/ ./*

publish-subsystem-benchmarks:
stage: publish
variables:
CI_IMAGE: "paritytech/tools:latest"
extends:
- .kubernetes-env
- .publish-gh-pages-refs
needs:
- job: subsystem-regression-tests
artifacts: true
- job: publish-rustdoc
artifacts: false
script:
# setup ssh
- eval $(ssh-agent)
- ssh-add - <<< ${GITHUB_SSH_PRIV_KEY}
- mkdir ~/.ssh && touch ~/.ssh/known_hosts
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
# Set git config
- rm -rf .git/config
- git config user.email "[email protected]"
- git config user.name "${GITHUB_USER}"
- git config remote.origin.url "[email protected]:/paritytech/${CI_PROJECT_NAME}.git"
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch origin gh-pages
# Push result to github
- git checkout gh-pages --force
- mkdir -p bench/gitlab/ || echo "Directory exists"
- rm -rf bench/gitlab/*.json || echo "No json files"
- cp -r charts/*.json bench/gitlab/
- git add bench/gitlab/
- git commit -m "Add json files with benchmark results for ${CI_COMMIT_REF_NAME}"
- git push origin gh-pages
# artificial sleep to publish gh-pages
- sleep 300
allow_failure: true
after_script:
- rm -rf .git/ ./*

trigger_workflow:
stage: deploy
extends:
- .kubernetes-env
- .publish-gh-pages-refs
needs:
- job: publish-subsystem-benchmarks
artifacts: false
- job: subsystem-regression-tests
artifacts: true
script:
- echo "Triggering workflow"
- >
for benchmark in $(ls charts/*.json); do
export benchmark_name=$(basename $benchmark);
echo "Benchmark: $benchmark_name";
export benchmark_dir=$(echo $benchmark_name | sed 's/\.json//');
curl -q -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/actions/workflows/subsystem-benchmarks.yml/dispatches \
-d "{\"ref\":\"refs/heads/master\",\"inputs\":{\"benchmark-data-dir-path\":\"$benchmark_dir\",\"output-file-path\":\"$benchmark_name\"}}";
sleep 300;
done
allow_failure: true

# note: images are used not only in zombienet but also in rococo, wococo and versi
.build-push-image:
image: $BUILDAH_IMAGE
Expand Down
18 changes: 12 additions & 6 deletions .gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ test-linux-stable:
- echo "Node index - ${CI_NODE_INDEX}. Total amount - ${CI_NODE_TOTAL}"
# add experimental to features after https://github.com/paritytech/substrate/pull/14502 is merged
# "upgrade_version_checks_should_work" is currently failing
- |
- >
time cargo nextest run \
--filter-expr 'not deps(/polkadot-subsystem-bench/)' \
--workspace \
--locked \
--release \
Expand All @@ -35,7 +34,7 @@ test-linux-stable:
# Upload tests results to Elasticsearch
- echo "Upload test results to Elasticsearch"
- cat target/nextest/default/junit.xml | xq . > target/nextest/default/junit.json
- |
- >
curl -v -XPOST --http1.1 \
-u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD} \
https://elasticsearch.parity-build.parity.io/unit-tests/_doc/${CI_JOB_ID} \
Expand Down Expand Up @@ -70,7 +69,7 @@ test-linux-stable-runtime-benchmarks:
# but still want to have debug assertions.
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
script:
- time cargo nextest run --filter-expr 'not deps(/polkadot-subsystem-bench/)' --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet
- time cargo nextest run --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet

# can be used to run all tests
# test-linux-stable-all:
Expand All @@ -88,7 +87,7 @@ test-linux-stable-runtime-benchmarks:
# script:
# # Build all but only execute 'runtime' tests.
# - echo "Node index - ${CI_NODE_INDEX}. Total amount - ${CI_NODE_TOTAL}"
# - |
# - >
# time cargo nextest run \
# --workspace \
# --locked \
Expand Down Expand Up @@ -497,12 +496,19 @@ test-syscalls:

subsystem-regression-tests:
stage: test
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: always
expire_in: 1 days
paths:
- charts/
extends:
- .docker-env
- .common-refs
- .run-immediately
script:
- cargo test --profile=testnet -p polkadot-availability-recovery --test availability-recovery-regression-bench --features subsystem-benchmarks
- cargo bench --profile=testnet -p polkadot-availability-recovery --bench availability-recovery-regression-bench --features subsystem-benchmarks
- cargo bench --profile=testnet -p polkadot-availability-distribution --bench availability-distribution-regression-bench --features subsystem-benchmarks
tags:
- benchmark
allow_failure: true
Loading