Skip to content
This repository was archived by the owner on Sep 21, 2024. It is now read-only.

Commit c40e088

Browse files
committed
u
1 parent 127e44e commit c40e088

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/run_test_suite.yaml

+15-13
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,6 @@ jobs:
7979
shell: sh
8080
run: |
8181
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
9582
- name: 'Install environment packages (Linux)'
9683
if: ${{ matrix.platform == 'ubuntu-latest' }}
9784
run: |
@@ -122,6 +109,21 @@ jobs:
122109
FEATURES="--features ${{matrix.features}}"
123110
fi
124111
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+
125127
cargo +${{ matrix.toolchain }} nextest run $FEATURES --retries 5 --color always 2>&1 | tee test-results/log
126128
env:
127129
NOOSPHERE_LOG: academic

0 commit comments

Comments
 (0)