Repository navigation
ci: shard backend tests and run test suites with compose run - #413
Merged
Conversation
The API test job (~15 min) had become the longest job in every run, and a frontend shard repeatedly hit its step timeout after Playwright had already exited 0, because `up --exit-code-from` hung while stopping the stack. Backend sharding: - Add pytest-split and run the backend suite across 3 matrix groups, passing PYTEST_SPLITS/PYTEST_GROUP into docker-compose.api-test.yml (--splits/--group). Defaults to 1/1 so local runs execute the full suite. xdist (-n auto) still runs within each group. Test execution: - Replace `up --exit-code-from` with `docker compose run --rm -T` in both the API and frontend test jobs. `run` starts the runner's dependencies (honoring health checks) and returns the runner's exit code without tearing down the stack. Timeouts and logs: - Set limits from observed durations (frontend shards ~3-6 min, API groups expected ~5-7 min), keeping inner < outer so failures surface cleanly: Playwright globalTimeout 15 min < test steps 20 min < jobs 25 min. - Cap the log-dump steps at 3 min and --tail=500 so they can't use up the remaining job time.
PurpleGuitar
approved these changes
Nov 18, 2026
linearcombination
merged commit Nov 18, 2026
50de21c
into
WycliffeAssociates:doc-dev.walink.org
15 checks passed
linearcombination
deleted the
improve-github-actions-ci-behavior-for-backend-tests
branch
November 18, 2026 20:45
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.
Closes: #411, Closes: #412
The API test job (~15 min) had become the longest job in every run, and a frontend shard repeatedly hit its step timeout after Playwright had already exited 0, because
up --exit-code-fromhung while stopping the stack.Backend sharding:
Test execution:
up --exit-code-fromwithdocker compose run --rm -Tin both the API and frontend test jobs.runstarts the runner's dependencies (honoring health checks) and returns the runner's exit code without tearing down the stack.Timeouts and logs: