This one weird trick cuts contract test runtime by over 50% in CI (#1941)
* CI: Collapse each test task to a single wsrun call * Restore test-rest to invoking wsrun many times
This commit is contained in:
parent
ccb89fb26a
commit
212a2d229a
@ -51,18 +51,7 @@ jobs:
|
|||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-multisig
|
- run: yarn wsrun test:circleci @0x/contracts-multisig @0x/contracts-utils @0x/contracts-exchange-libs @0x/contracts-erc20 @0x/contracts-erc721 @0x/contracts-erc1155 @0x/contracts-extensions @0x/contracts-asset-proxy @0x/contracts-exchange @0x/contracts-exchange-forwarder @0x/contracts-coordinator @0x/contracts-dev-utils
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-utils
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-exchange-libs
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-erc20
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-erc721
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-erc1155
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-extensions
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-asset-proxy
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-exchange
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-exchange-forwarder
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-coordinator
|
|
||||||
- run: yarn wsrun test:circleci @0x/contracts-dev-utils
|
|
||||||
test-contracts-geth:
|
test-contracts-geth:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:9-browsers
|
- image: circleci/node:9-browsers
|
||||||
@ -74,18 +63,7 @@ jobs:
|
|||||||
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
- repo-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
# HACK(albrow): we need to sleep 10 seconds to ensure the devnet is
|
# HACK(albrow): we need to sleep 10 seconds to ensure the devnet is
|
||||||
# initialized
|
# initialized
|
||||||
- run: sleep 10 && TEST_PROVIDER=geth yarn wsrun test @0x/contracts-multisig
|
- run: sleep 10 && TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-multisig @0x/contracts-utils @0x/contracts-exchange-libs @0x/contracts-erc20 @0x/contracts-erc721 @0x/contracts-erc1155 @0x/contracts-extensions @0x/contracts-asset-proxy @0x/contracts-exchange @0x/contracts-exchange-forwarder @0x/contracts-coordinator @0x/contracts-dev-utils
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-utils
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-exchange-libs
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-erc20
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-erc721
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-erc1155
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-extensions
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-asset-proxy
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-exchange
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-exchange-forwarder
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-coordinator
|
|
||||||
- run: TEST_PROVIDER=geth yarn wsrun test:circleci @0x/contracts-dev-utils
|
|
||||||
test-publish:
|
test-publish:
|
||||||
resource_class: medium+
|
resource_class: medium+
|
||||||
docker:
|
docker:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user