Commit 7354256
committed
test: suppress .pyc writeback in bazel test runs
Bazel tests cd into their source directory before running, so importing
a shared helper (helpers.py, ppl_aux.py, ...) made CPython write
__pycache__/*.pyc files back into the source tree during the action.
Bazel's --guard_against_concurrent_changes then detected the mid-action
modification and skipped caching the result, emitting many
"Skipping uploading outputs because of concurrent modifications"
warnings and forcing those tests to re-run every invocation.
Set PYTHONDONTWRITEBYTECODE=1 in the bazel-only test wrapper so no
bytecode is written, eliminating the warnings and restoring caching.
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>1 parent 12073df commit 7354256
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
| |||
0 commit comments