Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Fix/ci performance #43

Closed
wants to merge 150 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
06fc5aa
Pin doughnut-rs with tag
jordy25519 Jul 16, 2019
a39e9ea
node: fix integration test transaction format (#3306)
andresilva Aug 5, 2019
4408fa7
fix BABE randomness calculation (#3305)
rphmeier Aug 6, 2019
5342c63
Improve internal doc of inflation module (#3288)
gui1117 Aug 6, 2019
3198388
Update to parity-scale-codec (#3232)
gui1117 Aug 6, 2019
e560b2a
Fix decl_storage map and linked_map for insert_ref (#3316)
gui1117 Aug 7, 2019
25f68b3
Rename on_demand to light_dispatch and various minor changes (#3315)
tomaka Aug 7, 2019
e2d9619
Update to schnorrkel `0.8.0` (#3267)
bkchr Aug 7, 2019
e348b5b
Propagate cache when calling into runtime (#3319)
arkpar Aug 7, 2019
dcde9c0
Fix `linked_map` in `decl_storage!` for option values (#3323)
bkchr Aug 7, 2019
ed61b1f
Refactor key management (#3296)
gavofyork Aug 7, 2019
a081e1f
remove leaves tracking from lignt backend (#3311)
svyatonik Aug 7, 2019
c3b9d6c
Handle telemetry socket errors (#3321)
arkpar Aug 7, 2019
e9b2113
Remove support for mplex (#3312)
tomaka Aug 7, 2019
f434616
Make Verifier::verify mutable (#3165)
tomaka Aug 7, 2019
4499cb6
Rename CustomProto to LegacyProto (#3313)
tomaka Aug 7, 2019
4f92dfa
Derive CompactAs for Perbill/mill/U128 (#3327)
ascjones Aug 7, 2019
f3a74ef
Staking optimisation (#3300)
gui1117 Aug 7, 2019
e269dbf
More tests and some cleanup (#3331)
bkchr Aug 7, 2019
872173f
Make `DefaultByte` implement `Send + Sync` (#3333)
bkchr Aug 7, 2019
d6eb5dd
Set uncles inherent (#3317)
arkpar Aug 7, 2019
9b3e9f3
Fixed test block conditions (#3332)
arkpar Aug 7, 2019
2fca4d2
Reintroduce mplex (reverts #3312) (#3328)
tomaka Aug 8, 2019
983cdeb
Clean up CLI interface (#3334)
bkchr Aug 8, 2019
d5560b6
Improve console output (#3326)
arkpar Aug 8, 2019
27cb884
Switch offchain workers to new futures (#3285)
tomaka Aug 8, 2019
e4a92a9
add post_dispatch (#3229)
xlc Aug 8, 2019
ab49056
grandpa: track multiple live rounds in voter set state (#3298)
andresilva Aug 8, 2019
8155ea3
Adds `author_rotateKeys` RPC (#3337)
bkchr Aug 8, 2019
c0f977c
Make `--dev` to `--alice` again (#3338)
bkchr Aug 8, 2019
225c1b5
srml-contracts: Refactor away some duplication in runtime functions. …
jimpo Aug 8, 2019
c36d247
Child storage tests and genesis fix. (#3185)
cheme Aug 8, 2019
35128f7
Fix documentation set_controller (#3340)
lsaether Aug 8, 2019
a8449be
Service various cleanups (#3238)
tomaka Aug 8, 2019
c72789c
Remove Decode trait bound. (#3342)
dvc94ch Aug 8, 2019
360c0ff
Fixed warnings (#3345)
arkpar Aug 8, 2019
76d4736
remove unneeded as_ref call (#3349)
rphmeier Aug 8, 2019
8b96ce6
grandpa: fix --no-grandpa flag breaking block production (#3350)
andresilva Aug 8, 2019
85ee19a
Introduce AppVerify (#3343)
gavofyork Aug 9, 2019
1c260fb
grandpa: fix catch up test (#3347)
andresilva Aug 9, 2019
bc08fe0
Check for warnings (#2850)
TriplEight Aug 9, 2019
14a7091
Adds `--no-validator` CLI flag (#3348)
bkchr Aug 9, 2019
c10e557
node: re-introduce validator flag (#3351)
andresilva Aug 9, 2019
765aa80
node: setup disabled grandpa properly (#3356)
andresilva Aug 9, 2019
6e42ab2
Add a small ban when we get disconnected from a node (#3325)
tomaka Aug 9, 2019
dcbe1be
Switch AuRa to dynamic keystore lookup (#3359)
bkchr Aug 9, 2019
087c3cf
Scale trait and move to u32 blocknumbers (#3357)
gavofyork Aug 11, 2019
e0f5dd9
Refactor parse_and_execute (#3358)
tomaka Aug 11, 2019
53c1fed
Rewrite the GrandPa observer work future (#3309)
tomaka Aug 12, 2019
e8df4a8
document that session key generation stores keys (#3366)
rphmeier Aug 12, 2019
7154cc0
Make `--alice` etc implicitly enable `--validator` (#3369)
bkchr Aug 12, 2019
a70c8a1
Remove unneeded cruft (#3368)
gavofyork Aug 12, 2019
592fa60
node: exit on GRANDPA voter or BABE authoring error (#3353)
andresilva Aug 12, 2019
16821cd
Remove enumerate_trie_root in favour of ordered_trie_root #2382 (#3360)
zzau13 Aug 12, 2019
46886ba
downgrade logging of malformed packets to debug (#3367)
rphmeier Aug 12, 2019
215f6cc
srml-contracts: Contract calls/instantiations to return exit statuses…
jimpo Aug 12, 2019
39094c7
Implement Deserialize for SignedBlock and Header. (#3370)
dvc94ch Aug 12, 2019
fdfdbbb
Remark is trivial and doesn't deserve such a big weight (#3372)
gavofyork Aug 12, 2019
dc35cab
Forcing can be on or off.
gavofyork Aug 12, 2019
677aeca
Revert "Forcing can be on or off."
gavofyork Aug 12, 2019
c683432
Era change can be forced on and forced off (#3374)
gavofyork Aug 12, 2019
d251076
Add code owners file (#3371)
pepyakin Aug 12, 2019
1033845
subkey network default works (#3375)
gavofyork Aug 12, 2019
138bcf0
core/network: Surface peerset's `set_priority_group` in NetworkServic…
mxinden Aug 12, 2019
4557acf
More robust state pinning (#3355)
arkpar Aug 13, 2019
6fbca29
Add transaction pool to Aura and Babe import queue (#3225)
seerscode Aug 13, 2019
e9d4ec4
Replace config field with default value (srml/im-online) (#3388)
cmichi Aug 13, 2019
49db9e3
Make sure that `srml-collective` does not initialize `Members` twice …
bkchr Aug 13, 2019
a622361
clarify comment (#3391)
AndrewSterlin Aug 14, 2019
6d949bc
Minor typo fix. bu -> by (#3402)
JoshOrndorff Aug 14, 2019
8241bef
Remove usage of loop_fn in the GRANDPA tests (#3397)
tomaka Aug 14, 2019
36d7a4f
Make inflation mod public to access inflation functions (#3400)
drewstone Aug 14, 2019
3755819
consensus: refactor aura and babe proposer (#3377)
andresilva Aug 15, 2019
685836a
Rewrite the GRANDPA voter to not use a loop (#3393)
tomaka Aug 15, 2019
6d47fd9
Transition the transaction-pool to new futures (#3394)
tomaka Aug 15, 2019
68d7451
add some docs for consensus-gossip (#3405)
rphmeier Aug 15, 2019
e509946
Update to libp2p 0.12 (#3408)
tomaka Aug 15, 2019
be8e3a5
Fix panic message (#3407)
en Aug 15, 2019
a3f688e
Bad spelling (#3409)
gavofyork Aug 15, 2019
fda954d
sync: fix peer common number on block announce (#3410)
andresilva Aug 15, 2019
ebac2ec
remove weighting and staking dependency in BABE (#3412)
rphmeier Aug 15, 2019
dfe6779
Merge branch 'update-substrate'
jordy25519 Aug 16, 2019
e9ef960
im-online: use new session keys (not upcoming session) (#3414)
andresilva Aug 16, 2019
8258647
session: add handler for genesis session (#3413)
andresilva Aug 16, 2019
20ae487
Fix light client synchronization on master (#3301)
svyatonik Aug 16, 2019
0d743c4
Reject transactions with no provides tags. (#3416)
tomusdrw Aug 16, 2019
755a6c4
Verify signature and session index during apply phase of im-online. (…
tomusdrw Aug 16, 2019
b06c4ef
Respect heap_pages parameter. (#3420)
pepyakin Aug 16, 2019
7eb937e
babe: Introduce secondary slots (Aurababeous) (#3380)
andresilva Aug 16, 2019
9cedbaa
node: update flaming fir chain spec (#3423)
andresilva Aug 16, 2019
541dee9
node: update flaming fir (#3424)
andresilva Aug 16, 2019
5d992d8
Offences reporting and slashing (#3322)
tomusdrw Aug 16, 2019
7854edb
Move checks for renamed functions to `__check_reserved_function_names…
bkchr Aug 16, 2019
fbf89d7
Implements `FindAuthor<u32>` for `srml-aura` (#3426)
bkchr Aug 17, 2019
7708780
Fix staking tests (#3428)
kianenigma Aug 17, 2019
fa253b9
Proper loser handling in approval election. (#3392)
kianenigma Aug 17, 2019
747f0a0
Signed transactions now have affinity with runtime versions (#3430)
gavofyork Aug 18, 2019
5364a42
client: refuse to import blocks that revert finality (#3432)
andresilva Aug 18, 2019
1abeb10
Make node-template in sync with node. (#3422)
gautamdhameja Aug 19, 2019
b9027af
Introduce srml/scored-pool (#3381)
cmichi Aug 19, 2019
949300e
Do not call externalities without `Ext` being set (#3436)
bkchr Aug 19, 2019
1ba689e
grandpa: fix finalization race condition (#3437)
andresilva Aug 19, 2019
04e5c33
Value lifetime is returned from blockchain cache (#3403)
svyatonik Aug 19, 2019
2ac2f06
Update trie crate to hashbrown usage. (#3440)
cheme Aug 19, 2019
db5f494
Custom RPC implementation for `node`. (#3109)
tomusdrw Aug 20, 2019
4e1d637
grandpa: don't recreate SharedVoterSetState (#3441)
andresilva Aug 20, 2019
495ccb6
srml/authority-discovery: Introduce srml module to sign and verify (#…
mxinden Aug 20, 2019
4bf95a0
Fix srml-balance burn implementation (#3443)
gui1117 Aug 20, 2019
6b9ab13
pay out slashes to the treasury (#3446)
rphmeier Aug 20, 2019
25ffc25
sync: don't return on fork tree revert (#3444)
andresilva Aug 20, 2019
50e22e1
docs: Added more correct documentation for using genesis config (#3445)
fubuloubu Aug 20, 2019
763eb45
Merge remote-tracking branch 'substrate/master' into feature/upgrade-…
shaunxw Aug 21, 2019
84f6e55
Update soketto to version 0.2.3 (#3448)
twittner Aug 21, 2019
7db1c10
aura: keystore is required for authoring (#3449)
andresilva Aug 21, 2019
99cabd5
srml-contracts: Apply contract removals immediately (#3417)
jimpo Aug 21, 2019
69f9ada
typo (#3455)
gui1117 Aug 21, 2019
8412e43
decl_module doc (#3451)
gui1117 Aug 21, 2019
b26146e
Fix runtime modules.
shaunxw Aug 22, 2019
e59282b
grandpa: validate honest out of scope catch ups are for the previous …
andresilva Aug 22, 2019
2c6a959
avoid silent ignore (#3450)
gui1117 Aug 22, 2019
895302d
Fix cargo description. (#3458)
marcio-diaz Aug 22, 2019
1869e3f
Remove MakePayment and introduce SignedExtension docs/examples (#3464)
kianenigma Aug 23, 2019
bc9d55f
grandpa: observer doesn't send catch up messages (#3460)
andresilva Aug 23, 2019
549a160
Fix linkemap swap (#3468)
gui1117 Aug 24, 2019
005a16e
Pluralise newHead (#3463)
tomusdrw Aug 24, 2019
ac9836d
Implement HTTP request in offchain workers (#3461)
tomusdrw Aug 24, 2019
57c3714
Show the available key management RPC calls in README (#3474)
bkchr Aug 24, 2019
86a0fc2
GRANDPA links set IDs to sessions. (#3472)
rphmeier Aug 24, 2019
d2cc68e
improve error msg on wrong closure signature (#3467)
gui1117 Aug 24, 2019
7ab9eff
fix digest in check_execution_proof (#3469)
svyatonik Aug 24, 2019
a6cbed6
Clean runtime constants (#3459)
kianenigma Aug 24, 2019
3e975b3
Allow root to force transfers (#3475)
gavofyork Aug 24, 2019
337a0b2
add Copy to Moment type (#3476)
xlc Aug 25, 2019
0905c2f
Merge remote-tracking branch 'substrate/master' into feature/upgrade-…
shaunxw Aug 26, 2019
bb05d84
Update readme.
shaunxw Aug 26, 2019
91269b4
Commons stale doughnuts checks in dispatch.
shaunxw Aug 27, 2019
c86ea97
Change circle ci cache version.
shaunxw Aug 28, 2019
1bf9cb4
Increase test timeout
jordy25519 Aug 28, 2019
7790c4e
Use sscache
jordy25519 Aug 29, 2019
cef7043
Fix env
jordy25519 Aug 29, 2019
205f382
Use cargo check
jordy25519 Aug 29, 2019
0d86dac
Fix cache paths
jordy25519 Aug 29, 2019
888ba31
Fix im-online dev deps
jordy25519 Aug 29, 2019
89e431c
Fix cache restore key
jordy25519 Aug 29, 2019
ec8996b
Fix missing dev-deps #2
jordy25519 Aug 30, 2019
50694d1
Fix syn features
jordy25519 Aug 30, 2019
5ca2f60
Fix executor/test-runtime dev-deps
jordy25519 Sep 2, 2019
50150c1
..
jordy25519 Sep 2, 2019
3b4a80b
FIx CARG_TARGET_DIR
jordy25519 Sep 2, 2019
2b134bc
...
jordy25519 Sep 2, 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
  •  
  •  
  •  
156 changes: 118 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,143 @@
version: 2
jobs:
build:
machine:
image: ubuntu-1604:201903-01
environment:
RUST_VERSION: nightly-2019-07-14
version: 2.1
commands:
install-rust:
steps:
- checkout
- restore_cache:
keys:
- v1-cargo-global-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-{{ checksum ".circleci/RUST_VERSION" }}
- v1-cargo-global-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-
- run:
name: Install rust
name: Install Rust
command: |
sudo apt-get update
sudo apt-get -y install apt-utils cmake pkg-config libssl-dev git llvm clang
if [ ! -d /home/circleci/.cargo ]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
source $HOME/.cargo/env
source ~/.cargo/env
rustup toolchain install $RUST_VERSION
rustup default $RUST_VERSION
rustup target add wasm32-unknown-unknown --toolchain=$RUST_VERSION
export RUSTC_WRAPPER=""
command -v wasm-gc || cargo install --git https://github.com/alexcrichton/wasm-gc --force
rustup target add x86_64-unknown-linux-musl --toolchain=$RUST_VERSION
rustc --version; cargo --version; rustup --version
install-sccache:
steps:
- run:
name: Install sccache
command: |
curl -L https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-unknown-linux-musl.tar.gz | tar -xz
chmod +x sccache-0.2.10-x86_64-unknown-linux-musl/sccache
mv sccache-0.2.10-x86_64-unknown-linux-musl/sccache ~/.cargo/bin/sccache
sccache --version
restore-cache:
steps:
- restore_cache:
keys:
- v1-cargo-wasm-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-{{ checksum ".circleci/RUST_VERSION" }}
- v1-cargo-wasm-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-
name: Restore sccache
key: sccache-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
save-cache:
steps:
- save_cache:
name: Save sccache
# We use {{ epoch }} to always upload a fresh cache:
# Of course, restore_cache will not find this exact key,
# but it will fall back to the closest key (aka the most recent).
# See https://discuss.circleci.com/t/add-mechanism-to-update-existing-cache-key/9014/13
key: sccache-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ epoch }}
paths:
- runtime/wasm/target/
key: v1-cargo-wasm-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-{{ checksum ".circleci/RUST_VERSION" }}
- restore_cache:
keys:
- v1-target-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-{{ checksum ".circleci/RUST_VERSION" }}
- v1-target-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-
- run:
name: Build binary
command: |
source $HOME/.cargo/env
cargo build
no_output_timeout: 40m
- "~/.cache/sccache"
save-target-cache:
steps:
- save_cache:
name: Save target cache
paths:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
- target/debug/incremental
key: v1-target-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-{{ checksum ".circleci/RUST_VERSION" }}
- save_cache:
paths:
- /home/circleci/.cargo
key: v1-cargo-global-cache-{{ arch }}-{{ checksum "Cargo.lock" }}-{{ checksum ".circleci/RUST_VERSION" }}
- runtime/wasm/target/
key: target-cache-{{ arch }}-{{ checksum ".circleci/RUST_VERSION" }}-{{ .Environment.CIRCLE_BRANCH }}-{{ epoch }}
restore-target-cache:
steps:
- restore_cache:
name: Restore target cache
key: target-cache-{{ arch }}-{{ checksum ".circleci/RUST_VERSION" }}-{{ .Environment.CIRCLE_BRANCH }}
jobs:
build:
machine:
image: ubuntu-1604:201903-01
environment:
BASH_ENV: ~/.cargo/env
RUST_VERSION: nightly-2019-07-14
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 10G
steps:
- checkout
- install-rust
- install-sccache
- restore-cache
- restore-target-cache
- run:
name: Build
command: |
cargo check
no_output_timeout: 30m
- save-cache
- save-target-cache
- run:
name: Run srml tests
command: |
export CARGO_TARGET_DIR="~/project/target"
for p in $(find srml -name Cargo.toml | sort -u | sed 's/Cargo.toml//g'); do
pushd $p > /dev/null
echo "testing $p"
cargo test
popd > /dev/null
done
- save-cache
- save-target-cache
- run:
name: Run node tests
command: |
export CARGO_TARGET_DIR="~/project/target"
for p in $(find node -name Cargo.toml | sort -u | sed 's/Cargo.toml//g'); do
pushd $p > /dev/null
echo "testing $p"
cargo test
popd > /dev/null
done
- save-cache
- save-target-cache
- run:
name: Run core tests
command: |
export CARGO_TARGET_DIR="~/project/target"
for p in $(find core -name Cargo.toml | sort -u | sed 's/Cargo.toml//g'); do
pushd $p > /dev/null
echo "testing $p"
cargo test
popd > /dev/null
done
- save-cache
- save-target-cache
- run:
name: Run node-template tests
command: |
export CARGO_TARGET_DIR="~/project/target"
for p in $(find node-template -name Cargo.toml | sort -u | sed 's/Cargo.toml//g'); do
pushd $p > /dev/null
echo "testing $p"
cargo test
popd > /dev/null
done
- save-cache
- save-target-cache
- run:
name: Run tests
name: Run subkey tests
command: |
source $HOME/.cargo/env
cargo test --all --verbose --locked
no_output_timeout: 60m
export CARGO_TARGET_DIR="~/project/target"
for p in $(find subkey -name Cargo.toml | sort -u | sed 's/Cargo.toml//g'); do
pushd $p > /dev/null
cargo test
popd > /dev/null
done
- save-cache
- save-target-cache

35 changes: 31 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -193,7 +202,6 @@ check-web-wasm:
- time cargo web build -p substrate-keystore
- time cargo web build -p substrate-executor
- time cargo web build -p substrate-network
- time cargo web build -p substrate-offchain
- time cargo web build -p substrate-panic-handler
- time cargo web build -p substrate-peerset
- time cargo web build -p substrate-primitives
Expand Down Expand Up @@ -281,6 +289,25 @@ 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-docker-release: &publish-docker-release
Expand Down Expand Up @@ -308,7 +335,7 @@ build-rust-doc-release:
- docker push $CONTAINER_IMAGE:$VERSION
- docker push $CONTAINER_IMAGE:latest

publish-docker-substrate:
publish-docker-substrate:
stage: publish
<<: *publish-docker-release
# collect VERSION artifact here to pass it on to kubernetes
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