-
Notifications
You must be signed in to change notification settings - Fork 1
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
make test_shim work when in non-home, or symlinked directories. #140
Comments
uh... not putting a priority on this or anything... I'm just thinking that since you're testing this stuff, this should be on your radar next time you're in the area... |
I remember this being painful... it might not be a feasible/worthwhile thing to do. |
I committed the changes to the tests that I had made to get the tests working better on ppp. They're on the https://github.com/MetPX/sarrac/tree/test_tweaks branch.
|
so when processes do not close files, the exit_cleanup() routine in libsr3shim.c has to resolve the pathnames for open file descriptors. so we have, in shim_post.sh for example... files being closed their paths are always "realpathed" so posting via symbolic paths fails. choice between post_baseDir=${HOME}:
|
so the problem is here: Lines 725 to 738 in c7b91a2
Need to allow for ther post_baseDir to be present in symlinked and realpath form not just compare strings. the removal of the post_baseDir from the full path... needs to work even when given realpath, when post_baseDir is a symlinked one. ... we have a reverse problem... where if post_baseDir is the realpath... then when given a symlinked path... it also requires conversion... but because realpath conversion is of the input path is done by realpath_adjust and such a setting is only valid with realpathPost=True, the reverse case should never occur. So by fixing the first case, we should be solving the entire problem. |
so likely want to:
|
alternative solutions discussed:
|
Add realpath_post_baseDir for #140
with the merge we have definitely made excellent progress... but not done... make test_shim_post is good... but later ones still fail... |
I'm optimistic that the fix for redirection will fix at least some of those, I'll test that branch again |
purpose is to get the tests to pass when run on supercomputer.
branches with bits of work on this:
which was merged from:
the non_utf8 and test_shim failures in the normal cases have since been isolated and merged, and so the work here is to extract the symlink related patches and get them into something coherent to merge, so in future, people can run the test_shim on the supercomputer.
The text was updated successfully, but these errors were encountered: