-
Notifications
You must be signed in to change notification settings - Fork 142
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
An intermittent venv corruption problem with running transforms #274
Comments
@daw3rd I verified your observation that make help is the culprit in corrupting the venv. So, this is now a reproducible bug in the following way: |
I've narrowed this a bit further. cd transforms/noop/python
make venv
du -s venv # shows a certain size...
make run-local-sample # ... and this works
make -n test # Should have no effect on local file system
du -s venv # shows a different size!...
make run-local-sample # ...and so this fails. It seems to be specific to the |
This seems to be the culprit, which is fixed if I add the
This is very odd though since Calling all make gurus: @revit13 @deanwampler To reproduce (in transforms/noop/python):
|
Signed-off-by: David Wood <dawood@us.ibm.com>
Fix issue #274 for venv corruption via make -n venv
Fixed in PR #302 which as been merged. |
Search before asking
Component
Transforms/Other
What happened + What you expected to happen
The problem is an intermittent corruption of venv for an unknown reason while running any test transform. By intermittent, of course, it means that it is not reproducible all the time, but when it happens (and it does have a temporary work-around solution), it is very frustrating. Here is what happens:
After a clean clone of the repo, you go to a transform like noop and do a make venv. Then, you go to a subdirectory like the python subdirectory and try to test using make run-local-sample. You will see errors like this:
make run-local-sample
/Applications/Xcode.app/Contents/Developer/usr/bin/make RUN_FILE=noop_local.py .transforms.run-src-file
source venv/bin/activate;
cd src;
python noop_local.py
Traceback (most recent call last):
File “/Users/shahrokhdaijavad/Documents/GitHub/data-prep-kit-testing/data-prep-kit/transforms/universal/noop/python/src/noop_local.py”, line 15, in
from data_processing.data_access import DataAccessLocal
ModuleNotFoundError: No module named ‘data_processing’
make[1]: *** [.defaults.run-src-file] Error 1
make: *** [.transforms.run-local-sample] Error 2
Now, if you clean the corrupted venv using: make clean venv run-local-sample and then run the make run-local-sample again, it works without any error!
Reproduction script
Please see above.
Anything else
This happens intermittently.
OS
MacOS (limited support)
Python
3.11.x
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: