Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/coil-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ jobs:
- name: Install browser secret helper build libraries
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config

# Electron downloads its binary on first import. Without this, two desktop test files can
# start that download together and collide ("File exists"), failing whichever loses.
# Upstream's ci.yml runs the same step before its tests.
- name: Ensure Electron runtime is installed
run: vp run --filter @t3tools/desktop ensure:electron

# `@t3tools/monorepo` is the root package; its `test` script is `vp run -r test`.
- name: Test
run: vp run --filter '!t3' --filter '!@t3tools/monorepo' --filter '!@t3tools/web' test --testTimeout=120000 --hookTimeout=120000
Expand Down
3 changes: 3 additions & 0 deletions scripts/coil/sync-upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ fi
# for an upstream CPU-bound test here. 120s is the highest any package configures
# (apps/server), so it never LOWERS a package's own budget. --hookTimeout is NOT implied by
# --testTimeout: a beforeAll/beforeEach carries its own budget.
# ensure:electron runs first so parallel desktop test files do not race Electron's first-import
# download.
# Keep in sync with `.github/workflows/coil-ci.yml`.
TEST_FLAGS="--testTimeout=120000 --hookTimeout=120000"
for script in $VERIFY; do
if [[ "$script" == "test" ]]; then
commands=(
"$RUN --filter @t3tools/desktop ensure:electron"
"$RUN --filter !@t3tools/monorepo --filter !@t3tools/web test $TEST_FLAGS"
"$RUN --filter @t3tools/web test $TEST_FLAGS"
)
Expand Down
Loading