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

Commit e957800

Browse files
committed
Merge remote-tracking branch 'origin/master' into HEAD
2 parents d2404b0 + 7c63267 commit e957800

File tree

150 files changed

+12929
-1254
lines changed

Some content is hidden

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

150 files changed

+12929
-1254
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ rls*.log
1919
*.rej
2020
**/wip/*.stderr
2121
.local
22+
**/hfuzz_target/
23+
**/hfuzz_workspace/

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ variables:
3939
ARCH: "x86_64"
4040
# FIXME set to release
4141
CARGO_UNLEASH_INSTALL_PARAMS: "--version 1.0.0-alpha.10"
42-
CARGO_UNLEASH_PKG_DEF: "--skip node node-* pallet-template pallet-example pallet-example-* subkey chain-spec-builder"
42+
CARGO_UNLEASH_PKG_DEF: "--skip node node-* pallet-template pallet-example pallet-example-* subkey chain-spec-builder sp-arithmetic-fuzzer"
4343

4444

4545
.collect-artifacts: &collect-artifacts

.maintain/gitlab/check_polkadot.sh

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
# check if a pr is compatible with polkadot companion pr or master if not
44
# available
55
#
6-
# mark companion pr in the body of the polkadot pr like
6+
# to override one that was just mentioned mark companion pr in the body of the
7+
# polkadot pr like
78
#
89
# polkadot companion: paritytech/polkadot#567
10+
#
911

1012

1113
github_api_substrate_pull_url="https://api.github.com/repos/paritytech/substrate/pulls"
@@ -29,7 +31,9 @@ polkadot companion: paritytech/polkadot#567
2931
3032
3133
it will then run cargo check from this polkadot's branch with substrate code
32-
from this pull request.
34+
from this pull request. in absence of that string it will check if a polkadot
35+
pr is mentioned and will use the last one instead. if none of the above can be
36+
found it will check the build against polkadot:master.
3337
3438
3539
EOT
@@ -49,15 +53,27 @@ if expr match "${CI_COMMIT_REF_NAME}" '^[0-9]\+$' >/dev/null
4953
then
5054
boldprint "this is pull request no ${CI_COMMIT_REF_NAME}"
5155
# get the last reference to a pr in polkadot
52-
comppr="$(curl -H "${github_header}" -s ${github_api_substrate_pull_url}/${CI_COMMIT_REF_NAME} \
53-
| sed -n -r 's;^[[:space:]]+"body":[[:space:]]+".*polkadot companion: paritytech/polkadot#([0-9]+).*"[^"]+$;\1;p;$!d')"
54-
if [ "${comppr}" ]
56+
pr_body="$(curl -H "${github_header}" -s ${github_api_substrate_pull_url}/${CI_COMMIT_REF_NAME} \
57+
| sed -n -r 's/^[[:space:]]+"body": (".*")[^"]+$/\1/p')"
58+
59+
pr_companion="$(echo "${pr_body}" | sed -n -r \
60+
-e 's;^.*polkadot companion: paritytech/polkadot#([0-9]+).*$;\1;p' \
61+
-e 's;^.*polkadot companion: https://github.com/paritytech/polkadot/pull/([0-9]+).*$;\1;p' \
62+
| tail -n 1)"
63+
if [ -z "${pr_companion}" ]
64+
then
65+
pr_companion="$(echo "${pr_body}" | sed -n -r \
66+
's;^.*https://github.com/paritytech/polkadot/pull/([0-9]+).*$;\1;p' \
67+
| tail -n 1)"
68+
fi
69+
70+
if [ "${pr_companion}" ]
5571
then
56-
boldprint "companion pr specified: #${comppr}"
57-
git fetch --depth 1 origin refs/pull/${comppr}/head:pr/${comppr}
58-
git checkout pr/${comppr}
72+
boldprint "companion pr specified/detected: #${pr_companion}"
73+
git fetch --depth 1 origin refs/pull/${pr_companion}/head:pr/${pr_companion}
74+
git checkout pr/${pr_companion}
5975
else
60-
boldprint "no companion pr declared - building polkadot:master"
76+
boldprint "no companion pr found - building polkadot:master"
6177
fi
6278
else
6379
boldprint "this is not a pull request - building polkadot:master"

0 commit comments

Comments
 (0)