Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 52fe28a

Browse files
authored
Backports for beta 2.1.2 (#9649)
* parity-version: bump beta to 2.1.2 * docs(rpc): push the branch along with tags (#9578) * docs(rpc): push the branch along with tags * ci: remove old rpc docs script * Remove snapcraft clean (#9585) * Revert " add snapcraft package image (master) (#9584)" This reverts commit ceaedbb. * Update package-snap.sh * Update .gitlab-ci.yml * ci: fix regex 🙄 (#9597) * docs(rpc): annotate tag with the provided message (#9601) * Update ropsten.json (#9602) * HF in POA Sokol (2018-09-19) (#9607) poanetwork/poa-chain-spec#86 * fix(network): don't disconnect reserved peers (#9608) The priority of && and || was borked. * fix failing node-table tests on mac os, closes #9632 (#9633) * ethcore-io retries failed work steal (#9651) * ethcore-io uses newer version of crossbeam && retries failed work steal * ethcore-io non-mio service uses newer crossbeam * remove master from releasable branches (#9655) * remove master from releasable branches need backporting in beta fix https://gitlab.parity.io/parity/parity-ethereum/-/jobs/101065 etc * add except for snap packages for master * Test fix for windows cache name... (#9658) * Test fix for windows cache name... * Fix variable name. * fix(light_fetch): avoid race with BlockNumber::Latest (#9665) * Calculate sha3 instead of sha256 for push-release. (#9673) * Calculate sha3 instead of sha256 for push-release. * Add pushes to the script. * Hardfork the testnets (#9562) * ethcore: propose hardfork block number 4230000 for ropsten * ethcore: propose hardfork block number 9000000 for kovan * ethcore: enable kip-4 and kip-6 on kovan * etcore: bump kovan hardfork to block 9.2M * ethcore: fix ropsten constantinople block number to 4.2M * ethcore: disable difficulty_test_ropsten until ethereum/tests are updated upstream * ci: fix push script (#9679) * ci: fix push script * Fix copying & running on windows. * CI: Remove unnecessary pipes (#9681) * ci: reduce gitlab pipelines significantly * ci: build pipeline for PR * ci: remove dead weight * ci: remove github release script * ci: remove forever broken aura tests * ci: add random stuff to the end of the pipes * ci: add wind and mac to the end of the pipe * ci: remove snap artifacts * ci: (re)move dockerfiles * ci: clarify job names * ci: add cargo audit job * ci: make audit script executable * ci: ignore snap and docker files for rust check * ci: simplify audit script * ci: rename misc to optional * ci: add publish script to releaseable branches * ci: more verbose cp command for windows build * ci: fix weird binary checksum logic in push script * ci: fix regex in push script for windows * ci: simplify gitlab caching * docs: align README with ci changes * ci: specify default cargo target dir * ci: print verbose environment * ci: proper naming of scripts * ci: restore docker files * ci: use docker hub file * ci: use cargo home instead of cargo target dir * ci: touch random rust file to trigger real builds * ci: set cargo target dir for audit script * ci: remove temp file * ci: don't export the cargo target dir in the audit script * ci: fix windows unbound variable * docs: fix gitlab badge path * rename deprecated gitlab ci variables https://docs.gitlab.com/ee/ci/variables/#9-0-renaming * ci: fix git compare for nightly builds * test: skip c++ example for all platforms but linux * ci: add random rust file to trigger tests * ci: remove random rust file * disable cpp lib test for mac, win and beta (#9686) * cleanup ci merge * ci: fix tests * fix bad-block reporting no reason (#9638) * ethcore: fix detection of major import (#9552) * sync: set state to idle after sync is completed * sync: refactor sync reset * Don't hash the init_code of CREATE. (#9688) * Docker: run as parity user (#9689) * Implement CREATE2 gas changes and fix some potential overflowing (#9694) * Implement CREATE2 gas changes and fix some potential overflowing * Ignore create2 state tests * Split CREATE and CREATE2 in gasometer * Generalize rounding (x + 31) / 32 to to_word_size * make instantSeal engine backwards compatible, closes #9696 (#9700) * ethcore: delay ropsten hardfork (#9704) * fix (light/provider) : Make `read_only executions` read-only (#9591) * `ExecutionsRequest` from light-clients as read-only This changes so all `ExecutionRequests` from light-clients are executed as read-only which the `virtual``flag == true ensures. This boost up the current transaction to always succeed Note, this only affects `eth_estimateGas` and `eth_call` AFAIK. * grumbles(revert renaming) : TransactionProof * grumbles(trace) : remove incorrect trace * grumbles(state/prove_tx) : explicit `virt` Remove the boolean flag to determine that a `state::prove_transaction` whether it should be executed in a virtual context or not. Because of that also rename the function to `state::prove_transction_virtual` to make more clear * CI: Skip docs job for nightly (#9693) * ci: force-tag wiki changes * ci: force-tag wiki changes * ci: skip docs job for master and nightly * ci: revert docs job checking for nightly tag * ci: exclude docs job from nightly builds in gitlab script
1 parent 8e347b2 commit 52fe28a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+966
-1007
lines changed

.gitlab-ci.yml

Lines changed: 84 additions & 205 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
11
stages:
22
- test
33
- build
4-
- package
54
- publish
6-
- docs
5+
- optional
76

87
image: parity/rust:gitlab-ci
98

109
variables:
1110
CI_SERVER_NAME: "GitLab CI"
12-
CARGO_HOME: "${CI_PROJECT_DIR}/cargo"
13-
11+
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
1412
BUILD_TARGET: ubuntu
1513
BUILD_ARCH: amd64
1614
CARGO_TARGET: x86_64-unknown-linux-gnu
1715

1816
cache:
1917
key: "${CI_JOB_NAME}"
2018
paths:
21-
- ${CI_PROJECT_DIR}/target/
22-
- ${CI_PROJECT_DIR}/cargo/
19+
- ./target
20+
- ./.cargo
2321

2422
.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
2523
only: &releaseable_branches
26-
- master
2724
- stable
2825
- beta
2926
- tags
3027

31-
.publishable_branches: # list of git refs for publishing builds to the "production" locations
32-
only: &publishable_branches
33-
- nightly # Our nightly builds from schedule, on `master`
34-
- /^v2.*$/ # Our version tags
35-
3628
.collect_artifacts: &collect_artifacts
3729
artifacts:
3830
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
@@ -49,57 +41,16 @@ cache:
4941
- export VERSION
5042
- echo "Version = ${VERSION}"
5143

52-
53-
54-
#### stage: test
55-
56-
test-rust-stable: &test
44+
test-linux:
5745
stage: test
46+
variables:
47+
RUN_TESTS: all
5848
script:
59-
- scripts/gitlab/test.sh stable
49+
- scripts/gitlab/test-all.sh stable
6050
tags:
6151
- rust-stable
6252

63-
.optional_test: &optional_test
64-
<<: *test
65-
allow_failure: true
66-
only:
67-
- master
68-
69-
test-rust-beta:
70-
<<: *optional_test
71-
script:
72-
- scripts/gitlab/test.sh beta
73-
74-
test-rust-nightly:
75-
<<: *optional_test
76-
script:
77-
- scripts/gitlab/test.sh nightly
78-
79-
test-lint-rustfmt:
80-
<<: *optional_test
81-
script:
82-
- scripts/gitlab/rustfmt.sh
83-
84-
test-lint-clippy:
85-
<<: *optional_test
86-
script:
87-
- scripts/gitlab/clippy.sh
88-
89-
test-coverage-kcov:
90-
stage: test
91-
only:
92-
- master
93-
script:
94-
- scripts/gitlab/coverage.sh
95-
tags:
96-
- shell
97-
allow_failure: true
98-
99-
100-
#### stage: build
101-
102-
build-linux-ubuntu-amd64: &build
53+
build-linux:
10354
stage: build
10455
only: *releaseable_branches
10556
variables:
@@ -109,59 +60,23 @@ build-linux-ubuntu-amd64: &build
10960
<<: *collect_artifacts
11061
tags:
11162
- rust-stable
112-
allow_failure: true
113-
114-
build-linux-ubuntu-i386:
115-
<<: *build
116-
image: parity/rust-i686:gitlab-ci
117-
variables:
118-
CARGO_TARGET: i686-unknown-linux-gnu
119-
tags:
120-
- rust-i686
121-
122-
build-linux-ubuntu-arm64:
123-
<<: *build
124-
image: parity/rust-arm64:gitlab-ci
125-
variables:
126-
CARGO_TARGET: aarch64-unknown-linux-gnu
127-
tags:
128-
- rust-arm
12963

130-
build-linux-ubuntu-armhf:
131-
<<: *build
132-
image: parity/rust-armv7:gitlab-ci
133-
variables:
134-
CARGO_TARGET: armv7-unknown-linux-gnueabihf
135-
tags:
136-
- rust-arm
137-
138-
build-linux-android-armhf:
139-
<<: *build
140-
image: parity/rust-android:gitlab-ci
141-
variables:
142-
CARGO_TARGET: armv7-linux-androideabi
143-
tags:
144-
- rust-arm
145-
146-
build-darwin-macos-x86_64:
147-
<<: *build
64+
build-darwin:
65+
stage: build
66+
only: *releaseable_branches
14867
variables:
14968
CARGO_TARGET: x86_64-apple-darwin
15069
CC: gcc
15170
CXX: g++
71+
script:
72+
- scripts/gitlab/build-unix.sh
15273
tags:
153-
- osx
74+
- rust-osx
15475
<<: *collect_artifacts
15576

156-
build-windows-msvc-x86_64:
77+
build-windows:
15778
stage: build
15879
only: *releaseable_branches
159-
cache:
160-
key: "%CI_JOB_NAME%"
161-
paths:
162-
- "%CI_PROJECT_DIR%/target/"
163-
- "%CI_PROJECT_DIR%/cargo/"
164-
# No cargo caching, since fetch-locking on Windows gets stuck
16580
variables:
16681
CARGO_TARGET: x86_64-pc-windows-msvc
16782
script:
@@ -170,132 +85,96 @@ build-windows-msvc-x86_64:
17085
- rust-windows
17186
<<: *collect_artifacts
17287

173-
174-
#### stage: package
175-
176-
package-linux-snap-amd64: &package_snap
177-
stage: package
88+
publish-docker:
89+
stage: publish
17890
only: *releaseable_branches
179-
image: parity/snapcraft:gitlab-ci
18091
cache: {}
181-
before_script: *determine_version
182-
variables:
183-
CARGO_TARGET: x86_64-unknown-linux-gnu
18492
dependencies:
185-
- build-linux-ubuntu-amd64
186-
script:
187-
- scripts/gitlab/package-snap.sh
93+
- build-linux
18894
tags:
189-
- rust-stable
190-
<<: *collect_artifacts
191-
192-
package-linux-snap-i386:
193-
<<: *package_snap
194-
variables:
195-
BUILD_ARCH: i386
196-
CARGO_TARGET: i686-unknown-linux-gnu
197-
dependencies:
198-
- build-linux-ubuntu-i386
199-
200-
package-linux-snap-arm64:
201-
<<: *package_snap
202-
variables:
203-
BUILD_ARCH: arm64
204-
CARGO_TARGET: aarch64-unknown-linux-gnu
205-
dependencies:
206-
- build-linux-ubuntu-arm64
207-
208-
package-linux-snap-armhf:
209-
<<: *package_snap
210-
variables:
211-
BUILD_ARCH: armhf
212-
CARGO_TARGET: armv7-unknown-linux-gnueabihf
213-
dependencies:
214-
- build-linux-ubuntu-armhf
215-
216-
217-
#### stage: publish
95+
- shell
96+
script:
97+
- scripts/gitlab/publish-docker.sh parity
21898

219-
publish-linux-snap-amd64: &publish_snap
99+
publish-awss3:
220100
stage: publish
221-
only: *publishable_branches
222-
image: parity/snapcraft:gitlab-ci
101+
only: *releaseable_branches
223102
cache: {}
224-
before_script: *determine_version
225-
variables:
226-
BUILD_ARCH: amd64
227103
dependencies:
228-
- package-linux-snap-amd64
104+
- build-linux
105+
- build-darwin
106+
- build-windows
107+
before_script: *determine_version
229108
script:
230-
- scripts/gitlab/publish-snap.sh
109+
- scripts/gitlab/publish-awss3.sh
231110
tags:
232-
- rust-stable
233-
234-
publish-linux-snap-i386:
235-
<<: *publish_snap
236-
variables:
237-
BUILD_ARCH: i386
238-
dependencies:
239-
- package-linux-snap-i386
240-
241-
publish-linux-snap-arm64:
242-
<<: *publish_snap
243-
variables:
244-
BUILD_ARCH: arm64
245-
dependencies:
246-
- package-linux-snap-arm64
247-
248-
publish-linux-snap-armhf:
249-
<<: *publish_snap
250-
variables:
251-
BUILD_ARCH: armhf
252-
dependencies:
253-
- package-linux-snap-armhf
111+
- shell
254112

255-
publish-docker-parity-amd64: &publish_docker
256-
stage: publish
257-
only: *releaseable_branches
113+
docs-jsonrpc:
114+
stage: optional
115+
only:
116+
- tags
117+
except:
118+
- nightly
258119
cache: {}
259-
dependencies:
260-
- build-linux-ubuntu-amd64
120+
script:
121+
- scripts/gitlab/docs-jsonrpc.sh
261122
tags:
262123
- shell
263-
allow_failure: true
124+
125+
cargo-audit:
126+
stage: optional
264127
script:
265-
- scripts/gitlab/publish-docker.sh parity
128+
- scripts/gitlab/cargo-audit.sh
129+
tags:
130+
- rust-stable
266131

267-
publish-docker-parityevm-amd64:
268-
<<: *publish_docker
132+
test-android:
133+
stage: optional
134+
image: parity/rust-android:gitlab-ci
135+
variables:
136+
CARGO_TARGET: armv7-linux-androideabi
269137
script:
270-
- scripts/gitlab/publish-docker.sh parity-evm
138+
- scripts/gitlab/test-all.sh stable
139+
tags:
140+
- rust-arm
271141

272-
publish-github-and-s3:
273-
stage: publish
274-
only: *publishable_branches
275-
cache: {}
276-
dependencies:
277-
- build-linux-ubuntu-amd64
278-
- build-linux-ubuntu-i386
279-
- build-linux-ubuntu-armhf
280-
- build-linux-ubuntu-arm64
281-
- build-darwin-macos-x86_64
282-
- build-windows-msvc-x86_64
283-
before_script: *determine_version
142+
test-darwin:
143+
stage: optional
144+
variables:
145+
CARGO_TARGET: x86_64-apple-darwin
146+
CC: gcc
147+
CXX: g++
148+
RUN_TESTS: cargo
284149
script:
285-
- scripts/gitlab/push.sh
150+
- scripts/gitlab/test-all.sh stable
286151
tags:
287-
- shell
288-
allow_failure: true
152+
- rust-osx
289153

154+
test-windows:
155+
stage: optional
156+
variables:
157+
CARGO_TARGET: x86_64-pc-windows-msvc
158+
RUN_TESTS: cargo
159+
script:
160+
- sh scripts/gitlab/test-all.sh stable
161+
tags:
162+
- rust-windows
290163

291-
####stage: docs
164+
test-beta:
165+
stage: optional
166+
variables:
167+
RUN_TESTS: cargo
168+
script:
169+
- scripts/gitlab/test-all.sh beta
170+
tags:
171+
- rust-beta
292172

293-
docs-rpc-json:
294-
stage: docs
295-
only:
296-
- tags
297-
cache: {}
173+
test-nightly:
174+
stage: optional
175+
variables:
176+
RUN_TESTS: all
298177
script:
299-
- scripts/gitlab/rpc-docs.sh
178+
- scripts/gitlab/test-all.sh nightly
300179
tags:
301-
- shell
180+
- rust-nightly

0 commit comments

Comments
 (0)