Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
ba48a0a
srml-system checks
xlc Jun 17, 2019
52c6b90
wip
xlc Jun 18, 2019
bd7228f
more modules compiles
xlc Jun 18, 2019
c0cece1
node-runtime checks
xlc Jun 18, 2019
a93fedd
build.sh passes
xlc Jun 19, 2019
3039e7c
include dispatch error in failed event
xlc Jun 19, 2019
c5c2e5a
revert some unnecessary changes
xlc Jun 19, 2019
1198fb7
refactor based on comments
xlc Jun 19, 2019
ed20244
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jun 19, 2019
1f964d1
more compile error fixes
xlc Jun 20, 2019
83975c0
avoid unnecessary into
xlc Jun 20, 2019
e03db0c
reorder code
xlc Jun 20, 2019
7e01497
fixes some tests
xlc Jun 21, 2019
a6c989b
manually implement encode & decode to avoid i8 workaround
xlc Jun 21, 2019
9d2dbbb
more test fixes
xlc Jun 21, 2019
31c9c84
more fixes
xlc Jun 21, 2019
6cad33a
more error fixes
xlc Jun 22, 2019
ba42e6a
Apply suggestions from code review
xlc Jun 22, 2019
0f01cc4
address comments
xlc Jun 22, 2019
cce7c08
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jun 22, 2019
c7ae1b1
test for DispatchError encoding
xlc Jun 22, 2019
0e424c1
tyep alias for democracy
xlc Jun 22, 2019
a145f27
make error printable
xlc Jun 22, 2019
ef4eecd
line width
xlc Jun 22, 2019
33668d8
fix balances tests
xlc Jun 22, 2019
d128a1a
fix executive test
xlc Jun 22, 2019
a4a8cdc
fix system tests
xlc Jun 22, 2019
f4387fb
bump version
xlc Jun 22, 2019
ef2eaa6
ensure consistent method signature
xlc Jun 22, 2019
31c998f
Apply suggestions from code review
xlc Jun 26, 2019
d6b94b0
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jun 26, 2019
51ec628
changes based on review
xlc Jun 26, 2019
88887ee
Add issue number for TODOs
xlc Jun 26, 2019
550c1e0
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jun 26, 2019
e8324c2
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jun 29, 2019
c147a8e
fix
xlc Jun 29, 2019
633a482
line width
xlc Jun 29, 2019
b61e137
fix test
xlc Jun 29, 2019
1ca74ed
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jul 8, 2019
3d2c850
Update core/sr-primitives/src/lib.rs
xlc Jul 10, 2019
8330acf
Update core/sr-primitives/src/traits.rs
xlc Jul 10, 2019
d41955a
Update srml/council/src/motions.rs
xlc Jul 10, 2019
66187b3
Update srml/council/src/motions.rs
xlc Jul 10, 2019
7489d3a
update based on review
xlc Jul 10, 2019
57f7958
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jul 10, 2019
6e5c3ce
More concrete macro matching
xlc Jul 10, 2019
2d9794a
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jul 11, 2019
1f5faac
Merge remote-tracking branch 'upstream/master' into improve-error-res…
xlc Jul 18, 2019
efe953a
fix test build issue
xlc Jul 18, 2019
bec7926
Update hex-literal dependency version. (#3141)
kianenigma Jul 18, 2019
9a68a71
Start to rework the new error handling
bkchr Aug 7, 2019
35f9ebc
More work to get it back compiling
bkchr Aug 12, 2019
d542efc
Merge remote-tracking branch 'origin/master' into new_error_handling
bkchr Aug 13, 2019
a3b5693
Start to fix after master merge
bkchr Aug 13, 2019
6784605
The great transaction error handling refactoring
bkchr Aug 15, 2019
7424908
Make `decl_error` errors convertible to `&'static str`
bkchr Aug 15, 2019
cc862ef
Make srml-executive build again
bkchr Aug 16, 2019
3b809f2
Fix `sr-primitives` tests
bkchr Aug 16, 2019
ddd630a
More fixes
bkchr Aug 16, 2019
f611efc
Last round of fix ups
bkchr Aug 18, 2019
c181c6c
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Aug 18, 2019
89a04a5
Fix build
bkchr Aug 18, 2019
46dc7be
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Aug 18, 2019
86ce38b
Fix build
bkchr Aug 18, 2019
41a176a
Apply suggestions from code review
bkchr Aug 26, 2019
a644a6e
Rename some stuff
bkchr Aug 26, 2019
66f3da5
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Aug 26, 2019
80a07b0
Fixes after master merge
bkchr Aug 26, 2019
31cd048
Adds `CheckBlockGasLimit` signed extension
bkchr Aug 26, 2019
513702c
Remove debug stuff
bkchr Aug 27, 2019
c81d17e
Fix srml-balances test
bkchr Aug 27, 2019
9df261b
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Aug 27, 2019
e48d2b5
Rename `InvalidIndex` to `CannotLookup`
bkchr Aug 27, 2019
1f16b00
Remove weird generic parameters
bkchr Aug 27, 2019
ed0761c
Rename function again
bkchr Aug 27, 2019
c0496ec
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Aug 27, 2019
20c6706
Fix import
bkchr Aug 27, 2019
28bbc86
Document the signed extension
bkchr Aug 27, 2019
92cec3c
Change from `Into` to `From`
bkchr Aug 27, 2019
442db38
Update srml/contracts/src/lib.rs
bkchr Aug 28, 2019
e48e66f
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Aug 30, 2019
257684e
Fix compilation
bkchr Aug 30, 2019
1470875
Update srml/contracts/src/lib.rs
bkchr Aug 30, 2019
23d5a93
Update core/sr-primitives/src/transaction_validity.rs
bkchr Aug 30, 2019
39d9d47
Remove unused code
bkchr Aug 30, 2019
7990a97
Fix compilation
bkchr Aug 30, 2019
7ecba8d
Some cleanups
bkchr Aug 30, 2019
448f4da
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Sep 2, 2019
3d7abc0
Fix compile errors
bkchr Sep 2, 2019
f93f9d3
Make `TransactionValidity` a `Result`
bkchr Sep 2, 2019
91b0869
Apply suggestions from code review
bkchr Sep 2, 2019
86ef4eb
Beautify the code a little bit and fix test
bkchr Sep 2, 2019
354e05f
Make `CannotLookup` an inherent error declared by `decl_error!`
bkchr Sep 3, 2019
6743719
Adds some documentation
bkchr Sep 3, 2019
b9fc817
Make `ApplyOutcome` a result
bkchr Sep 3, 2019
d5dc034
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Sep 3, 2019
e1bd019
Up the spec_version
bkchr Sep 3, 2019
e0fa417
Apply suggestions from code review
bkchr Sep 4, 2019
c25ac83
Merge remote-tracking branch 'origin/master' into bkchr-runtime-error…
bkchr Sep 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into new_error_handling
  • Loading branch information
bkchr committed Aug 13, 2019
commit d542efccabb3256f10003364b953a00ca9818fed
153 changes: 99 additions & 54 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ cargo-check-benches:
stage: test
<<: *docker-env
script:
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches --all
- sccache -s


Expand All @@ -106,7 +106,7 @@ cargo-check-subkey:
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cd ./subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release # makes sense to save artifacts for building it
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- sccache -s


Expand All @@ -121,8 +121,17 @@ test-linux-stable: &test-linux
variables:
- $DEPLOY_TAG
script:
- time cargo test --all --release --verbose --locked
- time cargo test --all --release --verbose --locked |
tee output.log
- sccache -s
after_script:
- echo "___Collecting warnings for check_warnings job___"
- awk '/^warning:/,/^$/ { print }' output.log > ${CI_COMMIT_SHORT_SHA}_warnings.log
artifacts:
name: $CI_COMMIT_SHORT_SHA
expire_in: 24 hrs
paths:
- ${CI_COMMIT_SHORT_SHA}_warnings.log


test-srml-staking: &test-srml-staking
Expand Down Expand Up @@ -165,7 +174,7 @@ test-linux-stable-int:
&> ${CI_COMMIT_SHORT_SHA}_int_failure.log
- sccache -s
after_script:
- awk '/FAILED/,0' ${CI_COMMIT_SHORT_SHA}_int_failure.log
- awk '/FAILED|^error\[/,0' ${CI_COMMIT_SHORT_SHA}_int_failure.log
artifacts:
name: $CI_COMMIT_SHORT_SHA
when: on_failure
Expand Down Expand Up @@ -214,7 +223,7 @@ check-web-wasm:

#### stage: build

build-linux-release:
build-linux-substrate:
stage: build
<<: *collect-artifacts
<<: *docker-env
Expand All @@ -224,43 +233,44 @@ build-linux-release:
- $DEPLOY_TAG
script:
- time cargo build --release --verbose
- mkdir -p ./artifacts
- mv ./target/release/substrate ./artifacts/.
- mkdir -p ./artifacts/substrate/
- mv ./target/release/substrate ./artifacts/substrate/.
- echo -n "Substrate version = "
- if [ "${CI_COMMIT_TAG}" ]; then
echo "${CI_COMMIT_TAG}" | tee ./artifacts/VERSION;
echo "${CI_COMMIT_TAG}" | tee ./artifacts/substrate/VERSION;
else
./artifacts/substrate --version |
sed -n -r 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
tee ./artifacts/VERSION;
./artifacts/substrate/substrate --version |
sed -n -r 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
tee ./artifacts/substrate/VERSION;
fi
- sha256sum ./artifacts/substrate | tee ./artifacts/substrate.sha256
- sha256sum ./artifacts/substrate/substrate | tee ./artifacts/substrate/substrate.sha256
- printf '\n# building node-template\n\n'
- ./scripts/node-template-release.sh ./artifacts/substrate-node-template.tar.gz
- cp -r scripts/docker/* ./artifacts
- ./scripts/node-template-release.sh ./artifacts/substrate/substrate-node-template.tar.gz
- cp -r scripts/docker/substrate.Dockerfile ./artifacts/substrate/
- sccache -s

build-linux-subkey:
stage: build
<<: *collect-artifacts
<<: *docker-env
# <<: *build-only
<<: *build-only
except:
variables:
- $DEPLOY_TAG
script:
- cd ./subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose
- cd ..
# - time cargo build --release
- sccache -s
- mkdir -p ./artifacts
- mv ./target/release/subkey ./artifacts/.
- mkdir -p ./artifacts/subkey
- mv ./target/release/subkey ./artifacts/subkey/.
- echo -n "Subkey version = "
- ./artifacts/subkey --version |
- ./artifacts/subkey/subkey --version |
sed -n -r 's/^subkey ([0-9.]+.*)/\1/p' |
tee ./artifacts/SUBKEY-VERSION;
- sha256sum ./artifacts/subkey | tee ./artifacts/subkey.sha256
tee ./artifacts/subkey/VERSION;
- sha256sum ./artifacts/subkey/subkey | tee ./artifacts/subkey/subkey.sha256
- cp -r scripts/docker/subkey.Dockerfile ./artifacts/subkey/
- sccache -s

build-rust-doc-release:
stage: build
Expand All @@ -280,67 +290,102 @@ build-rust-doc-release:
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
- sccache -s

check_warnings:
stage: build
<<: *docker-env
except:
variables:
- $DEPLOY_TAG
variables:
GIT_STRATEGY: none
dependencies:
- test-linux-stable
script:
- if [ -s ${CI_COMMIT_SHORT_SHA}_warnings.log ]; then
cat ${CI_COMMIT_SHORT_SHA}_warnings.log;
exit 1;
else
echo "___No warnings___";
fi
allow_failure: true

#### stage: publish

.publish-build: &publish-build
stage: publish
dependencies:
- build-linux-release
- build-linux-subkey
.publish-docker-release: &publish-docker-release
<<: *build-only
<<: *kubernetes-build

publish-docker-release:
<<: *publish-build
image: docker:stable
services:
- docker:dind
# collect VERSION artifact here to pass it on to kubernetes
<<: *collect-artifacts
variables:
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay2
GIT_STRATEGY: none
# DOCKERFILE: scripts/docker/Dockerfile
CONTAINER_IMAGE: parity/substrate
before_script:
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity"
|| ( echo "no docker credentials provided"; exit 1 )
- docker login -u "$Docker_Hub_User_Parity" -p "$Docker_Hub_Pass_Parity"
- docker info
script:
- VERSION="$(cat ./artifacts/VERSION)"
- echo "Substrate version = ${VERSION}"
- cd ./artifacts/$PRODUCT/
- VERSION="$(cat ./VERSION)"
- echo "${PRODUCT} version = ${VERSION}"
- test -z "${VERSION}" && exit 1
- cd ./artifacts
- docker build
--build-arg VCS_REF="${CI_COMMIT_SHA}"
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
--tag $CONTAINER_IMAGE:$VERSION
--tag $CONTAINER_IMAGE:latest .
--tag $CONTAINER_IMAGE:latest
--file $DOCKERFILE .
- docker push $CONTAINER_IMAGE:$VERSION
- docker push $CONTAINER_IMAGE:latest

publish-docker-substrate:
stage: publish
<<: *publish-docker-release
# collect VERSION artifact here to pass it on to kubernetes
<<: *collect-artifacts
dependencies:
- build-linux-substrate
variables:
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay2
GIT_STRATEGY: none
PRODUCT: substrate
DOCKERFILE: $PRODUCT.Dockerfile
CONTAINER_IMAGE: parity/$PRODUCT
after_script:
- docker logout
# only VERSION information is needed for the deployment
- find ./artifacts/ -depth -not -name VERSION -not -name artifacts -delete
- find ./artifacts/ -depth -not -name VERSION -type f -delete

publish-docker-subkey:
stage: publish
<<: *publish-docker-release
dependencies:
- build-linux-subkey
variables:
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay2
GIT_STRATEGY: none
PRODUCT: subkey
DOCKERFILE: $PRODUCT.Dockerfile
CONTAINER_IMAGE: parity/$PRODUCT
after_script:
- docker logout

publish-s3-release:
<<: *publish-build
stage: publish
<<: *build-only
<<: *kubernetes-build
dependencies:
- build-linux-substrate
- build-linux-subkey
image: parity/awscli:latest
variables:
GIT_STRATEGY: none
BUCKET: "releases.parity.io"
PREFIX: "substrate/${ARCH}-${DOCKER_OS}"
script:
- aws s3 sync ./artifacts/ s3://${BUCKET}/${PREFIX}/$(cat ./artifacts/VERSION)/
- aws s3 sync ./artifacts/ s3://${BUCKET}/${PREFIX}/$(cat ./artifacts/substrate/VERSION)/
- echo "update objects in latest path"
- for file in ./artifacts/*; do
name="$(basename ${file})";
aws s3api copy-object
--copy-source ${BUCKET}/${PREFIX}/$(cat ./artifacts/VERSION)/${name}
--bucket ${BUCKET} --key ${PREFIX}/latest/${name};
done
- aws s3 sync s3://${BUCKET}/${PREFIX}/$(cat ./artifacts/substrate/VERSION)/ s3://${BUCKET}/${PREFIX}/latest/
after_script:
- aws s3 ls s3://${BUCKET}/${PREFIX}/latest/
--recursive --human-readable --summarize
Expand Down Expand Up @@ -423,8 +468,8 @@ publish-gh-doc:
- kubernetes-parity-build
before_script:
- test -z "${DEPLOY_TAG}" &&
test -f ./artifacts/VERSION &&
DEPLOY_TAG="$(cat ./artifacts/VERSION)"
test -f ./artifacts/substrate/VERSION &&
DEPLOY_TAG="$(cat ./artifacts/substrate/VERSION)"
- test "${DEPLOY_TAG}" || ( echo "Neither DEPLOY_TAG nor VERSION information available"; exit 1 )
script:
- echo "Substrate version = ${DEPLOY_TAG}"
Expand All @@ -450,7 +495,7 @@ publish-gh-doc:
.deploy-cibuild: &deploy-cibuild
<<: *deploy
dependencies:
- publish-docker-release
- publish-docker-substrate

.deploy-tag: &deploy-tag
<<: *deploy
Expand Down Expand Up @@ -483,7 +528,7 @@ deploy-ue1-tag:
.validator-deploy: &validator-deploy
stage: flaming-fir
dependencies:
- build-linux-release
- build-linux-substrate
image: parity/azure-ansible:v1
allow_failure: true
when: manual
Expand Down
15 changes: 15 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Lists some code owners
#
# For details about syntax, see:
# https://help.github.com/en/articles/about-code-owners
# But here are some important notes:
#
# - Glob syntax is git-like, e.g. `/core` means the core directory in the root, unlike `core` which
# can be everywhere.
# - Multiple owners are supported.
# - Either handle (e.g, @pepyakin) or email can be used. Keep in mind, that handles might work better because they
# are more recognizable on GitHub, you can use them for mentioning unlike an email.
# - The latest matching rule, if multiple, takes precedence.

/srml/contracts/ @pepyakin
/core/executor/ @pepyakin
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.