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

Commit 013e3bf

Browse files
Merge branch 'master' into master
2 parents 5f01797 + 60b945c commit 013e3bf

File tree

416 files changed

+21745
-7991
lines changed

Some content is hidden

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

416 files changed

+21745
-7991
lines changed

.github/allowed-actions.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/pr-custom-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ jobs:
3737
if: github.event.pull_request.draft == true
3838
run: exit 1
3939
- name: pr-custom-review
40-
uses: paritytech/pr-custom-review@v2
40+
uses: paritytech/pr-custom-review@action-v3
4141
with:
42-
token: ${{ secrets.PRCR_TOKEN }}
42+
checks-reviews-api: http://pcr.parity-prod.parity.io/api/v1/check_reviews

.gitlab-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ stages:
3434
- build
3535
- publish
3636
- deploy
37+
- notify
3738

3839
workflow:
3940
rules:
@@ -47,6 +48,8 @@ variables: &default-vars
4748
DOCKER_OS: "debian:stretch"
4849
ARCH: "x86_64"
4950
CI_IMAGE: "paritytech/ci-linux:production"
51+
RUSTY_CACHIER_SINGLE_BRANCH: master
52+
RUSTY_CACHIER_DONT_OPERATE_ON_MAIN_BRANCH: "true"
5053

5154
default:
5255
retry:
@@ -90,9 +93,23 @@ default:
9093
image: "${CI_IMAGE}"
9194
before_script:
9295
- !reference [.rust-info-script, script]
96+
- !reference [.rusty-cachier, before_script]
97+
after_script:
98+
- !reference [.rusty-cachier, after_script]
9399
tags:
94100
- linux-docker
95101

102+
# rusty-cachier's hidden job. Parts of this job are used to instrument the pipeline's other real jobs with rusty-cachier
103+
# Description of the commands is available here - https://gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client#description
104+
.rusty-cachier:
105+
before_script:
106+
- curl -s https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client/-/raw/release/util/install.sh | bash
107+
- rusty-cachier environment check --gracefully
108+
- $(rusty-cachier environment inject)
109+
- rusty-cachier project mtime
110+
after_script:
111+
- env RUSTY_CACHIER_SUPRESS_OUTPUT=true rusty-cachier snapshot destroy
112+
96113
.test-refs:
97114
rules:
98115
- if: $CI_PIPELINE_SOURCE == "web"
@@ -202,6 +219,16 @@ deploy-prometheus-alerting-rules:
202219
- .gitlab-ci.yml
203220
- ./scripts/ci/monitoring/**/*
204221

222+
#### stage: notify
223+
224+
# This job notifies rusty-cachier about the latest commit with the cache.
225+
# This info is later used for the cache distribution and an overlay creation.
226+
rusty-cachier-notify:
227+
stage: notify
228+
extends: .docker-env
229+
script:
230+
- rusty-cachier cache notify
231+
205232
#### stage: .post
206233

207234
# This job cancels the whole pipeline if any of provided jobs fail.

.maintain/frame-weight-template.hbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//!
2020
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
2121
//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}`
22+
//! HOSTNAME: `{{hostname}}`, CPU: `{{cpuname}}`
2223
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
2324

2425
// Executed Command:
@@ -55,6 +56,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
5556
{{#each benchmark.comments as |comment|}}
5657
// {{comment}}
5758
{{/each}}
59+
{{#each benchmark.component_ranges as |range|}}
60+
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
61+
{{/each}}
5862
fn {{benchmark.name~}}
5963
(
6064
{{~#each benchmark.components as |c| ~}}
@@ -87,6 +91,9 @@ impl WeightInfo for () {
8791
{{#each benchmark.comments as |comment|}}
8892
// {{comment}}
8993
{{/each}}
94+
{{#each benchmark.component_ranges as |range|}}
95+
/// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
96+
{{/each}}
9097
fn {{benchmark.name~}}
9198
(
9299
{{~#each benchmark.components as |c| ~}}

0 commit comments

Comments
 (0)