|
79 | 79 | shell: sh
|
80 | 80 | run: |
|
81 | 81 | choco install -y cmake protoc openssl
|
82 |
| -
|
83 |
| - # Increase stack size on Windows tests; (non-main) threads are spawned with 2MB |
84 |
| - # default stack size, which `orb_can_render_peers_in_the_sphere_address_book` |
85 |
| - # uses (at time of writing) slightly more than 2MB. While we could set the thread |
86 |
| - # stack size at runtime (via tokio's `thread_stack_size`), it appears to not solve the |
87 |
| - # problem, possibly due to the harness thread overflowing (e.g. a non-main thread that |
88 |
| - # we can't configure within the test). In lieu of that, set RUST_MIN_STACK to increase |
89 |
| - # the stack sizes of threads created by tokio within tests, as well as the test harness |
90 |
| - # threads themselves. |
91 |
| - # |
92 |
| - # While our main thread isn't under fire here, notating this for future use: |
93 |
| - # https://users.rust-lang.org/t/stack-overflow-when-compiling-on-windows-10/50818/8 |
94 |
| - export RUST_MIN_STACK=4000000 |
95 | 82 | - name: 'Install environment packages (Linux)'
|
96 | 83 | if: ${{ matrix.platform == 'ubuntu-latest' }}
|
97 | 84 | run: |
|
@@ -122,6 +109,21 @@ jobs:
|
122 | 109 | FEATURES="--features ${{matrix.features}}"
|
123 | 110 | fi
|
124 | 111 |
|
| 112 | + # Increase stack size on Windows tests; (non-main) threads are spawned with 2MB |
| 113 | + # default stack size, which `orb_can_render_peers_in_the_sphere_address_book` |
| 114 | + # uses (at time of writing) slightly more than 2MB. While we could set the thread |
| 115 | + # stack size at runtime (via tokio's `thread_stack_size`), it appears to not solve the |
| 116 | + # problem, possibly due to the harness thread overflowing (e.g. a non-main thread that |
| 117 | + # we can't configure within the test). In lieu of that, set RUST_MIN_STACK to increase |
| 118 | + # the stack sizes of threads created by tokio within tests, as well as the test harness |
| 119 | + # threads themselves. |
| 120 | + # |
| 121 | + # While our main thread isn't under fire here, notating this for future use: |
| 122 | + # https://users.rust-lang.org/t/stack-overflow-when-compiling-on-windows-10/50818/8 |
| 123 | + if [ "${{matrix.platform}}" = "windows-latest" ]; then |
| 124 | + export RUST_MIN_STACK=4000000 |
| 125 | + fi |
| 126 | +
|
125 | 127 | cargo +${{ matrix.toolchain }} nextest run $FEATURES --retries 5 --color always 2>&1 | tee test-results/log
|
126 | 128 | env:
|
127 | 129 | NOOSPHERE_LOG: academic
|
|
0 commit comments