Skip to content

Commit 8726682

Browse files
authored
Merge branch 'develop' into ag_taplo
2 parents e932c9a + 3ffe6d1 commit 8726682

File tree

578 files changed

+17191
-4109
lines changed

Some content is hidden

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

578 files changed

+17191
-4109
lines changed

.cargo-deny.toml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ignore = [
1717
{ id = "RUSTSEC-2024-0370", reason = "`proc-macro-error` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." },
1818
{ id = "RUSTSEC-2024-0384", reason = "`instant` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." },
1919
{ id = "RUSTSEC-2024-0388", reason = "`derivative` is unmaintained but a Substrate dependency. Re-verify upon next polkadot-sdk updates." },
20+
{ id = "RUSTSEC-2024-0421", reason = "`idna` has a security vulnerability but a Substrate dependency. Re-verify upon next polkadot-sdk updates." },
2021
]
2122
yanked = "deny"
2223

.github/workflows/check-docs-pr.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docs PR Check
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref_name }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
check-docs-pr:
12+
runs-on: ubuntu-latest
13+
env:
14+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
15+
16+
steps:
17+
- name: Checkout Code
18+
uses: actions/checkout@v4
19+
20+
- name: Check for Skip Label
21+
run: |
22+
if gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels | .[].name' | grep -q 'ci-skip-docs-pr'; then
23+
echo "SKIP_DOCS_PR_CHECK=true" >> $GITHUB_ENV
24+
else
25+
echo "SKIP_DOCS_PR_CHECK=false" >> $GITHUB_ENV
26+
fi
27+
28+
- name: Ensure Linked Docs PR
29+
if: env.SKIP_DOCS_PR_CHECK == 'false'
30+
env:
31+
DOCS_REPO: KILTprotocol/docs
32+
PR_NO: ${{ github.event.pull_request.number }}
33+
run: |
34+
DOCS_PRS=$(gh pr list --repo $DOCS_REPO --json number,body,title --jq '.[]')
35+
36+
MATCHING_PR=$(echo "$DOCS_PRS" | jq -r "select(.body | contains(\"#${PR_NO}\") or .title | contains(\"#${PR_NO}\"))")
37+
38+
if [ -z "$MATCHING_PR" ]; then
39+
echo "Please link a docs PR for code PR #${PR_NO} or apply the 'ci-skip-docs-pr' label."
40+
exit 1
41+
else
42+
echo "Matching docs PR found for code PR #${PR_NOPR_NO}."
43+
fi

.gitlab-ci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ build-production-wasm:
2121
- export AUTHORIZE_UPGRADE_PREFIX=0x02
2222
- export AUTHORIZE_UPGRADE_CHECK_VERSION=true
2323
- export VERBOSE=true
24+
- export BUILD_OPTS="--features metadata-hash"
2425
- cp -r * /build
2526
- /srtool/build build
2627
- subwasm meta --format=json+scale /out/${RUNTIME}_runtime.compact.wasm > /out/${RUNTIME}-metadata.json
@@ -78,12 +79,9 @@ build-docker-images:
7879
DOCKER_HUB_DIP_PROVIDER_TEMPLATE: "kiltprotocol/dip-provider-node-template"
7980
DOCKER_HUB_DIP_CONSUMER_TEMPLATE: "kiltprotocol/dip-consumer-node-template"
8081
before_script:
81-
- aws --version
8282
- docker --version
8383
script:
8484
- echo -n $CI_REGISTRY_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
85-
- aws ecr get-login-password | docker login --username AWS --password-stdin $AWS_REGISTRY
86-
- ./.maintain/docker-auth-config.sh
8785

8886
- ./.maintain/build-image.sh build
8987
- "if [[ ! -z ${CI_COMMIT_BRANCH} ]]; then ./.maintain/push-image.sh build ${CI_COMMIT_SHORT_SHA}; fi"

.maintain/build-image.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ target_tag=$1
77
# Build the builder image and push it in the background
88
docker build \
99
--target builder \
10-
--cache-from $AWS_REGISTRY/kilt-parachain/collator:builder \
11-
-t $AWS_REGISTRY/kilt-parachain/collator:builder \
10+
--cache-from $CI_REGISTRY/$ORGANIZATION/kilt-node:builder \
11+
-t $CI_REGISTRY/$ORGANIZATION/kilt-node:builder \
1212
. &
13-
docker push $AWS_REGISTRY/kilt-parachain/collator:builder &
13+
docker push $CI_REGISTRY/$ORGANIZATION/kilt-node:builder &
1414

1515
wait
1616

@@ -21,19 +21,19 @@ build_and_tag() {
2121
local cache_image=$3
2222

2323
docker build \
24-
--cache-from $AWS_REGISTRY/kilt-parachain/collator:builder \
25-
--cache-from $AWS_REGISTRY/$cache_image:$target_tag \
24+
--cache-from $CI_REGISTRY/$ORGANIZATION/kilt-node:builder \
25+
--cache-from $CI_REGISTRY/$ORGANIZATION/$cache_image:$target_tag \
2626
--build-arg NODE_TYPE=$node_type \
2727
-t local/$image_name:$target_tag \
2828
.
2929
}
3030

31-
build_and_tag "kilt-parachain" "kilt-node" "kilt-parachain/collator" &
31+
build_and_tag "kilt-parachain" "kilt-node" "kilt-node" &
3232

33-
build_and_tag "standalone-node" "standalone-node" "kilt/prototype-chain" &
33+
build_and_tag "standalone-node" "standalone-node" "standalone-node" &
3434

35-
build_and_tag "dip-provider-node-template" "dip-provider-node-template" "kilt-parachain/collator" &
35+
build_and_tag "dip-provider-node-template" "dip-provider-node-template" "kilt-node" &
3636

37-
build_and_tag "dip-consumer-node-template" "dip-consumer-node-template" "kilt-parachain/collator" &
37+
build_and_tag "dip-consumer-node-template" "dip-consumer-node-template" "kilt-node" &
3838

3939
wait

.maintain/docker-auth-config.sh

-6
This file was deleted.

.maintain/media/kilt.png

-34.7 KB
Binary file not shown.

.maintain/push-image.sh

-6
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,4 @@ tag_and_push local/kilt-node:$source_tag ${DOCKER_HUB_PARACHAIN}:$target_tag
2121
tag_and_push local/$PROVIDER_BIN_NAME:$source_tag ${DOCKER_HUB_DIP_PROVIDER_TEMPLATE}:$target_tag
2222
tag_and_push local/$CONSUMER_BIN_NAME:$source_tag ${DOCKER_HUB_DIP_CONSUMER_TEMPLATE}:$target_tag
2323

24-
# Tag and push to AWS
25-
tag_and_push local/standalone-node:$source_tag $AWS_REGISTRY/standalone-node:$target_tag
26-
tag_and_push local/kilt-node:$source_tag $AWS_REGISTRY/kilt-node:$target_tag
27-
tag_and_push local/$PROVIDER_BIN_NAME:$source_tag $AWS_REGISTRY/$PROVIDER_BIN_NAME:$target_tag
28-
tag_and_push local/$CONSUMER_BIN_NAME:$source_tag $AWS_REGISTRY/$CONSUMER_BIN_NAME:$target_tag
29-
3024
wait

0 commit comments

Comments
 (0)