-
Notifications
You must be signed in to change notification settings - Fork 283
BUG: fixup amrvac sample data file names in tests #3317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@Xarthisius we may have a problem here. Answer tests are failing on Jenkins. This is expected, since some files changed names, but the issue is that only the filename (not the containing directory) seems to be used to name the storage file, while several of the new files are named
Is there any pre-existing mechanism to help us here ? I'm thinking we'd need to change the naming convention for those storage files, but that would imply changing ALL of them, probably, which seems a little too much. |
@yt-fido test this please |
For now you can split them into separate answer files. There's no rule saying it has to be one file per frontend. Use as many as you need. The issue will go away with pytest migration. |
Nice. I think it's safe to drop the old ones completely so I'm going to replace the old file. I hope that's ok ! |
That doesn't solve the issue that all datasets have the same ds_name, which will conflict in the answer file. When I said multiple answer files for overlapping names I meant something like this: diff --git a/tests/tests.yaml b/tests/tests.yaml
index 6a194a3d8..ffefa8b5d 100644
--- a/tests/tests.yaml
+++ b/tests/tests.yaml
@@ -3,9 +3,13 @@ answer_tests:
local_art_003: # PR 3081, 3101
- yt/frontends/art/tests/test_outputs.py:test_d9p
- local_amrvac_008: # PR 2945
+ local_amrvac_something_001: # PR 2945
- yt/frontends/amrvac/tests/test_outputs.py:test_domain_size
+
+ local_amrvac_bw_polar_001: # PR 2945
- yt/frontends/amrvac/tests/test_outputs.py:test_bw_polar_2d
+
+ local_amrvac_bw_3d_001: # PR 2945
- yt/frontends/amrvac/tests/test_outputs.py:test_blastwave_cartesian_3D |
oh that's right, thanks for your quick reply ! |
@yt-fido test this please |
@yt-fido test this please |
I forgot to review this and now the logs are gone... |
@Xarthisius I guess I must have done something wrong here, possibly corrupted my own answers... any chance you could take a look ? |
PR Summary
fix #3315
substitutions were done semi-automatically with the apply-subs CLI, using this input file:
and using the following command