Skip to content

Commit a88b422

Browse files
committed
debug. remove later
1 parent 5905280 commit a88b422

File tree

1 file changed

+153
-151
lines changed

1 file changed

+153
-151
lines changed

.gitlab-ci.yml

+153-151
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@ stages:
22
- test
33
- build
44

5-
clippy-and-docs:
6-
timeout: 2 hours
7-
image: paritytech/ci-unified:bullseye-1.70.0
8-
stage: test
9-
script:
10-
- cargo clippy --all-features --all-targets --locked -- -D warnings
11-
- RUSTDOCFLAGS='-D warnings' cargo doc --all-features --no-deps --locked
5+
# clippy-and-docs:
6+
# timeout: 2 hours
7+
# image: paritytech/ci-unified:bullseye-1.70.0
8+
# stage: test
9+
# script:
10+
# - cargo clippy --all-features --all-targets --locked -- -D warnings
11+
# - RUSTDOCFLAGS='-D warnings' cargo doc --all-features --no-deps --locked
1212

13-
fmt-rust:
14-
image: paritytech/ci-unified:bullseye-1.70.0
15-
stage: test
16-
script:
17-
- cargo fmt -- --check
13+
# fmt-rust:
14+
# image: paritytech/ci-unified:bullseye-1.70.0
15+
# stage: test
16+
# script:
17+
# - cargo fmt -- --check
1818

19-
test:
20-
timeout: 2 hours
21-
image: paritytech/ci-unified:bullseye-1.70.0
22-
stage: test
23-
script:
24-
- cargo test --all --all-targets --locked
19+
# test:
20+
# timeout: 2 hours
21+
# image: paritytech/ci-unified:bullseye-1.70.0
22+
# stage: test
23+
# script:
24+
# - cargo test --all --all-targets --locked
2525

26-
test-features:
27-
timeout: 2 hours
28-
image: paritytech/ci-unified:bullseye-1.70.0
29-
stage: test
30-
script:
31-
- cargo test --all --all-features --all-targets --locked
26+
# test-features:
27+
# timeout: 2 hours
28+
# image: paritytech/ci-unified:bullseye-1.70.0
29+
# stage: test
30+
# script:
31+
# - cargo test --all --all-features --all-targets --locked
3232

3333
integration-tests:
3434
timeout: 15 minutes
@@ -37,141 +37,143 @@ integration-tests:
3737
script:
3838
- cd ./integration-tests/chopsticks
3939
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
40+
- export NVM_DIR="$HOME/.nvm
41+
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
4042
- nvm install
4143
- cargo build -p spiritnet-runtime
4244
- yarn --immutable
4345
- yarn lint
4446
- yarn test
4547

46-
# TODO: The try-runtime-cli executable could be built as part of the Docker image directly, saving some time.
47-
test-try-runtime:
48-
parallel:
49-
matrix:
50-
- RUNTIME: "peregrine"
51-
ENDPOINT: "wss://peregrine.kilt.io:443"
52-
- RUNTIME: "spiritnet"
53-
ENDPOINT: "wss://spiritnet.kilt.io:443"
54-
timeout: 2 hours
55-
image: paritytech/ci-unified:bullseye-1.70.0
56-
stage: test
57-
variables:
58-
TRY_RUNTIME_CLI_VERSION_TAG: v0.6.1
59-
script:
60-
- curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/${TRY_RUNTIME_CLI_VERSION_TAG}/try-runtime-x86_64-unknown-linux-musl -o try-runtime
61-
- chmod +x ./try-runtime
62-
- ./try-runtime --version
63-
- cargo build --locked --release -p ${RUNTIME}-runtime --features try-runtime
64-
- ./try-runtime --runtime ./target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm on-runtime-upgrade --disable-spec-version-check --checks=all live --uri=${ENDPOINT}
65-
- echo "try-runtime with all checks exited successfully."
66-
- ./try-runtime --runtime ./target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm on-runtime-upgrade --disable-spec-version-check live --uri=${ENDPOINT}
67-
- echo "try-runtime with pre and post checks exited successfully."
48+
# # TODO: The try-runtime-cli executable could be built as part of the Docker image directly, saving some time.
49+
# test-try-runtime:
50+
# parallel:
51+
# matrix:
52+
# - RUNTIME: "peregrine"
53+
# ENDPOINT: "wss://peregrine.kilt.io:443"
54+
# - RUNTIME: "spiritnet"
55+
# ENDPOINT: "wss://spiritnet.kilt.io:443"
56+
# timeout: 2 hours
57+
# image: paritytech/ci-unified:bullseye-1.70.0
58+
# stage: test
59+
# variables:
60+
# TRY_RUNTIME_CLI_VERSION_TAG: v0.6.1
61+
# script:
62+
# - curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/${TRY_RUNTIME_CLI_VERSION_TAG}/try-runtime-x86_64-unknown-linux-musl -o try-runtime
63+
# - chmod +x ./try-runtime
64+
# - ./try-runtime --version
65+
# - cargo build --locked --release -p ${RUNTIME}-runtime --features try-runtime
66+
# - ./try-runtime --runtime ./target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm on-runtime-upgrade --disable-spec-version-check --checks=all live --uri=${ENDPOINT}
67+
# - echo "try-runtime with all checks exited successfully."
68+
# - ./try-runtime --runtime ./target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm on-runtime-upgrade --disable-spec-version-check live --uri=${ENDPOINT}
69+
# - echo "try-runtime with pre and post checks exited successfully."
6870

69-
build:
70-
timeout: 2 hours
71-
image:
72-
name: kiltprotocol/kilt-ci:2.7.31
73-
entrypoint: [""]
74-
stage: build
75-
only:
76-
refs:
77-
- develop
78-
- master
79-
- /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
80-
- /^[dev-](\w*-)*[0-9]?$/
81-
variables:
82-
DOCKER_HUB_PARACHAIN: "kiltprotocol/kilt-node"
83-
DOCKER_HUB_STANDALONE: "kiltprotocol/standalone-node"
84-
DOCKER_HUB_DIP_PROVIDER_TEMPLATE: "kiltprotocol/dip-provider-node-template"
85-
DOCKER_HUB_DIP_CONSUMER_TEMPLATE: "kiltprotocol/dip-consumer-node-template"
86-
before_script:
87-
- aws --version
88-
- docker --version
89-
script:
90-
- echo -n $CI_REGISTRY_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
91-
- aws ecr get-login-password | docker login --username AWS --password-stdin $AWS_REGISTRY
92-
- ./.maintain/docker-auth-config.sh
71+
# build:
72+
# timeout: 2 hours
73+
# image:
74+
# name: kiltprotocol/kilt-ci:2.7.31
75+
# entrypoint: [""]
76+
# stage: build
77+
# only:
78+
# refs:
79+
# - develop
80+
# - master
81+
# - /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
82+
# - /^[dev-](\w*-)*[0-9]?$/
83+
# variables:
84+
# DOCKER_HUB_PARACHAIN: "kiltprotocol/kilt-node"
85+
# DOCKER_HUB_STANDALONE: "kiltprotocol/standalone-node"
86+
# DOCKER_HUB_DIP_PROVIDER_TEMPLATE: "kiltprotocol/dip-provider-node-template"
87+
# DOCKER_HUB_DIP_CONSUMER_TEMPLATE: "kiltprotocol/dip-consumer-node-template"
88+
# before_script:
89+
# - aws --version
90+
# - docker --version
91+
# script:
92+
# - echo -n $CI_REGISTRY_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
93+
# - aws ecr get-login-password | docker login --username AWS --password-stdin $AWS_REGISTRY
94+
# - ./.maintain/docker-auth-config.sh
9395

94-
- ./.maintain/build-image.sh build
95-
- "if [[ ! -z ${CI_COMMIT_BRANCH} ]]; then ./.maintain/push-image.sh build ${CI_COMMIT_SHORT_SHA}; fi"
96-
- "if [[ ! -z ${CI_COMMIT_BRANCH} ]]; then ./.maintain/push-image.sh build latest-${CI_COMMIT_BRANCH}; fi"
97-
- "if [[ ! -z ${CI_COMMIT_TAG} ]]; then ./.maintain/push-image.sh build ${CI_COMMIT_TAG}; fi"
98-
- "if [[ ! -z ${CI_COMMIT_TAG} && ! -z ${CI_COMMIT_TAG##*-rc*} && ! -z ${CI_COMMIT_TAG##*dev-*} ]]; then ./.maintain/push-image.sh build latest; fi"
96+
# - ./.maintain/build-image.sh build
97+
# - "if [[ ! -z ${CI_COMMIT_BRANCH} ]]; then ./.maintain/push-image.sh build ${CI_COMMIT_SHORT_SHA}; fi"
98+
# - "if [[ ! -z ${CI_COMMIT_BRANCH} ]]; then ./.maintain/push-image.sh build latest-${CI_COMMIT_BRANCH}; fi"
99+
# - "if [[ ! -z ${CI_COMMIT_TAG} ]]; then ./.maintain/push-image.sh build ${CI_COMMIT_TAG}; fi"
100+
# - "if [[ ! -z ${CI_COMMIT_TAG} && ! -z ${CI_COMMIT_TAG##*-rc*} && ! -z ${CI_COMMIT_TAG##*dev-*} ]]; then ./.maintain/push-image.sh build latest; fi"
99101

100-
build-wasm-peregrine:
101-
image:
102-
name: paritytech/srtool:1.70.0
103-
entrypoint: [""]
104-
stage: build
105-
only:
106-
- develop
107-
- master
108-
- /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
109-
script:
110-
- export PACKAGE=peregrine-runtime
111-
- export RUNTIME_DIR=runtimes/peregrine
112-
- export PARACHAIN_PALLET_ID=0x50
113-
- export AUTHORIZE_UPGRADE_PREFIX=0x02
114-
- cp -r * /build
115-
- /srtool/build build
116-
- subwasm meta --format=json+scale /out/peregrine_runtime.compact.wasm > /out/peregrine-metadata.json
117-
- subwasm get -o peregrine-live.wasm wss://peregrine.kilt.io
118-
- subwasm diff --no-color peregrine-live.wasm /out/peregrine_runtime.compact.wasm | tee /out/peregrine-diff.txt
119-
- mkdir ./out
120-
- mv /out/* ./out/
121-
artifacts:
122-
paths:
123-
- out/*.wasm
124-
- out/*.json
125-
- out/*.txt
126-
expire_in: 12 week
102+
# build-wasm-peregrine:
103+
# image:
104+
# name: paritytech/srtool:1.70.0
105+
# entrypoint: [""]
106+
# stage: build
107+
# only:
108+
# - develop
109+
# - master
110+
# - /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
111+
# script:
112+
# - export PACKAGE=peregrine-runtime
113+
# - export RUNTIME_DIR=runtimes/peregrine
114+
# - export PARACHAIN_PALLET_ID=0x50
115+
# - export AUTHORIZE_UPGRADE_PREFIX=0x02
116+
# - cp -r * /build
117+
# - /srtool/build build
118+
# - subwasm meta --format=json+scale /out/peregrine_runtime.compact.wasm > /out/peregrine-metadata.json
119+
# - subwasm get -o peregrine-live.wasm wss://peregrine.kilt.io
120+
# - subwasm diff --no-color peregrine-live.wasm /out/peregrine_runtime.compact.wasm | tee /out/peregrine-diff.txt
121+
# - mkdir ./out
122+
# - mv /out/* ./out/
123+
# artifacts:
124+
# paths:
125+
# - out/*.wasm
126+
# - out/*.json
127+
# - out/*.txt
128+
# expire_in: 12 week
127129

128-
build-wasm-spiritnet:
129-
image:
130-
name: paritytech/srtool:1.70.0
131-
entrypoint: [""]
132-
stage: build
133-
only:
134-
- develop
135-
- master
136-
- /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
137-
script:
138-
- export PACKAGE=spiritnet-runtime
139-
- export RUNTIME_DIR=runtimes/spiritnet
140-
- export PARACHAIN_PALLET_ID=0x50
141-
- export AUTHORIZE_UPGRADE_PREFIX=0x02
142-
- cp -r * /build
143-
- /srtool/build build
144-
- subwasm meta --format=json+scale /out/spiritnet_runtime.compact.wasm > /out/spiritnet-metadata.json
145-
- subwasm get -o spiritnet-live.wasm wss://spiritnet.kilt.io
146-
- subwasm diff --no-color spiritnet-live.wasm /out/spiritnet_runtime.compact.wasm | tee /out/spiritnet-diff.txt
147-
- mkdir ./out
148-
- mv /out/* ./out/
149-
artifacts:
150-
paths:
151-
- out/*.wasm
152-
- out/*.json
153-
- out/*.txt
154-
expire_in: 12 week
130+
# build-wasm-spiritnet:
131+
# image:
132+
# name: paritytech/srtool:1.70.0
133+
# entrypoint: [""]
134+
# stage: build
135+
# only:
136+
# - develop
137+
# - master
138+
# - /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
139+
# script:
140+
# - export PACKAGE=spiritnet-runtime
141+
# - export RUNTIME_DIR=runtimes/spiritnet
142+
# - export PARACHAIN_PALLET_ID=0x50
143+
# - export AUTHORIZE_UPGRADE_PREFIX=0x02
144+
# - cp -r * /build
145+
# - /srtool/build build
146+
# - subwasm meta --format=json+scale /out/spiritnet_runtime.compact.wasm > /out/spiritnet-metadata.json
147+
# - subwasm get -o spiritnet-live.wasm wss://spiritnet.kilt.io
148+
# - subwasm diff --no-color spiritnet-live.wasm /out/spiritnet_runtime.compact.wasm | tee /out/spiritnet-diff.txt
149+
# - mkdir ./out
150+
# - mv /out/* ./out/
151+
# artifacts:
152+
# paths:
153+
# - out/*.wasm
154+
# - out/*.json
155+
# - out/*.txt
156+
# expire_in: 12 week
155157

156-
build-wasm-try-runtime:
157-
parallel:
158-
matrix:
159-
- RUNTIME: "peregrine"
160-
- RUNTIME: "spiritnet"
161-
image:
162-
name: paritytech/ci-unified:bullseye-1.70.0
163-
entrypoint: [""]
164-
stage: build
165-
only:
166-
- develop
167-
- master
168-
- /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
169-
script:
170-
- cargo build -p ${RUNTIME}-runtime --features try-runtime
171-
- mkdir ./out
172-
- mv target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm ./dangerous_${RUNTIME}.try-runtime.wasm
173-
artifacts:
174-
name: ${RUNTIME}_try-runtime
175-
paths:
176-
- ./dangerous_${RUNTIME}.try-runtime.wasm
177-
expire_in: 12 week
158+
# build-wasm-try-runtime:
159+
# parallel:
160+
# matrix:
161+
# - RUNTIME: "peregrine"
162+
# - RUNTIME: "spiritnet"
163+
# image:
164+
# name: paritytech/ci-unified:bullseye-1.70.0
165+
# entrypoint: [""]
166+
# stage: build
167+
# only:
168+
# - develop
169+
# - master
170+
# - /^[0-9]+(?:\.[0-9]+){2}(?:-(rc)*([0-9])+)?$/
171+
# script:
172+
# - cargo build -p ${RUNTIME}-runtime --features try-runtime
173+
# - mkdir ./out
174+
# - mv target/release/wbuild/${RUNTIME}-runtime/${RUNTIME}_runtime.compact.compressed.wasm ./dangerous_${RUNTIME}.try-runtime.wasm
175+
# artifacts:
176+
# name: ${RUNTIME}_try-runtime
177+
# paths:
178+
# - ./dangerous_${RUNTIME}.try-runtime.wasm
179+
# expire_in: 12 week

0 commit comments

Comments
 (0)