Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
48e0b41
dont increase the allocated size of vec (#10701)
shawntabrizi Jan 20, 2022
6bbc688
Fix typo (#10714)
Jan 21, 2022
9247e15
wasm-builder: Improve workspace handling (#10700)
bkchr Jan 21, 2022
227a94f
Add `MaxEncodeLen` to `implement_per_thing!` (#10715)
ggwpez Jan 21, 2022
af5e675
Script for publishing rustdocs at gh-pages (#10604)
Jan 21, 2022
94dfe15
Remove some last `AccountId32::default()` leftovers (#10655)
bkchr Jan 21, 2022
32b7189
wasm-builder: Enable all features when running `cargo metadata` (#10716)
bkchr Jan 22, 2022
b57c08b
Fix #10688 being misimplemented (#10721)
tomaka Jan 24, 2022
48c05c0
Changing the node package to be under @substrate namespace (#10722)
Jan 24, 2022
542a858
Optimized weights (#10692)
ggwpez Jan 24, 2022
b0c1475
Proposal: Defensive trait for infallible frame operations (#10626)
kianenigma Jan 24, 2022
511e8c8
use clap3 instead of structopt (#10632)
koushiro Jan 24, 2022
2881900
Pre-Charge max size when contracts access storage (#10691)
athei Jan 24, 2022
31d90c2
chore: add example for balance AccountStore (#10361)
ECJ222 Jan 25, 2022
9e9e4d3
Use proper bounded vector type for nominations (#10601)
kianenigma Jan 25, 2022
f2f9970
use `thiserror` instead of `derive_more` for error handling (#10696)
koushiro Jan 25, 2022
e4f9551
basic-authorship: Add new metrics for block size limit and weight lim…
bkchr Jan 25, 2022
293fbeb
add CheckNonZeroSender in node-template-runtime (#10735)
apopiak Jan 26, 2022
b62e618
[ci] pipeline chores (#10734)
alvicsam Jan 26, 2022
71baca7
Update Node Template (#10710)
nuke-web3 Jan 26, 2022
da534d7
better way to resolve `Phase::Emergency` via governance (#10663)
kianenigma Jan 27, 2022
3c1d5b9
Add stale branches heads to finality notifications (#10639)
davxy Jan 27, 2022
8c39925
remote ext: make it possible to use an existing ws connection (#10737)
niklasad1 Jan 28, 2022
1307647
Add attributes and documentation to fork_id (#10746)
tomaka Jan 28, 2022
fb4f3ec
Fix lazy batch contract removal (#10728)
pmikolajczyk41 Jan 28, 2022
59857f1
Bump `wasm-instrument` 0.1.0 -> 0.1.1 (#10749)
athei Jan 31, 2022
b07765f
pallet-scheduler: Fix migrations V2 to V3 (#10757)
bkchr Jan 31, 2022
4b48e8e
Add production profile to `substrate-wasm-builder` (#10747)
athei Jan 31, 2022
2c45496
Bump `strum` from 0.22 -> 0.23 (#10758)
athei Jan 31, 2022
7daddf6
derive `MaxEncodedLen` for `MultiSignature` (#10765)
hussein-aitlahcen Feb 1, 2022
7092504
Add `MaxEncodedLen` to `implement_fixed!` (#10768)
ggwpez Feb 1, 2022
6611740
Release `pallet-contracts-primitives` (#10772)
athei Feb 1, 2022
5948416
Enable download of future forks (#10739)
arkpar Feb 2, 2022
529c2fd
wasm-builder: Fall back to `release` profile for unknown profiles (#1…
athei Feb 2, 2022
e570d2e
Substrate alerts rules update (#10642)
PierreBesson Feb 2, 2022
7c63420
bench-cli: Support `JSON` output (#10771)
ggwpez Feb 2, 2022
d161d54
Introduce ModuleError struct (#10776)
shawntabrizi Feb 3, 2022
59649dd
Bump sp-keyring (#10790)
ascjones Feb 3, 2022
4f672d4
Make `offences` benchmark runnable (#10782)
ggwpez Feb 4, 2022
929cf10
Make some UI test expectations crisper (#10791)
KiChjang Feb 4, 2022
7cb0e76
contracts: `is_contract(address)` and `caller_is_origin()` are added …
agryaznov Feb 4, 2022
36c38fb
maybe_total_supply in pallet-assets (#10799)
girazoki Feb 5, 2022
7e643ce
Referenda and Conviction Voting pallets (#10195)
gavofyork Feb 6, 2022
dc4cf6c
More efficient WASM instance memory decommit on macos (#10801)
arkpar Feb 7, 2022
0e9b6e4
make inner field of IdentityFields pub (#10773)
nanocryk Feb 7, 2022
57bf92e
Corrected description of clear_attribute extrinsic (#10729)
SupremaLex Feb 7, 2022
c8bef76
sp-maybe-compressed-blob: reduce boilerplate code (#10814)
koushiro Feb 8, 2022
aa7a756
`seal_delegate_call` api function (support for library contracts) (#…
yarikbratashchuk Feb 8, 2022
1532b72
Add Storage Info to Various Pallets (#10810)
shawntabrizi Feb 8, 2022
8c4002f
fixed regression in inline docs (#10819)
takahser Feb 8, 2022
9b5b572
try-runtime-cli: Add to docs (#10822)
emostov Feb 8, 2022
4eb7758
Bump serde from 1.0.132 to 1.0.136 (#10816)
dependabot[bot] Feb 8, 2022
8a1b870
--dev implies --tmp (#10828)
shawntabrizi Feb 9, 2022
e9d79da
Add a new host function for reporting fatal errors; make WASM backtra…
koute Feb 9, 2022
3aecef7
Add db params for export-state CLI command (#10830)
arkpar Feb 9, 2022
8b2f537
Allow `SetBalance` to handle error when trying to kill acount with re…
shawntabrizi Feb 10, 2022
9a6d706
UncheckedExtrinsic: Harden decode and clarify `EXTRINSIC_FORMAT_VERSI…
bkchr Feb 10, 2022
27b8806
pallet-staking: Add extrinsic `force_apply_min_commission` (#10786)
emostov Feb 10, 2022
22d40c7
Tidy Democracy (#10867)
shawntabrizi Feb 16, 2022
2110bd6
Merge commit '22d40c761a985482f93bbbea5ba4199bdba74f8e' of https://gi…
Sep 29, 2022
9401db9
set spec version to 300
Sep 29, 2022
5315bd8
fixed compilation
Sep 30, 2022
9553d3a
fixed compilation 2
Sep 30, 2022
f882774
removed 2 pallets
Oct 1, 2022
057cad4
compressed should be used
Oct 5, 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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
- name: Copy wasm artifact from the image
run: |
container_id=$(docker create ${{ env.IMAGE_ID }})
artifact_name=node_runtime.compact.${GITHUB_SHA:0:7}.wasm
artifact_name=node_runtime.compact.compressed.${GITHUB_SHA:0:7}.wasm
echo ARTIFACT_NAME=$artifact_name >> $GITHUB_ENV
docker cp $container_id:/home/cere/node-runtime-artifacts/node_runtime.compact.wasm ./$artifact_name
docker cp $container_id:/home/cere/node-runtime-artifacts/node_runtime.compact.compressed.wasm ./$artifact_name
- name: Upload wasm artifact
uses: actions/upload-artifact@v3
with:
Expand Down
58 changes: 6 additions & 52 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,6 @@ default:
AWS_SECRET_ACCESS_KEY:
vault: cicd/gitlab/$CI_PROJECT_PATH/AWS_SECRET_ACCESS_KEY@kv
file: false
AWX_TOKEN:
vault: cicd/gitlab/$CI_PROJECT_PATH/AWX_TOKEN@kv
file: false
CRATES_TOKEN:
vault: cicd/gitlab/$CI_PROJECT_PATH/CRATES_TOKEN@kv
file: false
DOCKER_CHAOS_TOKEN:
vault: cicd/gitlab/$CI_PROJECT_PATH/DOCKER_CHAOS_TOKEN@kv
file: false
DOCKER_CHAOS_USER:
vault: cicd/gitlab/$CI_PROJECT_PATH/DOCKER_CHAOS_USER@kv
file: false
GITHUB_EMAIL:
vault: cicd/gitlab/$CI_PROJECT_PATH/GITHUB_EMAIL@kv
file: false
Expand All @@ -239,22 +227,13 @@ default:
MATRIX_ROOM_ID:
vault: cicd/gitlab/$CI_PROJECT_PATH/MATRIX_ROOM_ID@kv
file: false
PIPELINE_TOKEN:
vault: cicd/gitlab/$CI_PROJECT_PATH/PIPELINE_TOKEN@kv
file: false
VALIDATOR_KEYS:
vault: cicd/gitlab/$CI_PROJECT_PATH/VALIDATOR_KEYS@kv
file: false
VALIDATOR_KEYS_CHAOS:
vault: cicd/gitlab/$CI_PROJECT_PATH/VALIDATOR_KEYS_CHAOS@kv
file: false


#### stage: .pre

skip-if-draft:
image: paritytech/tools:latest
<<: *kubernetes-env
<<: *vault-secrets
stage: .pre
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
Expand All @@ -270,7 +249,6 @@ check-runtime:
stage: check
image: paritytech/tools:latest
<<: *kubernetes-env
<<: *vault-secrets
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
variables:
Expand All @@ -285,7 +263,6 @@ check-signed-tag:
stage: check
image: paritytech/tools:latest
<<: *kubernetes-env
<<: *vault-secrets
rules:
- if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
Expand Down Expand Up @@ -548,7 +525,6 @@ cargo-check-macos:
stage: build
<<: *docker-env
<<: *test-refs-no-trigger-prs-only
<<: *vault-secrets
script:
- git clone
--depth=1
Expand Down Expand Up @@ -747,13 +723,7 @@ publish-rustdoc:
image: node:16
variables:
GIT_DEPTH: 100
# --- Following variables are for rustdocs deployment ---
# Space separated values of branches and tags to generate rustdocs
RUSTDOCS_DEPLOY_REFS: "master monthly-2021-09+1 monthly-2021-08 v3.0.0"
# Location of the docs index template
INDEX_TPL: ".maintain/docs-index-tpl.ejs"
# Where the `/latest` symbolic link links to. One of the $RUSTDOCS_DEPLOY_REFS value.
LATEST: "monthly-2021-09+1"
RUSTDOCS_DEPLOY_REFS: "master"
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
Expand Down Expand Up @@ -783,34 +753,18 @@ publish-rustdoc:
- 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
# Install `ejs` and generate index.html based on RUSTDOCS_DEPLOY_REFS
- yarn global add ejs
- 'ejs ${INDEX_TPL} -i "{\"deploy_refs\":\"${RUSTDOCS_DEPLOY_REFS}\",\"repo_name\":\"${CI_PROJECT_NAME}\",\"latest\":\"${LATEST}\"}" > /tmp/index.html'
# Save README and docs
- cp -r ./crate-docs/ /tmp/doc/
- cp README.md /tmp/doc/
- git checkout gh-pages
# Remove directories no longer necessary, as specified in $RUSTDOCS_DEPLOY_REFS.
# Also ensure $RUSTDOCS_DEPLOY_REFS is not just empty spaces.
# Even though this block spans multiple lines, they are concatenated to run as a single line
# command, so note for the semi-colons in the inner-most code block.
- if [[ ! -z ${RUSTDOCS_DEPLOY_REFS// } ]]; then
for FILE in *; do
if [[ ! " $RUSTDOCS_DEPLOY_REFS " =~ " $FILE " ]]; then
echo "Removing ${FILE}...";
rm -rf $FILE;
fi
done
fi
# Move the index page & built back
- mv -f /tmp/index.html .
# Install `index-tpl-crud` and generate index.html based on RUSTDOCS_DEPLOY_REFS
- which index-tpl-crud &> /dev/null || yarn global add @substrate/index-tpl-crud
- index-tpl-crud upsert ./index.html ${CI_COMMIT_REF_NAME}
# Ensure the destination dir doesn't exist.
- rm -rf ${CI_COMMIT_REF_NAME}
- mv -f /tmp/doc ${CI_COMMIT_REF_NAME}
# Add the symlink
- '[[ -e "$LATEST" ]] && ln -sf "${LATEST}" latest'
# Upload files
- git add --all --force
- git add --all
# `git commit` has an exit code of > 0 if there is nothing to commit.
# This causes GitLab to exit immediately and marks this job failed.
# We don't want to mark the entire job failed if there's nothing to
Expand Down
144 changes: 72 additions & 72 deletions .maintain/monitoring/alerting-rules/alerting-rule-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,39 @@ evaluation_interval: 1m
tests:
- interval: 1m
input_series:
- series: 'polkadot_sub_libp2p_peers_count{
job="polkadot",
pod="polkadot-abcdef01234-abcdef",
instance="polkadot-abcdef01234-abcdef",
- series: 'substrate_sub_libp2p_peers_count{
job="substrate",
pod="substrate-abcdef01234-abcdef",
instance="substrate-abcdef01234-abcdef",
}'
values: '3 2+0x4 1+0x9' # 3 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1

- series: 'polkadot_sub_txpool_validations_scheduled{
job="polkadot",
pod="polkadot-abcdef01234-abcdef",
instance="polkadot-abcdef01234-abcdef",
- series: 'substrate_sub_txpool_validations_scheduled{
job="substrate",
pod="substrate-abcdef01234-abcdef",
instance="substrate-abcdef01234-abcdef",
}'
values: '11+1x10 22+2x30 10043x5'

- series: 'polkadot_sub_txpool_validations_finished{
job="polkadot",
pod="polkadot-abcdef01234-abcdef",
instance="polkadot-abcdef01234-abcdef",
- series: 'substrate_sub_txpool_validations_finished{
job="substrate",
pod="substrate-abcdef01234-abcdef",
instance="substrate-abcdef01234-abcdef",
}'
values: '0+1x42 42x5'

- series: 'polkadot_block_height{
status="best", job="polkadot",
pod="polkadot-abcdef01234-abcdef",
instance="polkadot-abcdef01234-abcdef",
- series: 'substrate_block_height{
status="best", job="substrate",
pod="substrate-abcdef01234-abcdef",
instance="substrate-abcdef01234-abcdef",
}'
values: '1+1x3 4+0x13' # 1 2 3 4 4 4 4 4 4 4 4 4 ...

- series: 'polkadot_block_height{
- series: 'substrate_block_height{
status="finalized",
job="polkadot",
pod="polkadot-abcdef01234-abcdef",
instance="polkadot-abcdef01234-abcdef",
job="substrate",
pod="substrate-abcdef01234-abcdef",
instance="substrate-abcdef01234-abcdef",
}'
values: '1+1x3 4+0x13' # 1 2 3 4 4 4 4 4 4 4 4 4 ...

Expand All @@ -56,37 +56,37 @@ tests:
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
status: best
exp_annotations:
message: "Best block on instance
polkadot-abcdef01234-abcdef increases by less than 1 per
substrate-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."

- eval_time: 14m
alertname: BlockProductionSlow
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
status: best
exp_annotations:
message: "Best block on instance
polkadot-abcdef01234-abcdef increases by less than 1 per
substrate-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."
- exp_labels:
severity: critical
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
status: best
exp_annotations:
message: "Best block on instance
polkadot-abcdef01234-abcdef increases by less than 1 per
substrate-abcdef01234-abcdef increases by less than 1 per
minute for more than 10 minutes."

######################################################################
Expand All @@ -101,37 +101,37 @@ tests:
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
status: finalized
exp_annotations:
message: "Finalized block on instance
polkadot-abcdef01234-abcdef increases by less than 1 per
substrate-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."

- eval_time: 14m
alertname: BlockFinalizationSlow
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
status: finalized
exp_annotations:
message: "Finalized block on instance
polkadot-abcdef01234-abcdef increases by less than 1 per
substrate-abcdef01234-abcdef increases by less than 1 per
minute for more than 3 minutes."
- exp_labels:
severity: critical
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
status: finalized
exp_annotations:
message: "Finalized block on instance
polkadot-abcdef01234-abcdef increases by less than 1 per
substrate-abcdef01234-abcdef increases by less than 1 per
minute for more than 10 minutes."

######################################################################
Expand All @@ -152,12 +152,12 @@ tests:
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
exp_annotations:
message: "The transaction pool size on node
polkadot-abcdef01234-abcdef has been monotonically
substrate-abcdef01234-abcdef has been monotonically
increasing for more than 10 minutes."
- eval_time: 43m
alertname: TransactionQueueSizeIncreasing
Expand All @@ -167,21 +167,21 @@ tests:
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
exp_annotations:
message: "The transaction pool size on node
polkadot-abcdef01234-abcdef has been monotonically
substrate-abcdef01234-abcdef has been monotonically
increasing for more than 10 minutes."
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
exp_annotations:
message: "The transaction pool size on node
polkadot-abcdef01234-abcdef has been monotonically
substrate-abcdef01234-abcdef has been monotonically
increasing for more than 30 minutes."
- eval_time: 49m
alertname: TransactionQueueSizeHigh
Expand All @@ -191,12 +191,12 @@ tests:
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
exp_annotations:
message: "The transaction pool size on node
polkadot-abcdef01234-abcdef has been above 10_000 for more
substrate-abcdef01234-abcdef has been above 10_000 for more
than 5 minutes."

######################################################################
Expand All @@ -211,29 +211,29 @@ tests:
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
exp_annotations:
message: "The node polkadot-abcdef01234-abcdef has less
message: "The node substrate-abcdef01234-abcdef has less
than 3 peers for more than 3 minutes"

- eval_time: 16m # Values: 3 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1
alertname: NumberOfPeersLow
exp_alerts:
- exp_labels:
severity: warning
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
exp_annotations:
message: "The node polkadot-abcdef01234-abcdef has less
message: "The node substrate-abcdef01234-abcdef has less
than 3 peers for more than 3 minutes"
- exp_labels:
severity: critical
pod: polkadot-abcdef01234-abcdef
instance: polkadot-abcdef01234-abcdef
job: polkadot
pod: substrate-abcdef01234-abcdef
instance: substrate-abcdef01234-abcdef
job: substrate
exp_annotations:
message: "The node polkadot-abcdef01234-abcdef has less
message: "The node substrate-abcdef01234-abcdef has less
than 3 peers for more than 15 minutes"
Loading