You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI skips the server tests that read docs/deploy.md and docs/build.md when a commit changes only those documents #159
What is broken. .github/workflows/ci.yml picks which jobs run from the changed paths. The server job runs for server/*|api/*|requirements.txt|.github/workflows/* and for nothing else. Four server tests, all already on main, read documents outside those paths and fail when a document drifts from the code:
test_database_url.py and test_deployment_config.py read docs/deploy.md.
test_roles.py reads docs/deploy.md.
test_env_example.py reads docs/deploy.md and docs/build.md.
A commit that touches only one of those documents sets neither output. Both jobs are skipped by their if:, and the workflow is green with none of those tests having run. docs/app/ had exactly this problem once, and the Android case carries a comment about it.
The failure scenario.
A pull request edits only docs/deploy.md. It removes a row from the settings table that test_deployment_config.py compares against app/config.py, or it rewrites the postgresql+asyncpg:// line that test_database_url.py checks.
The «What changed» job sets server=false and android=false.
CI is green, and the pull request merges.
The next pull request that touches server/ fails on a document it never changed.
The same gap, widened by PR #140 (not yet on main). That branch adds more readers:
An edit to the last two currently runs only the server job, never the Android one.
Fix. Widen both cases of the filter so that every file a job's tests read triggers that job. Say why in the same style as the existing docs/app/ comment. This lands on PR #140's branch.
Activity
Run each CI job whenever a file its tests read changes, not only its …
Document the phone's half: the first run through your own school's di…
Run the server's tests when a file they read outside server/ changes