Add test for duplicate PYTHONPATH in modextrapaths#19061
Add test for duplicate PYTHONPATH in modextrapaths#19061Flamefire wants to merge 5 commits intoeasybuilders:developfrom
PYTHONPATH in modextrapaths#19061Conversation
|
@boegel Anything missing here? This is a CI test change only so shouldn't cause any regressions for users (but actually helps avoiding them) |
d45f0b6 to
aec46ee
Compare
1ef4ac2 to
e4fbb9b
Compare
|
Retargeted 5.0x |
|
@Flamefire Sync with |
e4fbb9b to
7e4054b
Compare
|
Done. Tests pass |
f450551 to
2eb7040
Compare
|
@boegel Rebased this again and extended to checking the resolved values as well as one instance used Can this be merged before new ECs with those paths get introduced? |
|
@Flamefire Needs more love (again), sorry... |
2eb7040 to
8b99903
Compare
|
Rebased. Trivial merge conflict after a cleanup of a condition |
test/easyconfigs/easyconfigs.py
Outdated
| for d in default_dirs if d in extra_python_path) | ||
| if easyblock == 'PythonBundle' or easyblock.endswith('PythonPackage'): | ||
| sanity_check_dirs = ec.get('sanity_check_paths', dict()).get('dirs') or [] | ||
| default_dirs = ( |
There was a problem hiding this comment.
Should this use [ and not ( ??
There was a problem hiding this comment.
The general guideline I follow is: If the list doesn't need to be modified it will be a tuple
Not sure if this is also faster (due to less capabilities to cater for) but at least it avoids accidental changes where none are intended
There was a problem hiding this comment.
But you are modifying it in the with ec.allow... for loop, line 1376
There was a problem hiding this comment.
Good catch, not sure how I missed that as it would always fail
|
@boegel Please check this out. It looks good and clean to me... |
|
@Flamefire Hmm... I just caused this to have a conflict when merging 21362 Please adjust it |
7ee70db to
b8b6c2d
Compare
|
Rebased and fixed |
And similar test for `sanity_check_paths`. Intended to avoid issues fixed in easybuilders#13385
b8b6c2d to
9fa9549
Compare
And similar test for
sanity_check_paths.Intended to avoid issues fixed in #13385
Edit: Changed to using regexs to catch hard-coded version numbers instead of
%(pyshortver)s.Example failure using one of the faulty ECs from #13385:
Requires:
to fix the test failure due to unresolved template