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

Commit 036b09e

Browse files
committed
Merge branch 'master' into ao-5535-followup
* master: (42 commits) Bump docker/build-push-action from 3 to 4 (#6651) ignore fast-unstake remote test (#6641) companion for substrate #13237 (#6626) Update benchmark's successful origin api (#6598) Companion: Remove `uncles` related code (#6615) Make zombienet tests native friendly (#6588) Storage monitor added to polkadot node (#6619) 13110 Companion: Add WeightToFee and LengthToFee Runtime API (#6536) Co reducing fast-unstake bench time and more (#6552) clear migrations included in 0.9.37 (#6630) Fix XCM transact bench (#6635) Enable `try-runtime` flag in CI (#6587) Add pov_size and code_size histograms (#6633) nix upgrade to 0.26.1 (#6622) New runners for weights and new weights (#6508) Bump parity-db (#6617) libc crate update (#6616) XCM: Add HRMP to SafeCallFilter (#6606) [ci] Change check-labels GHA (#6594) Bump lru from 0.8.1 to 0.9.0 (#6538) ...
2 parents b8de8d6 + e0e9251 commit 036b09e

380 files changed

Lines changed: 27458 additions & 15525 deletions

File tree

Some content is hidden

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

.github/pr-custom-review.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ rules:
2020
condition:
2121
include: .*
2222
# excluding files from 'Runtime files' and 'CI files' rules
23-
exclude: ^runtime/(kusama|polkadot)/src/[^/]+\.rs$|^\.gitlab-ci\.yml|^scripts/ci/.*|^\.github/.*
23+
exclude: ^runtime/(kusama|polkadot)/src/[^/]+\.rs$|^\.gitlab-ci\.yml|^(?!.*\.dic$|.*spellcheck\.toml$)scripts/ci/.*|^\.github/.*
2424
min_approvals: 2
2525
teams:
2626
- core-devs
2727

2828
- name: CI files
2929
check_type: changed_files
3030
condition:
31-
include: ^\.gitlab-ci\.yml|^scripts/ci/.*|^\.github/.*
31+
# dictionary files are excluded
32+
include: ^\.gitlab-ci\.yml|^(?!.*\.dic$|.*spellcheck\.toml$)scripts/ci/.*|^\.github/.*
3233
min_approvals: 2
3334
teams:
3435
- ci

.github/workflows/auto-label-prs.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Check D labels
2+
3+
on:
4+
pull_request:
5+
types: [labeled, opened, synchronize, unlabeled]
6+
paths:
7+
- runtime/polkadot/**
8+
- runtime/kusama/**
9+
- runtime/common/**
10+
- primitives/src/**
11+
12+
jobs:
13+
check-labels:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Pull image
17+
env:
18+
IMAGE: paritytech/ruled_labels:0.4.0
19+
run: docker pull $IMAGE
20+
21+
- name: Check labels
22+
env:
23+
IMAGE: paritytech/ruled_labels:0.4.0
24+
MOUNT: /work
25+
GITHUB_PR: ${{ github.event.pull_request.number }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
API_BASE: https://api.github.com/repos
28+
REPO: ${{ github.repository }}
29+
RULES_PATH: labels/ruled_labels
30+
CHECK_SPECS: specs_polkadot.yaml
31+
run: |
32+
echo "REPO: ${REPO}"
33+
echo "GITHUB_PR: ${GITHUB_PR}"
34+
# Clone repo with labels specs
35+
git clone https://github.com/paritytech/labels
36+
# Fetch the labels for the PR under test
37+
labels=$( curl -H "Authorization: token ${GITHUB_TOKEN}" -s "$API_BASE/${REPO}/pulls/${GITHUB_PR}" | jq '.labels | .[] | .name' | tr "\n" ",")
38+
39+
if [ -z "${labels}" ]; then
40+
docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --tags audit --no-label
41+
fi
42+
43+
labels_args=${labels: :-1}
44+
printf "Checking labels: %s\n" "${labels_args}"
45+
46+
# Prevent the shell from splitting labels with spaces
47+
IFS=","
48+
49+
# --dev is more useful to debug mode to debug
50+
docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --labels ${labels_args} --dev --tags audit

.github/workflows/check-labels.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,38 @@ jobs:
88
check-labels:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout sources
12-
uses: actions/checkout@v3
13-
with:
14-
fetch-depth: 0
15-
ref: ${{ github.event.pull_request.head.ref }}
16-
repository: ${{ github.event.pull_request.head.repo.full_name }}
11+
- name: Pull image
12+
env:
13+
IMAGE: paritytech/ruled_labels:0.4.0
14+
run: docker pull $IMAGE
15+
1716
- name: Check labels
18-
run: bash ${{ github.workspace }}/scripts/ci/github/check_labels.sh
1917
env:
18+
IMAGE: paritytech/ruled_labels:0.4.0
19+
MOUNT: /work
2020
GITHUB_PR: ${{ github.event.pull_request.number }}
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
23-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
22+
API_BASE: https://api.github.com/repos
23+
REPO: ${{ github.repository }}
24+
RULES_PATH: labels/ruled_labels
25+
CHECK_SPECS: specs_polkadot.yaml
26+
run: |
27+
echo "REPO: ${REPO}"
28+
echo "GITHUB_PR: ${GITHUB_PR}"
29+
# Clone repo with labels specs
30+
git clone https://github.com/paritytech/labels
31+
# Fetch the labels for the PR under test
32+
labels=$( curl -H "Authorization: token ${GITHUB_TOKEN}" -s "$API_BASE/${REPO}/pulls/${GITHUB_PR}" | jq '.labels | .[] | .name' | tr "\n" ",")
33+
34+
if [ -z "${labels}" ]; then
35+
docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --tags PR --no-label
36+
fi
37+
38+
labels_args=${labels: :-1}
39+
printf "Checking labels: %s\n" "${labels_args}"
40+
41+
# Prevent the shell from splitting labels with spaces
42+
IFS=","
43+
44+
# --dev is more useful to debug mode to debug
45+
docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --labels ${labels_args} --dev --tags PR

.github/workflows/release-50_publish-docker-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
password: ${{ secrets.DOCKERHUB_TOKEN }}
2828
- name: Build and push
2929
id: docker_build
30-
uses: docker/build-push-action@v3
30+
uses: docker/build-push-action@v4
3131
with:
3232
push: true
3333
file: scripts/ci/dockerfiles/polkadot_injected_release.Dockerfile

.github/workflows/release-51_publish-docker-manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
password: ${{ secrets.DOCKERHUB_TOKEN }}
3535
- name: Build and push
3636
id: docker_build
37-
uses: docker/build-push-action@v3
37+
uses: docker/build-push-action@v4
3838
with:
3939
push: true
4040
file: scripts/ci/dockerfiles/polkadot_injected_release.Dockerfile

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ runtime/wasm/target/
88
.vscode
99
polkadot.*
1010
!polkadot.service
11-
!.rpm/*
1211
.DS_Store
1312
.env

0 commit comments

Comments
 (0)