Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 15f2b9b

Browse files
committed
Merge remote-tracking branch 'origin/master' into bkchr-fix-up-runtime-hold-reason
2 parents 564282e + dca6ebe commit 15f2b9b

File tree

836 files changed

+38806
-26508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

836 files changed

+38806
-26508
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ rustflags = [
2929
"-Aclippy::needless_option_as_deref", # false positives
3030
"-Aclippy::derivable_impls", # false positives
3131
"-Aclippy::stable_sort_primitive", # prefer stable sort
32+
"-Aclippy::extra-unused-type-parameters" # stylistic
3233
]

.config/nextest.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dir = "target/nextest"
1616
# * retries = 3
1717
# * retries = { backoff = "fixed", count = 2, delay = "1s" }
1818
# * retries = { backoff = "exponential", count = 10, delay = "1s", jitter = true, max-delay = "10s" }
19-
retries = 0
19+
retries = 5
2020

2121
# The number of threads to run tests with. Supported values are either an integer or
2222
# the string "num-cpus". Can be overridden through the `--test-threads` option.
@@ -89,12 +89,12 @@ leak-timeout = "100ms"
8989
# Output a JUnit report into the given file inside 'store.dir/<profile-name>'.
9090
# If unspecified, JUnit is not written out.
9191

92-
# path = "junit.xml"
92+
path = "junit.xml"
9393

9494
# The name of the top-level "report" element in JUnit report. If aggregating
9595
# reports across different test runs, it may be useful to provide separate names
9696
# for each report.
97-
report-name = "nextest-run"
97+
report-name = "substrate"
9898

9999
# Whether standard output and standard error for passing tests should be stored in the JUnit report.
100100
# Output is stored in the <system-out> and <system-err> elements of the <testcase> element.

.github/pr-custom-review.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,24 @@ rules:
88
check_type: changed_files
99
condition:
1010
include: .*
11-
# excluding files from 'CI team' rules
12-
exclude: ^\.gitlab-ci\.yml|^scripts/ci/.*|^\.github/.*|^\.config/nextest.toml
11+
# excluding files from 'CI team' and 'FRAME coders' rules
12+
exclude: ^\.gitlab-ci\.yml|^scripts/ci/.*|^\.github/.*|^\.config/nextest.toml|^frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))
1313
min_approvals: 2
1414
teams:
1515
- core-devs
1616

17+
- name: FRAME coders
18+
check_type: changed_files
19+
condition:
20+
include: ^frame/(?!.*(nfts/.*|uniques/.*|babe/.*|grandpa/.*|beefy|merkle-mountain-range/.*|contracts/.*|election|nomination-pools/.*|staking/.*|aura/.*))
21+
all:
22+
- min_approvals: 2
23+
teams:
24+
- core-devs
25+
- min_approvals: 1
26+
teams:
27+
- frame-coders
28+
1729
- name: CI team
1830
check_type: changed_files
1931
condition:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ rls*.log
2424
.cargo-remote.toml
2525
*.bin
2626
*.iml
27-
scripts/ci/node-template-release/Cargo.lock
2827
bin/node-template/Cargo.lock
2928
substrate.code-workspace
29+
.direnv/
30+
/.envrc

.gitlab-ci.yml

Lines changed: 33 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ stages:
3333
- test
3434
- build
3535
- publish
36+
- notify
3637
- zombienet
3738
- deploy
38-
- notify
3939

4040
workflow:
4141
rules:
@@ -46,41 +46,32 @@ variables:
4646
GIT_STRATEGY: fetch
4747
GIT_DEPTH: 100
4848
CARGO_INCREMENTAL: 0
49-
DOCKER_OS: "debian:stretch"
49+
DOCKER_OS: "debian:bullseye"
5050
ARCH: "x86_64"
5151
CI_IMAGE: "paritytech/ci-linux:production"
52-
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.27"
52+
BUILDAH_IMAGE: "quay.io/buildah/stable:v1.29"
53+
BUILDAH_COMMAND: "buildah --storage-driver overlay2"
5354
RELENG_SCRIPTS_BRANCH: "master"
55+
5456
RUSTY_CACHIER_SINGLE_BRANCH: master
5557
RUSTY_CACHIER_DONT_OPERATE_ON_MAIN_BRANCH: "true"
58+
RUSTY_CACHIER_MINIO_ALIAS: rustycachier_gcs
59+
RUSTY_CACHIER_MINIO_BUCKET: parity-build-rusty-cachier
5660
RUSTY_CACHIER_COMPRESSION_METHOD: zstd
61+
5762
NEXTEST_FAILURE_OUTPUT: immediate-final
5863
NEXTEST_SUCCESS_OUTPUT: final
59-
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.43"
64+
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.52"
6065

61-
.shared-default: &shared-default
66+
default:
6267
retry:
6368
max: 2
6469
when:
6570
- runner_system_failure
6671
- unknown_failure
6772
- api_failure
6873
cache: {}
69-
70-
.default-pipeline-definitions:
71-
default:
72-
<<: *shared-default
73-
interruptible: true
74-
75-
.crate-publishing-pipeline-definitions:
76-
default:
77-
<<: *shared-default
78-
# The crate-publishing pipeline defaults to `interruptible: false` so that we'll be able to
79-
# reach and run the publishing jobs despite the "Auto-cancel redundant pipelines" CI setting.
80-
# The setting is relevant because the crate-publishing pipeline runs on `master`, thus future
81-
# pipelines on `master` (e.g. created for new commits or other schedules) might unintendedly
82-
# cancel the publishing jobs or its dependencies before we get to actually publish the crates.
83-
interruptible: false
74+
interruptible: true
8475

8576
.collect-artifacts:
8677
artifacts:
@@ -154,7 +145,7 @@ variables:
154145
after_script:
155146
- !reference [.rusty-cachier, after_script]
156147
tags:
157-
- linux-docker
148+
- linux-docker-vm-c2
158149

159150
# rusty-cachier's hidden job. Parts of this job are used to instrument the pipeline's other real jobs with rusty-cachier
160151
# Description of the commands is available here - https://gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client#description
@@ -179,7 +170,7 @@ variables:
179170
# exclude cargo-check-benches from such runs
180171
.test-refs-check-benches:
181172
rules:
182-
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "parent_pipeline" && $CI_IMAGE =~ /staging$/
173+
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "pipeline" && $CI_IMAGE =~ /staging$/
183174
when: never
184175
- if: $CI_PIPELINE_SOURCE == "web"
185176
- if: $CI_PIPELINE_SOURCE == "schedule"
@@ -229,11 +220,6 @@ variables:
229220
.zombienet-refs:
230221
extends: .build-refs
231222

232-
.nightly-pipeline:
233-
rules:
234-
# this job runs only on nightly pipeline with the mentioned variable, against `master` branch
235-
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "nightly"
236-
237223
.crates-publishing-variables:
238224
variables:
239225
CRATESIO_CRATES_OWNER: parity-crate-owner
@@ -259,23 +245,12 @@ variables:
259245
- artifacts/
260246
variables:
261247
SPUB_TMP: artifacts
248+
# disable timestamping for the crate publishing jobs, they leave stray child processes behind
249+
# which don't interact well with the timestamping script
250+
CI_DISABLE_TIMESTAMP: 1
262251

263252
#### stage: .pre
264253

265-
skip-if-draft:
266-
extends: .kubernetes-env
267-
variables:
268-
CI_IMAGE: "paritytech/tools:latest"
269-
stage: .pre
270-
rules:
271-
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
272-
script:
273-
- echo "Commit message is ${CI_COMMIT_MESSAGE}"
274-
- echo "Ref is ${CI_COMMIT_REF_NAME}"
275-
- echo "pipeline source is ${CI_PIPELINE_SOURCE}"
276-
- ./scripts/ci/gitlab/skip_if_draft.sh
277-
allow_failure: true
278-
279254
check-crates-publishing-pipeline:
280255
stage: .pre
281256
extends:
@@ -288,6 +263,23 @@ check-crates-publishing-pipeline:
288263
https://github.com/paritytech/releng-scripts.git
289264
- ONLY_CHECK_PIPELINE=true ./releng-scripts/publish-crates
290265

266+
# By default our pipelines are interruptible, but some special pipelines shouldn't be interrupted:
267+
# * multi-project pipelines such as the ones triggered by the scripts repo
268+
# * the scheduled automatic-crate-publishing pipeline
269+
#
270+
# In those cases, we add an uninterruptible .pre job; once that one has started,
271+
# the entire pipeline becomes uninterruptible
272+
uninterruptible-pipeline:
273+
extends: .kubernetes-env
274+
variables:
275+
CI_IMAGE: "paritytech/tools:latest"
276+
stage: .pre
277+
interruptible: false
278+
rules:
279+
- if: $CI_PIPELINE_SOURCE == "pipeline"
280+
- if: $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "automatic-crate-publishing"
281+
script: "true"
282+
291283
include:
292284
# check jobs
293285
- scripts/ci/gitlab/pipeline/check.yml
@@ -308,13 +300,6 @@ include:
308300
# pipeline is made uninterruptible to ensure that test jobs also get a chance to run to
309301
# completion, because the publishing jobs depends on them AS INTENDED: crates should not be
310302
# published before their source code is checked.
311-
- local: scripts/ci/gitlab/crate-publishing-pipeline.yml
312-
rules:
313-
- if: $PIPELINE == "automatic-crate-publishing"
314-
# For normal pipelines: run it with defaults + `interruptible: true`
315-
- local: scripts/ci/gitlab/default-pipeline.yml
316-
rules:
317-
- if: $PIPELINE != "automatic-crate-publishing"
318303
- project: parity/infrastructure/ci_cd/shared
319304
ref: v0.2
320305
file: /common/timestamp.yml

.maintain/frame-weight-template.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#![cfg_attr(rustfmt, rustfmt_skip)]
1616
#![allow(unused_parens)]
1717
#![allow(unused_imports)]
18+
#![allow(missing_docs)]
1819

1920
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
2021
use core::marker::PhantomData;

0 commit comments

Comments
 (0)