This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'execution-proof-base' into debug-execution-proof
- Loading branch information
Showing
629 changed files
with
18,903 additions
and
8,727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,18 +209,6 @@ default: | |
AWS_SECRET_ACCESS_KEY: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/AWS_SECRET_ACCESS_KEY@kv | ||
file: false | ||
AWX_TOKEN: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/AWX_TOKEN@kv | ||
file: false | ||
CRATES_TOKEN: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/CRATES_TOKEN@kv | ||
file: false | ||
DOCKER_CHAOS_TOKEN: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/DOCKER_CHAOS_TOKEN@kv | ||
file: false | ||
DOCKER_CHAOS_USER: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/DOCKER_CHAOS_USER@kv | ||
file: false | ||
GITHUB_EMAIL: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/GITHUB_EMAIL@kv | ||
file: false | ||
|
@@ -239,22 +227,13 @@ default: | |
MATRIX_ROOM_ID: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/MATRIX_ROOM_ID@kv | ||
file: false | ||
PIPELINE_TOKEN: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/PIPELINE_TOKEN@kv | ||
file: false | ||
VALIDATOR_KEYS: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/VALIDATOR_KEYS@kv | ||
file: false | ||
VALIDATOR_KEYS_CHAOS: | ||
vault: cicd/gitlab/$CI_PROJECT_PATH/VALIDATOR_KEYS_CHAOS@kv | ||
file: false | ||
|
||
|
||
#### stage: .pre | ||
|
||
skip-if-draft: | ||
image: paritytech/tools:latest | ||
<<: *kubernetes-env | ||
<<: *vault-secrets | ||
stage: .pre | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs | ||
|
@@ -270,7 +249,6 @@ check-runtime: | |
stage: check | ||
image: paritytech/tools:latest | ||
<<: *kubernetes-env | ||
<<: *vault-secrets | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs | ||
variables: | ||
|
@@ -285,7 +263,6 @@ check-signed-tag: | |
stage: check | ||
image: paritytech/tools:latest | ||
<<: *kubernetes-env | ||
<<: *vault-secrets | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/ | ||
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 | ||
|
@@ -450,7 +427,7 @@ test-linux-stable: &test-linux | |
script: | ||
# this job runs all tests in former runtime-benchmarks, frame-staking and wasmtime tests | ||
- time cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml | ||
- time cargo test -p frame-support-test --features=conditional-storage --manifest-path frame/support/test/Cargo.toml --test pallet # does not reuse cache 1 min 44 sec | ||
- time cargo test -p frame-support-test --features=conditional-storage,no-metadata-docs --manifest-path frame/support/test/Cargo.toml --test pallet # does not reuse cache 1 min 44 sec | ||
- SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --verbose --locked -- --ignored timeout | ||
- sccache -s | ||
|
||
|
@@ -548,7 +525,6 @@ cargo-check-macos: | |
stage: build | ||
<<: *docker-env | ||
<<: *test-refs-no-trigger-prs-only | ||
<<: *vault-secrets | ||
script: | ||
- git clone | ||
--depth=1 | ||
|
@@ -747,13 +723,7 @@ publish-rustdoc: | |
image: node:16 | ||
variables: | ||
GIT_DEPTH: 100 | ||
# --- Following variables are for rustdocs deployment --- | ||
# Space separated values of branches and tags to generate rustdocs | ||
RUSTDOCS_DEPLOY_REFS: "master monthly-2021-09+1 monthly-2021-08 v3.0.0" | ||
# Location of the docs index template | ||
INDEX_TPL: ".maintain/docs-index-tpl.ejs" | ||
# Where the `/latest` symbolic link links to. One of the $RUSTDOCS_DEPLOY_REFS value. | ||
LATEST: "monthly-2021-09+1" | ||
RUSTDOCS_DEPLOY_REFS: "master" | ||
rules: | ||
- if: $CI_PIPELINE_SOURCE == "pipeline" | ||
when: never | ||
|
@@ -783,34 +753,19 @@ publish-rustdoc: | |
- git config remote.origin.url "[email protected]:/paritytech/${CI_PROJECT_NAME}.git" | ||
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | ||
- git fetch origin gh-pages | ||
# Install `ejs` and generate index.html based on RUSTDOCS_DEPLOY_REFS | ||
- yarn global add ejs | ||
- 'ejs ${INDEX_TPL} -i "{\"deploy_refs\":\"${RUSTDOCS_DEPLOY_REFS}\",\"repo_name\":\"${CI_PROJECT_NAME}\",\"latest\":\"${LATEST}\"}" > /tmp/index.html' | ||
# Save README and docs | ||
- cp -r ./crate-docs/ /tmp/doc/ | ||
- cp README.md /tmp/doc/ | ||
- git checkout gh-pages | ||
# Remove directories no longer necessary, as specified in $RUSTDOCS_DEPLOY_REFS. | ||
# Also ensure $RUSTDOCS_DEPLOY_REFS is not just empty spaces. | ||
# Even though this block spans multiple lines, they are concatenated to run as a single line | ||
# command, so note for the semi-colons in the inner-most code block. | ||
- if [[ ! -z ${RUSTDOCS_DEPLOY_REFS// } ]]; then | ||
for FILE in *; do | ||
if [[ ! " $RUSTDOCS_DEPLOY_REFS " =~ " $FILE " ]]; then | ||
echo "Removing ${FILE}..."; | ||
rm -rf $FILE; | ||
fi | ||
done | ||
fi | ||
# Move the index page & built back | ||
- mv -f /tmp/index.html . | ||
# we don't need to commit changes because we copy docs to /tmp | ||
- git checkout gh-pages --force | ||
# Install `index-tpl-crud` and generate index.html based on RUSTDOCS_DEPLOY_REFS | ||
- which index-tpl-crud &> /dev/null || yarn global add @substrate/index-tpl-crud | ||
- index-tpl-crud upsert ./index.html ${CI_COMMIT_REF_NAME} | ||
# Ensure the destination dir doesn't exist. | ||
- rm -rf ${CI_COMMIT_REF_NAME} | ||
- mv -f /tmp/doc ${CI_COMMIT_REF_NAME} | ||
# Add the symlink | ||
- '[[ -e "$LATEST" ]] && ln -sf "${LATEST}" latest' | ||
# Upload files | ||
- git add --all --force | ||
- git add --all | ||
# `git commit` has an exit code of > 0 if there is nothing to commit. | ||
# This causes GitLab to exit immediately and marks this job failed. | ||
# We don't want to mark the entire job failed if there's nothing to | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.