refactor: enable parallel ci bats tests by enabling dfx start and bootstrap to pick random webserver ports#918
Closed
refactor: enable parallel ci bats tests by enabling dfx start and bootstrap to pick random webserver ports#918
Conversation
Running the e2e bats test sequentially took 15m on my laptop. We should run them all in parallel such that we don't have to wait so long on CI.
added 2 commits
August 12, 2020 13:12
Contributor
Author
|
getting evaluation failures in this rebased branch. closing this in favor of #920 |
dfinity-bot
added a commit
that referenced
this pull request
Jun 10, 2021
## Changelog for advisory-db: Branch: master Commits: [rustsec/advisory-db@bd8a0f67...86ed5681](rustsec/advisory-db@bd8a0f6...86ed568) * [`a7ffa73f`](rustsec/advisory-db@a7ffa73) Add security advisory for evm crate related to memory over-allocation ([RustSec/advisory-db#909](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/909)) * [`26467a96`](rustsec/advisory-db@26467a9) Assigned RUSTSEC-2021-0066 to evm ([RustSec/advisory-db#910](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/910)) * [`7e4cbf61`](rustsec/advisory-db@7e4cbf6) evm-core: fix crate name ([RustSec/advisory-db#911](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/911)) * [`60b9a9e9`](rustsec/advisory-db@60b9a9e) Bump rustsec-admin to v0.4.3 ([RustSec/advisory-db#919](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/919)) * [`c8a2c774`](rustsec/advisory-db@c8a2c77) Add RUSTSEC notice for CVE-2021-32629, a Cranelift miscompilation bug. ([RustSec/advisory-db#918](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/918)) * [`1c038433`](rustsec/advisory-db@1c03843) fixes [RustSec/advisory-db#915](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/915) - remove duplicate word ([RustSec/advisory-db#916](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/916)) * [`256e923a`](rustsec/advisory-db@256e923) Assigned RUSTSEC-2021-0067 to cranelift-codegen ([RustSec/advisory-db#921](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/921)) * [`23334c68`](rustsec/advisory-db@23334c6) Add advisory for iced-x86 soundness bug ([RustSec/advisory-db#914](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/914)) * [`36bf272a`](rustsec/advisory-db@36bf272) iced-x86: fix lint ([RustSec/advisory-db#922](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/922)) * [`a845d0a9`](rustsec/advisory-db@a845d0a) Assigned RUSTSEC-2021-0068 to iced-x86 ([RustSec/advisory-db#923](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/923)) * [`86e2c664`](rustsec/advisory-db@86e2c66) Add lettre smtp vulnerability ([RustSec/advisory-db#924](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/924)) * [`aa04921a`](rustsec/advisory-db@aa04921) Assigned RUSTSEC-2021-0069 to lettre ([RustSec/advisory-db#925](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/925)) * [`3e51834f`](rustsec/advisory-db@3e51834) Make ranges in trust-dns-proto advisory non-overlapping ([RustSec/advisory-db#929](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/929)) * [`40afced5`](rustsec/advisory-db@40afced) Remove range overlaps, fix some range specifications ([RustSec/advisory-db#930](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/930)) * [`46e657b2`](rustsec/advisory-db@46e657b) Add advisory for nalgebra VecStorage/MatrixVec ([RustSec/advisory-db#931](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/931)) * [`9984f61e`](rustsec/advisory-db@9984f61) Assigned RUSTSEC-2021-0070 to nalgebra ([RustSec/advisory-db#932](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/932)) * [`958120be`](rustsec/advisory-db@958120b) Update RUSTSEC-2020-0043.md ([RustSec/advisory-db#934](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/934)) * [`86ed5681`](rustsec/advisory-db@86ed568) Add GHSA mentions to `aliases` field. This is becoming more important with OSV enabling interop between databases ([RustSec/advisory-db#937](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/937))
mergify bot
pushed a commit
that referenced
this pull request
Jun 10, 2021
## Changelog for advisory-db: Branch: master Commits: [rustsec/advisory-db@bd8a0f67...86ed5681](rustsec/advisory-db@bd8a0f6...86ed568) * [`a7ffa73f`](rustsec/advisory-db@a7ffa73) Add security advisory for evm crate related to memory over-allocation ([RustSec/advisory-db#909](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/909)) * [`26467a96`](rustsec/advisory-db@26467a9) Assigned RUSTSEC-2021-0066 to evm ([RustSec/advisory-db#910](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/910)) * [`7e4cbf61`](rustsec/advisory-db@7e4cbf6) evm-core: fix crate name ([RustSec/advisory-db#911](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/911)) * [`60b9a9e9`](rustsec/advisory-db@60b9a9e) Bump rustsec-admin to v0.4.3 ([RustSec/advisory-db#919](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/919)) * [`c8a2c774`](rustsec/advisory-db@c8a2c77) Add RUSTSEC notice for CVE-2021-32629, a Cranelift miscompilation bug. ([RustSec/advisory-db#918](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/918)) * [`1c038433`](rustsec/advisory-db@1c03843) fixes [RustSec/advisory-db#915](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/915) - remove duplicate word ([RustSec/advisory-db#916](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/916)) * [`256e923a`](rustsec/advisory-db@256e923) Assigned RUSTSEC-2021-0067 to cranelift-codegen ([RustSec/advisory-db#921](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/921)) * [`23334c68`](rustsec/advisory-db@23334c6) Add advisory for iced-x86 soundness bug ([RustSec/advisory-db#914](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/914)) * [`36bf272a`](rustsec/advisory-db@36bf272) iced-x86: fix lint ([RustSec/advisory-db#922](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/922)) * [`a845d0a9`](rustsec/advisory-db@a845d0a) Assigned RUSTSEC-2021-0068 to iced-x86 ([RustSec/advisory-db#923](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/923)) * [`86e2c664`](rustsec/advisory-db@86e2c66) Add lettre smtp vulnerability ([RustSec/advisory-db#924](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/924)) * [`aa04921a`](rustsec/advisory-db@aa04921) Assigned RUSTSEC-2021-0069 to lettre ([RustSec/advisory-db#925](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/925)) * [`3e51834f`](rustsec/advisory-db@3e51834) Make ranges in trust-dns-proto advisory non-overlapping ([RustSec/advisory-db#929](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/929)) * [`40afced5`](rustsec/advisory-db@40afced) Remove range overlaps, fix some range specifications ([RustSec/advisory-db#930](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/930)) * [`46e657b2`](rustsec/advisory-db@46e657b) Add advisory for nalgebra VecStorage/MatrixVec ([RustSec/advisory-db#931](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/931)) * [`9984f61e`](rustsec/advisory-db@9984f61) Assigned RUSTSEC-2021-0070 to nalgebra ([RustSec/advisory-db#932](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/932)) * [`958120be`](rustsec/advisory-db@958120b) Update RUSTSEC-2020-0043.md ([RustSec/advisory-db#934](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/934)) * [`86ed5681`](rustsec/advisory-db@86ed568) Add GHSA mentions to `aliases` field. This is becoming more important with OSV enabling interop between databases ([RustSec/advisory-db#937](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/937))
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I'm going to merge these commits into #877
So far this PR does a couple things
dfx startdfx bootstrapanddfx startcould not handle the user providing port0i.e. telling dfx to pick a random port for the webserver.dfx/webserver-port(similar to.dfx/pid) so that it can be queried by dfx (or by the bats test)the second and third bullet will enable the bats tests to run in parallel in darwin (w/o network sandbox) since we'll tell dfx start or dfx bootstrap to use port
0, the kernel will dynamically allocate a port, and the bats test can read.dfx/webserver-port