Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit ff1907f

Browse files
debug(ci): cycle wash before unit tests
Signed-off-by: Victor Adossi <[email protected]>
1 parent 44d4f7e commit ff1907f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/rust_ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,23 @@ jobs:
3535
shared-key: "${{ matrix.os }}-shared-cache"
3636
- name: Install nextest
3737
uses: taiki-e/install-action@nextest
38+
39+
# Sometimes, unit tests will get stuck executing wash during the
40+
# loading CA certificates from the :otp store step. All you see is:
41+
#
42+
# > stderr log: 14:38:03.656 [info] Loading 467 CA(s) from :otp store
43+
#
44+
# when this happens, tests like can_download_and_start_wasmcloud get stuck and fail.
45+
# to avoid this, we can call wash up/down and at least cause this loading as early as possible,
46+
# hoping it does not happen again (or completes near instantaneously) during a test.
47+
- name: Build wash
48+
run: make build
49+
- name: Cycle wash
50+
run: |
51+
cargo run -- up;
52+
sleep 3;
53+
cargo run -- down;
54+
3855
- name: Run all wash & wash-lib unit tests
3956
run: make test-wash-ci
4057

0 commit comments

Comments
 (0)