This repository was archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
CI optimizations #10297
Merged
Merged
CI optimizations #10297
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c572a7c
CI optimizations
TriplEight 543c254
fix stripping
TriplEight b1905b4
new dockerfile
TriplEight 6ec2f2b
no need n submodule upd
TriplEight dea8936
review
TriplEight aeaa4a1
moved dockerfile
TriplEight 9b93870
it becomes large
TriplEight 0d68577
onchain update depends on s3
TriplEight 4073a3d
fix dependency
TriplEight cb038d7
fix cache status
TriplEight 0bcd560
fix cache status
TriplEight e29476b
new cache status
TriplEight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -2,11 +2,14 @@ stages: | |
- test | ||
- build | ||
- publish | ||
- publish-onchain | ||
- optional | ||
|
||
image: parity/rust:gitlab-ci | ||
image: parity/rust-parity-ethereum-build:stretch | ||
|
||
variables: | ||
GIT_STRATEGY: fetch | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
CI_SERVER_NAME: "GitLab CI" | ||
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo" | ||
CARGO_TARGET: x86_64-unknown-linux-gnu | ||
|
@@ -40,25 +43,28 @@ test-linux: | |
variables: | ||
RUN_TESTS: all | ||
script: | ||
- scripts/gitlab/test-all.sh stable | ||
- scripts/gitlab/test-all.sh | ||
tags: | ||
- rust-stable | ||
- linux-docker | ||
|
||
test-audit: | ||
stage: test | ||
script: | ||
- scripts/gitlab/cargo-audit.sh | ||
- set -e | ||
- set -u | ||
- cargo audit | ||
tags: | ||
- rust-stable | ||
- linux-docker | ||
|
||
build-linux: | ||
stage: build | ||
only: *releaseable_branches | ||
script: | ||
- scripts/gitlab/build-unix.sh | ||
- sccache -s | ||
<<: *collect_artifacts | ||
tags: | ||
- rust-stable | ||
- linux-docker | ||
|
||
build-darwin: | ||
stage: build | ||
|
@@ -112,19 +118,66 @@ publish-snap: | |
allow_failure: true | ||
<<: *collect_artifacts | ||
|
||
publish-awss3: | ||
stage: publish | ||
publish:onnet:update: | ||
stage: publish-onchain | ||
only: *releaseable_branches | ||
cache: {} | ||
cache: {} | ||
dependencies: | ||
- build-linux | ||
- build-darwin | ||
- build-windows | ||
- publish:awss3:release | ||
TriplEight marked this conversation as resolved.
Show resolved
Hide resolved
|
||
before_script: *determine_version | ||
script: | ||
- scripts/gitlab/publish-awss3.sh | ||
- scripts/gitlab/publish-onnet-update.sh | ||
tags: | ||
- shell | ||
- linux-docker | ||
|
||
# configures aws for fast uploads/syncs | ||
.s3_before_script: &s3_before_script | ||
before_script: | ||
- mkdir -p ${HOME}/.aws | ||
- | | ||
cat > ${HOME}/.aws/config <<EOC | ||
[default] | ||
s3 = | ||
max_concurrent_requests = 20 | ||
max_queue_size = 10000 | ||
multipart_threshold = 64MB | ||
multipart_chunksize = 16MB | ||
max_bandwidth = 50MB/s | ||
use_accelerate_endpoint = false | ||
addressing_style = path | ||
EOC | ||
|
||
publish:awss3:release: | ||
image: parity/awscli:latest | ||
stage: publish | ||
only: *releaseable_branches | ||
cache: {} | ||
dependencies: | ||
- build-linux | ||
- build-darwin | ||
- build-windows | ||
variables: | ||
GIT_STRATEGY: none | ||
<<: *s3_before_script | ||
script: | ||
- echo "__________Push binaries to AWS S3____________" | ||
- case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in | ||
(beta|stable|nightly) | ||
export BUCKET=releases.parity.io/ethereum; | ||
;; | ||
(*) | ||
export BUCKET=builds-parity; | ||
;; | ||
esac | ||
- aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/ | ||
after_script: | ||
- aws s3 ls s3://${BUCKET}/latest/ | ||
--recursive --human-readable --summarize | ||
tags: | ||
- linux-docker | ||
|
||
publish-docs: | ||
stage: publish | ||
|
@@ -150,22 +203,3 @@ build-android: | |
allow_failure: true | ||
<<: *collect_artifacts | ||
|
||
test-beta: | ||
stage: optional | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did we remove this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two jobs were to test the code on |
||
variables: | ||
RUN_TESTS: cargo | ||
script: | ||
- scripts/gitlab/test-all.sh beta | ||
tags: | ||
- rust-beta | ||
allow_failure: true | ||
|
||
test-nightly: | ||
stage: optional | ||
TriplEight marked this conversation as resolved.
Show resolved
Hide resolved
|
||
variables: | ||
RUN_TESTS: all | ||
script: | ||
- scripts/gitlab/test-all.sh nightly | ||
tags: | ||
- rust-nightly | ||
allow_failure: true |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this an additional stage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should depend on publishing to AWS.
This is not the final version of CI though.