Repository navigation
test: run the Python suite in a working folder of its own - #196
Conversation
python_package ran pytest in the build folder. An in-memory deck (DeckFile.from_text) takes its side files from the working directory, and wavekin_modes writes wave_frequencies.txt there. Under ctest -j the two overlap: in a Release run on the Prescott kernel the parity test test_standalone_mixed_deck_runs_on_the_aggregate_in_its_current read a half-written file and got "wave_frequencies.txt needs at least two `omega Re Im` rows" instead of the refusal it checks (the Haswell run of the same build passed). A one-row wave_frequencies.txt in the build folder reproduces it with the old working folder. python_package now runs in build/python_package_cwd, which no test writes into; the suite passes there with that file in the build folder. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
📖 7 files modified
Preview · build overview · CableDyn · built Dec. 3, 2026, 10:15 a.m. UTC |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
python_packageran pytest in the build folder. An in-memory deck (DeckFile.from_text) takes its side files (wave_frequencies.txt,current_profile.txt, ...) from the working directory, and the Fortran testwavekin_modeswriteswave_frequencies.txtinto the same build folder. Underctest -jthe two overlap.In a local Release run (Prescott kernel, 438 of 439) the parity test failed:
The Haswell run of the same build passed: the result depended on what
wavekin_modeshad written at that moment, not on the kernel.Change
python_packageruns inbuild/python_package_cwd, a folder no test writes into (WORKING_DIRECTORYinCMakeLists.txt).Tests
wave_frequencies.txtin the build folderctest -R python_packagepre-commitpasses onCMakeLists.txt.