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

Feature/update to polkadot v0 9 13 #163

Merged
merged 166 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from 162 commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
09c916c
AssetId trait should also contain TypeInfo bound (#10038)
GopherJ Oct 18, 2021
129c16b
CI: remove node-template from build-linux-substrate-simnet job (#10034)
alvicsam Oct 18, 2021
4a99c09
Make duration calculation robust against clock drift (#10042)
bkchr Oct 18, 2021
abeea6d
Update lowest unbaked storage. (#9750)
gui1117 Oct 18, 2021
d1ec40b
Clarify wieght traits needed to impl in example (#9842)
nuke-web3 Oct 18, 2021
781454d
Don't print "Discovered new external" line for private IPs (#10055)
tomaka Oct 19, 2021
2993812
remove hardcoded pipeline scripts tag (#10061)
joao-paulo-parity Oct 19, 2021
72a8f9f
Slightly improved documentation. (#9976)
eskimor Oct 19, 2021
dcad42f
Derive Encode/Decode for BlockId (#10063)
JayPavlina Oct 19, 2021
1175446
Allow pallet's info to be enumerated (#10053)
gavofyork Oct 21, 2021
05af3c2
Temporarily disable `node-bench-regression-guard` (#10075)
rcny Oct 21, 2021
485e592
remove logging from the check-dependent-* job (#10076)
joao-paulo-parity Oct 21, 2021
632b323
Speed up logging once again (#9981)
koute Oct 21, 2021
6725823
Remove broken links in Nicks Pallet (#10086)
mgrachev Oct 22, 2021
969a70d
Introduce `linux-docker-benches` (#10085)
rcny Oct 22, 2021
456509d
pallet-multisig: Improve opaque call handling (#10060)
bkchr Oct 25, 2021
732f037
Offchain-worker: Update example-offchain-worker with implementation f…
ltfschoen Oct 25, 2021
f37f1c8
Remove `ss58-registry.json` (#10094)
bkchr Oct 26, 2021
c5450ed
Bump libc from 0.2.103 to 0.2.105 (#10115)
dependabot[bot] Oct 29, 2021
69fa67d
Remove useless WeightInfo in pallet-offences (#10114)
liuchengxu Oct 29, 2021
945377f
pallet-scheduler: Introduce `OriginPrivilegeCmp` (#10078)
bkchr Oct 29, 2021
a7cc69f
contracts: Fix account counter isn't persisted (#10112)
athei Oct 30, 2021
1d818f3
Removal of light client from substrate (#9684)
gilescope Oct 30, 2021
040ab40
Add Baseline FRAME Benchmarks (#9691)
shawntabrizi Oct 30, 2021
e11a670
pallet-utility: Fix possible mismatch between native/wasm (#10121)
bkchr Oct 30, 2021
794e9a9
fix query details (#10107)
gui1117 Oct 31, 2021
1f1fc45
Automatic pallet parts in construct_runtime (#9681)
gui1117 Oct 31, 2021
b63e1c5
Offchain-worker: Make it possible to disable http support (#10087)
bkchr Oct 31, 2021
26d69bc
Fuzzer for Pallet Bags List (#9851)
emostov Oct 31, 2021
dc29596
Strip out control codes from the logged messages (#10081)
koute Nov 1, 2021
efb72f6
Fix transaction pool rejection (#10138)
arkpar Nov 1, 2021
5fa8dc0
Speed up big chainspec json(~1.5 GB) load (#10137)
icodezjb Nov 1, 2021
4b40c2a
introduce remote-tests for pallet-bags-list (#10036)
kianenigma Nov 1, 2021
0210ea0
don't panic if already migrated (#10141)
weichweich Nov 2, 2021
0465b0b
Hashing proc macro utils (#9875)
cheme Nov 2, 2021
9d8e5c4
Spelling (#10154)
gavofyork Nov 2, 2021
635c187
Better error for when origin filter prevent the call to be dispatched…
gui1117 Nov 2, 2021
079889e
add missing version to dependencies (#10148)
kianenigma Nov 2, 2021
7e42d77
Bump parity-db (#10151)
arkpar Nov 2, 2021
85a2a7a
Add a `trie_root_hash` variant for chain specs genesis (#10140)
tomaka Nov 3, 2021
26e5f5f
Bump prost-build from 0.8.0 to 0.9.0 (#10162)
dependabot[bot] Nov 3, 2021
bdf97a3
Update CI image to the latest rustc (#10142)
alvicsam Nov 3, 2021
45f0007
Bump directories from 3.0.2 to 4.0.1 (#10163)
dependabot[bot] Nov 3, 2021
4f3b9c3
Bump linregress from 0.4.3 to 0.4.4 (#10124)
dependabot[bot] Nov 3, 2021
e40710a
handle doc on type_value (#10132)
gui1117 Nov 4, 2021
6af19fd
Update node-template `construct_runtime!` syntax (#10155)
nuke-web3 Nov 4, 2021
a946572
implement dispatch_as (#9934)
xlc Nov 4, 2021
b89bb4c
rm broken rustdoc-header.html (#10091)
nuke-web3 Nov 4, 2021
7545829
Switch to Rust 2021 (#10170)
bkchr Nov 4, 2021
3524f6e
Bump strum from 0.21.0 to 0.22.0 (#10045)
dependabot[bot] Nov 4, 2021
5ba810c
Bump wasmi from 0.9.0 to 0.9.1 (#10116)
dependabot[bot] Nov 5, 2021
6873fc6
Remove old Cargo.toml (#10188)
FlorianFranzen Nov 5, 2021
8439a0b
Remove unnecessary allocations when crossing WASM FFI boundary (#10191)
koute Nov 5, 2021
7b8f8ef
Bump syn from 1.0.80 to 1.0.81 (#10182)
dependabot[bot] Nov 5, 2021
abca10f
Bump strum_macros from 0.21.1 to 0.22.0 (#10200)
dependabot[bot] Nov 6, 2021
0397c5b
Adds block production time in logs (#10205)
Nov 6, 2021
702fd83
Fast sync child trie support. (#9239)
cheme Nov 7, 2021
2e8bb09
put `TryInto` and `TryFrom` in `sp_std::prelude` (#10183)
kianenigma Nov 7, 2021
2cc0e23
Add serde support for `Slot` type (#10204)
liuchengxu Nov 7, 2021
a524cfd
Bump lru from 0.6.6 to 0.7.0 (#10194)
dependabot[bot] Nov 7, 2021
e1c30d9
Speedup block import (#10211)
arkpar Nov 8, 2021
3b2ce54
Refactor `sp-sandbox`; make sure both sandbox executors are always te…
koute Nov 8, 2021
c6a9f64
Offchain-worker: Accessing time is not HTTP (#10220)
bkchr Nov 8, 2021
2a60150
Fix polkadot companion label CI check (#10198)
bkchr Nov 8, 2021
60b51e3
Remove the RPC client example (#10217)
dvdplm Nov 8, 2021
fae2ac6
frame_support::pallet_prelude: Add scale_info::TypeInfo (#10221)
koushiro Nov 9, 2021
5cb8a6d
Bump `wasmtime` to 0.31.0 (#10149)
koute Nov 9, 2021
7adee13
Bump parity-db (#10218)
arkpar Nov 9, 2021
800fac1
Add a block production benchmark (#10104)
koute Nov 9, 2021
dfe12bf
new remote-ext mode: (#10192)
kianenigma Nov 9, 2021
5111c72
move wiki -> docs (#10225)
nuke-web3 Nov 9, 2021
5fe5974
upgrade ss58-registry with additional networks. (#10224)
gilescope Nov 9, 2021
1a66311
Upgrade wasm builder (#10226)
zjb0807 Nov 10, 2021
7b24a94
Move all example pallets under `examples` folder. (#10215)
Nov 10, 2021
6ec26df
use CountedMap in pallet-bags-list (#10179)
kianenigma Nov 10, 2021
755569d
CI: build docs with deps (#9884)
TriplEight Nov 10, 2021
3374a73
Intend to reactivate cargo-unleash check (#10167)
gnunicorn Nov 10, 2021
2ab7698
expose substrate-cli service (#10229)
sander2 Nov 11, 2021
7b1c81f
Upgrade jsonrpsee to v0.4.1 (#10022)
dvdplm Nov 11, 2021
8d78989
Bump substrate-bip39 from 0.4.2 to 0.4.4 (#10213)
dependabot[bot] Nov 11, 2021
083d0ce
Bump parity-util-mem from 0.10.0 to 0.10.2 (#10236)
dependabot[bot] Nov 11, 2021
c2afe15
Bump proc-macro-crate from 1.0.0 to 1.1.0 (#10237)
dependabot[bot] Nov 11, 2021
f785491
Add group name in task metrics (#10196)
sandreim Nov 11, 2021
dc89925
Bump git2 from 0.13.22 to 0.13.23 (#10238)
dependabot[bot] Nov 11, 2021
e5abe55
Warn about usage of pallet collective set members call. (#10156)
gui1117 Nov 11, 2021
2208ac4
Bump thiserror from 1.0.26 to 1.0.30 (#10240)
dependabot[bot] Nov 11, 2021
5d22361
tuple to struct event variants (#10206)
Doordashcon Nov 11, 2021
c45c1cb
Kill the light client, CHTs and change tries. (#10080)
arkpar Nov 12, 2021
9e8c7b8
Bump rustversion from 1.0.4 to 1.0.5 (#10243)
dependabot[bot] Nov 12, 2021
3f3cc90
Update requirement for pwasm-utils (#10250)
pepyakin Nov 12, 2021
54699ec
Bump hex-literal from 0.3.3 to 0.3.4 (#10246)
dependabot[bot] Nov 13, 2021
b01bd31
Bump structopt from 0.3.23 to 0.3.25 (#10253)
dependabot[bot] Nov 13, 2021
ab40c7e
Bump nix from 0.19.1 to 0.23.0 (#10254)
dependabot[bot] Nov 13, 2021
ed60316
Bump cargo_metadata from 0.13.1 to 0.14.1 (#10255)
dependabot[bot] Nov 13, 2021
ee8ac3a
Fix cargo unleash check (#10261)
bkchr Nov 13, 2021
1b646b2
rework `staking::reap_stash` (#10178)
kianenigma Nov 14, 2021
7db0768
Keystore: Store files with permission 600 on unix (#10263)
bkchr Nov 15, 2021
7ebab91
Add field names to pallet `Event` variants (#10184)
ayevbeosa Nov 15, 2021
7aa029a
Bump tokio from 1.12.0 to 1.13.0 (#10265)
dependabot[bot] Nov 15, 2021
bc4cb49
client/service: refactor group param of spawn into an Enum (#10248)
dharjeezy Nov 15, 2021
c087bbe
Add field names to pallet Event variants (#9993)
Wizdave97 Nov 16, 2021
07d98e2
Forward wasmer-sandbox feature to sp-sandbox (#10268)
athei Nov 16, 2021
f846ee0
Cli: Introduce `--detailed-log-output` flag (#10278)
bkchr Nov 16, 2021
74c39a2
Vesting: Fix `post_migration` check (#10280)
bkchr Nov 16, 2021
9fec502
Bump handlebars from 3.5.3 to 4.1.4 (#10273)
dependabot[bot] Nov 16, 2021
9a00c43
Update mod.rs (#10277)
kianenigma Nov 16, 2021
cc4bf91
pallet-session: Migrate the historical part to the new pallet macro (…
koushiro Nov 17, 2021
0baa586
authority-discovery: Support multiple authority ids per peer id (#10259)
bkchr Nov 17, 2021
e75d8e9
Offchain testing: Fix reading response (#10294)
bkchr Nov 17, 2021
6d61f48
Check if BEEFY authority is in current set (#10281)
seunlanlege Nov 17, 2021
05a6abb
Offence implementations can disable offenders independently from slas…
wigy-opensource-developer Nov 17, 2021
4c98bba
Fix Weight Handlebar Template (#10302)
shawntabrizi Nov 18, 2021
0214f26
Set current dir at check_wasm_toolchain_installed at wasm-builder (#1…
MOZGIII Nov 18, 2021
e670c04
Clear WASM linear memory on other OSes besides Linux too (#10291)
koute Nov 18, 2021
80bc4a0
Make authorship soft deadline configurable. (#10125)
tomusdrw Nov 18, 2021
3d4f186
Migrate all doc to new pallet macro (#10187)
koushiro Nov 18, 2021
4581dd9
Moving `pallet-asset-tx-payment` from cumulus to substrate (#10127)
georgesdib Nov 19, 2021
72b9c36
Don't generate the consensusEngine field in chain specs (#10303)
tomaka Nov 19, 2021
0d02990
Offchain worker: Enable http2 and improve logging (#10305)
bkchr Nov 19, 2021
69e384b
Bump libsecp256k1 from 0.6.0 to 0.7.0 (#10214)
dependabot[bot] Nov 19, 2021
cdcf872
Add prometheus metrics for block authorship (#10316)
emostov Nov 19, 2021
3cf5449
Taskmanager: Remove `clean_shutdown` (#10314)
bkchr Nov 19, 2021
197b8fd
tuple to struct event variants (#10257)
Doordashcon Nov 20, 2021
664ac53
Bump derive_more from 0.99.11 to 0.99.16 (#10282)
dependabot[bot] Nov 20, 2021
541a72f
use proper intra doc link (#10271)
dharjeezy Nov 21, 2021
35fcfd6
Fix some doc link (#10329)
gui1117 Nov 22, 2021
68c0952
Bump platforms from 1.1.0 to 2.0.0 (#10331)
dependabot[bot] Nov 22, 2021
c0da7c3
Bump serde_json from 1.0.68 to 1.0.71 (#10321)
dependabot[bot] Nov 22, 2021
5ed2f8f
Bump paste from 1.0.4 to 1.0.6 (#10333)
dependabot[bot] Nov 22, 2021
0710105
Bump prost from 0.8.0 to 0.9.0 (#10341)
dependabot[bot] Nov 22, 2021
4de8ee2
Fix WASM executor without instance reuse; cleanups and refactoring (#…
koute Nov 23, 2021
fe7c029
frame-benchmarking: Fix `min-square` for `--steps=1` (#10323)
bkchr Nov 23, 2021
0925218
Put back consensus_engine, only accept its absence (#10345)
tomaka Nov 23, 2021
1d74e58
fix (#10342)
gui1117 Nov 23, 2021
c3de648
remove unused file (#10343)
gui1117 Nov 23, 2021
7a531b0
Support MMR Pruning (#9700)
AurevoirXavier Nov 23, 2021
1d8f7bf
[ci] Add ssh token for publishing gh-pages (#10338)
alvicsam Nov 23, 2021
7406442
[ci] Fix publish-rustdoc job (#10363)
alvicsam Nov 24, 2021
3f657a5
Introduce temporary GitLab & GHA benchmarking jobs (#10311)
rcny Nov 24, 2021
d732a9d
derive Debug for CrateVersion and StorageVersion (#10355)
apopiak Nov 24, 2021
c519f0f
[ci] Fix publish-rustdoc (#10364)
alvicsam Nov 24, 2021
e9fca0f
Stabilize "seal1" seal_call (#10366)
athei Nov 24, 2021
5e2bb78
Enable wasmtime for aarch64 as well (#10367)
bkchr Nov 24, 2021
3009d32
Don't send ForceClose repeatedly in send_sync_notification (#10348)
tomaka Nov 25, 2021
4617267
Bump libp2p to 0.40.0 (#10035)
kpp Nov 25, 2021
5714e30
REAL fix for `min-square` for `--steps=1 --repeats=1` (#10323) (#10369)
shawntabrizi Nov 25, 2021
120bd65
`BEEFY` add tests for rounds (#10328)
adoerr Nov 25, 2021
4f3c3a5
remove base weight annotations (#10373)
dharjeezy Nov 26, 2021
de6033a
Update W3F URL links (#10374)
KiChjang Nov 26, 2021
fcc54a7
Add runtime-benchmarks for frame-benchmarking (#10324)
zjb0807 Nov 30, 2021
afb74de
Assorted refactorings
gavofyork Jan 6, 2022
ec01556
Merge remote-tracking branch 'upstream/polkadot-v0.9.13' into feature…
MRamanenkau Oct 13, 2022
522678b
Post merge fixes
MRamanenkau Oct 13, 2022
c1bcfe9
Update rustc version
MRamanenkau Oct 13, 2022
bb7edaa
Post merge fixes
MRamanenkau Oct 13, 2022
5dd9424
Fix issue with dependencies
MRamanenkau Oct 13, 2022
d12cba1
Revert "Moving `pallet-asset-tx-payment` from cumulus to substrate (#…
MRamanenkau Oct 14, 2022
4fb8862
Fix construct runtime
MRamanenkau Oct 14, 2022
fbc1e20
Increment spec version and add release notes
MRamanenkau Oct 14, 2022
54a71f9
Update ddc pallet
MRamanenkau Oct 17, 2022
8ab6aff
Merge branch 'feature/update-to-polkadot-v0-9-12' into feature/update…
MRamanenkau Oct 17, 2022
6d9fea1
Remove sp-sandbox
MRamanenkau Oct 18, 2022
7b66a86
Amend release versions
MRamanenkau Oct 20, 2022
cf41d98
Merge branch 'feature/update-to-polkadot-v0-9-12' into feature/update…
MRamanenkau Oct 20, 2022
18d6a14
Add storage migrations
MRamanenkau Nov 22, 2022
679e3c5
Merge branch 'dev-cere' into feature/update-to-polkadot-v0-9-13
MRamanenkau Dec 1, 2022
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
  •  
  •  
  •  
75 changes: 75 additions & 0 deletions .github/workflows/bench_gh_gl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Please do not tamper with this job, it's a part of benchmarking experiment.
# However, you absolutely can copy it into another file and redo the last job in the pipeline.
# Just make sure you won't introduce long queues to the GHA runner, we have just one at the moment.

name: bench GHA against GitLab

on:
push:
branches: [ master ]

jobs:
bench_gh:
runs-on: self-hosted
env:
CARGO_INCREMENTAL: 0
RUSTUP_HOME: /usr/local/rustup
CARGO_HOME: /usr/local/cargo
CC: clang
CXX: clang

steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- name: Install dependencies
# Template job, one can copy it to another pipeline.
run: |
apt-get update
apt-get install -y --no-install-recommends time clang
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100

- name: Install Rust
# Template job, one can copy it to another pipeline.
# Referance code https://github.com/paritytech/scripts/blob/master/dockerfiles/base-ci-linux/Dockerfile
# Better keep Rust versions here in sync with the CI image, otherwise the results will conflict.
run: |
curl -L "https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init" -o rustup-init
chmod +x rustup-init
./rustup-init -y --no-modify-path --profile minimal --default-toolchain stable
rm rustup-init
# add rustup tp PATH so it's usable right away
echo "/usr/local/cargo/bin" >> $GITHUB_PATH
source /usr/local/cargo/env
chmod -R a+w ${RUSTUP_HOME} ${CARGO_HOME}
# install nightly toolchain
rustup toolchain install nightly-2021-11-08 --profile minimal --component rustfmt clippy
# link the pinned toolchain to nightly
ln -s /usr/local/rustup/toolchains/nightly-2021-11-08-x86_64-unknown-linux-gnu /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu
rustup target add wasm32-unknown-unknown
rustup target add wasm32-unknown-unknown --toolchain nightly
# show versions
rustup show
cargo --version
# remove clutter from the installations
rm -rf "${CARGO_HOME}/registry" "${CARGO_HOME}/git"

- name: Checkout sources
uses: actions/checkout@v2

- name: bench-GHA-test-full-crypto-feature
# GitHub env variables reference: https://docs.github.com/en/actions/learn-github-actions/environment-variables
# The important part of the experiment is the line with `curl`: it sends the job's timing to Prometheus.
run: |
START_TIME=`date '+%s'`
cd primitives/core/
time cargo +nightly build --verbose --no-default-features --features full_crypto
cd ../application-crypto
time cargo +nightly build --verbose --no-default-features --features full_crypto
END_TIME=`date '+%s'`
TOTAL_TIME=`expr $END_TIME - $START_TIME`
# please remove this line if you want to play with GHA runner.
curl -d "parity_github_job_time{project=\"$GITHUB_REPOSITORY\",job=\"$GITHUB_WORKFLOW\",runner=\"github\"} $TOTAL_TIME" -X POST http://vm-longterm.parity-build.parity.io/api/v1/import/prometheus
133 changes: 89 additions & 44 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ variables: &default-vars
ARCH: "x86_64"
CI_IMAGE: "paritytech/ci-linux:production"
# FIXME set to release
CARGO_UNLEASH_INSTALL_PARAMS: "--version 1.0.0-alpha.12"
CARGO_UNLEASH_PKG_DEF: "--skip node node-* pallet-template pallet-example pallet-example-* subkey chain-spec-builder"
CARGO_UNLEASH_INSTALL_PARAMS: "--version 1.0.0-alpha.13"
CARGO_UNLEASH_PKG_DEF: "--skip node node-* pallet-template pallet-example-* subkey chain-spec-builder"
VAULT_SERVER_URL: "https://vault.parity-mgmt-vault.parity.io"
VAULT_AUTH_PATH: "gitlab-parity-io-jwt"
VAULT_AUTH_ROLE: "cicd_gitlab_parity_${CI_PROJECT_NAME}"
SIMNET_FEATURES_PATH: "simnet_tests/tests"
PIPELINE_SCRIPTS_TAG: "v0.1"

default:
cache: {}
Expand Down Expand Up @@ -178,6 +177,21 @@ default:
| tee artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA/::trie::read::small.json'
- sccache -s

.build-linux-substrate-script: &build-linux-substrate-script
- WASM_BUILD_NO_COLOR=1 time cargo build --release --verbose
- mv ./target/release/substrate ./artifacts/substrate/.
- echo -n "Substrate version = "
- if [ "${CI_COMMIT_TAG}" ]; then
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
else
./artifacts/substrate/substrate --version |
sed -n -E 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
tee ./artifacts/substrate/VERSION;
fi
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
- cp -r .maintain/docker/substrate.Dockerfile ./artifacts/substrate/
- sccache -s

#### Vault secrets
.vault-secrets: &vault-secrets
secrets:
Expand All @@ -190,6 +204,9 @@ default:
GITHUB_PR_TOKEN:
vault: cicd/gitlab/parity/GITHUB_PR_TOKEN@kv
file: false
GITHUB_TOKEN:
vault: cicd/gitlab/parity/GITHUB_TOKEN@kv
file: false
AWS_ACCESS_KEY_ID:
vault: cicd/gitlab/$CI_PROJECT_PATH/AWS_ACCESS_KEY_ID@kv
file: false
Expand All @@ -214,8 +231,8 @@ default:
GITHUB_RELEASE_TOKEN:
vault: cicd/gitlab/$CI_PROJECT_PATH/GITHUB_RELEASE_TOKEN@kv
file: false
GITHUB_TOKEN:
vault: cicd/gitlab/$CI_PROJECT_PATH/GITHUB_TOKEN@kv
GITHUB_SSH_PRIV_KEY:
vault: cicd/gitlab/$CI_PROJECT_PATH/GITHUB_SSH_PRIV_KEY@kv
file: false
GITHUB_USER:
vault: cicd/gitlab/$CI_PROJECT_PATH/GITHUB_USER@kv
Expand Down Expand Up @@ -349,6 +366,8 @@ cargo-check-benches:
- *rust-info-script
script:
- *cargo-check-benches-script
tags:
- linux-docker-benches

node-bench-regression-guard:
# it's not belong to `build` semantically, but dag jobs can't depend on each other
Expand All @@ -370,6 +389,9 @@ node-bench-regression-guard:
CI_IMAGE: "paritytech/node-bench-regression-guard:latest"
before_script: [""]
script:
- echo "------- IMPORTANT -------"
- echo "node-bench-regression-guard depends on the results of a cargo-check-benches job"
- echo "In case of this job failure, check your pipeline's cargo-check-benches"
- 'node-bench-regression-guard --reference artifacts/benches/master-*
--compare-with artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA'

Expand Down Expand Up @@ -436,20 +458,20 @@ test-linux-stable: &test-linux
- SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --verbose --locked -- --ignored timeout
- sccache -s

#unleash-check:
#stage: test
#<<: *docker-env
#<<: *test-refs-no-trigger
#script:
#- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
#- cargo unleash de-dev-deps
unleash-check:
stage: test
<<: *docker-env
<<: *test-refs-no-trigger
script:
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
- cargo unleash de-dev-deps
# Reuse build artifacts when running checks (cuts down check time by 3x)
# TODO: Implement this optimization in cargo-unleash rather than here
#- mkdir -p target/unleash
#- export CARGO_TARGET_DIR=target/unleash
#- cargo unleash check ${CARGO_UNLEASH_PKG_DEF}
- mkdir -p target/unleash
- export CARGO_TARGET_DIR=target/unleash
- cargo unleash check ${CARGO_UNLEASH_PKG_DEF}
# FIXME: this job must not fail, or unleash-to-crates-io will publish broken stuff
#allow_failure: true
allow_failure: true

test-frame-examples-compile-to-wasm:
# into one job
Expand All @@ -463,9 +485,9 @@ test-frame-examples-compile-to-wasm:
RUSTFLAGS: "-Cdebug-assertions=y"
RUST_BACKTRACE: 1
script:
- cd frame/example-offchain-worker/
- cd frame/examples/offchain-worker/
- cargo +nightly build --target=wasm32-unknown-unknown --no-default-features
- cd ../example
- cd ../basic
- cargo +nightly build --target=wasm32-unknown-unknown --no-default-features
- sccache -s

Expand Down Expand Up @@ -516,6 +538,35 @@ test-full-crypto-feature:
- time cargo +nightly build --verbose --no-default-features --features full_crypto
- sccache -s


# Mostly same as the job above, additional instrumentation was added to push test run times
# to the time series database.
# This is temporary and will be eventually removed.
bench-test-full-crypto-feature:
stage: test
<<: *docker-env
<<: *build-refs
variables:
<<: *default-vars
RUSTFLAGS: "-Cdebug-assertions=y"
RUST_BACKTRACE: 1
before_script: [""]
script:
# disable sccache for the bench purposes
- unset RUSTC_WRAPPER
- START_TIME=`date '+%s'`
- cd primitives/core/
- time cargo +nightly build --verbose --no-default-features --features full_crypto
- cd ../application-crypto
- time cargo +nightly build --verbose --no-default-features --features full_crypto
- END_TIME=`date '+%s'`
- TOTAL_TIME=`expr $END_TIME - $START_TIME`
# send the job time measuring to the prometheus endpoint
- curl -d "parity_gitlab_job_time{project=\"$CI_PROJECT_PATH\",job=\"$CI_JOB_NAME\",runner=\"gitlab\"} $TOTAL_TIME" -X POST $VM_LONGTERM_URI/api/v1/import/prometheus
tags:
- linux-docker-compare


test-wasmer-sandbox:
stage: test
<<: *docker-env
Expand Down Expand Up @@ -555,7 +606,6 @@ cargo-check-macos:
--substrate
"$DEPENDENT_REPO"
"$GITHUB_PR_TOKEN"
- cd "$DEPENDENT_REPO" && git rev-parse --abbrev-ref HEAD

# Individual jobs are set up for each dependent project so that they can be ran in parallel.
# Arguably we could generate a job for each companion in the PR's description using Gitlab's
Expand All @@ -571,7 +621,8 @@ check-dependent-cumulus:
variables:
DEPENDENT_REPO: cumulus

build-linux-substrate: &build-binary

build-linux-substrate:
stage: build
<<: *collect-artifacts
<<: *docker-env
Expand All @@ -582,27 +633,21 @@ build-linux-substrate: &build-binary
before_script:
- mkdir -p ./artifacts/substrate/
script:
- WASM_BUILD_NO_COLOR=1 time cargo build --release --verbose
- mv ./target/release/substrate ./artifacts/substrate/.
- echo -n "Substrate version = "
- if [ "${CI_COMMIT_TAG}" ]; then
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
else
./artifacts/substrate/substrate --version |
sed -n -E 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
tee ./artifacts/substrate/VERSION;
fi
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
- *build-linux-substrate-script
- printf '\n# building node-template\n\n'
- ./.maintain/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
- cp -r .maintain/docker/substrate.Dockerfile ./artifacts/substrate/
- sccache -s


#Build binary for simnet quick tests.
build-linux-substrate-simnet:
<<: *build-binary
stage: build
<<: *collect-artifacts-short
<<: *docker-env
<<: *test-refs-no-trigger-prs-only
before_script:
- mkdir -p ./artifacts/substrate/
script:
- *build-linux-substrate-script

build-linux-subkey: &build-subkey
stage: build
Expand Down Expand Up @@ -648,8 +693,7 @@ build-rustdoc:
- ./crate-docs/
script:
# FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"`
- RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html"
time cargo +nightly doc --no-deps --workspace --all-features --verbose
- time cargo +nightly doc --workspace --all-features --verbose
- rm -f ./target/doc/.lock
- mv ./target/doc ./crate-docs
# FIXME: remove me after CI image gets nonroot
Expand Down Expand Up @@ -797,12 +841,17 @@ publish-rustdoc:
# Putting spaces at the front and back to ensure we are not matching just any substring, but the
# whole space-separated value.
- '[[ " ${RUSTDOCS_DEPLOY_REFS} " =~ " ${CI_COMMIT_REF_NAME} " ]] || exit 0'
- rm -rf /tmp/*
# setup ssh
# FIXME: add ssh to docker image
- apt-get update && apt-get install -y 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 "devops-team@parity.io"
- git config user.name "${GITHUB_USER}"
- git config remote.origin.url "https://${GITHUB_TOKEN}@github.com/paritytech/${CI_PROJECT_NAME}.git"
- git config remote.origin.url "git@github.com:/paritytech/${CI_PROJECT_NAME}.git"
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch origin gh-pages
# Install `ejs` and generate index.html based on RUSTDOCS_DEPLOY_REFS
Expand Down Expand Up @@ -860,9 +909,7 @@ unleash-to-crates-io:
<<: *vault-secrets
rules:
- if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
# FIXME: wait until https://github.com/paritytech/cargo-unleash/issues/50 is fixed, also
# remove allow_failure: true on the check job
# - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
- cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}
Expand Down Expand Up @@ -899,7 +946,6 @@ simnet-tests:
stage: deploy
image: docker.io/paritytech/simnet:${SIMNET_REF}
<<: *kubernetes-env
<<: *vault-secrets
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
Expand Down Expand Up @@ -929,7 +975,6 @@ simnet-tests-quick:
stage: deploy
image: docker.io/paritytech/simnet:${SIMNET_REF}
<<: *kubernetes-env
<<: *vault-secrets
<<: *test-refs-no-trigger-prs-only
variables:
SIMNET_FEATURES: "${SIMNET_FEATURES_PATH}/quick"
Expand Down
Loading