-
Notifications
You must be signed in to change notification settings - Fork 25
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
Traceback bug in artifact fetch #1766
Comments
I'm worried this has same root as #1761 that bst2 is throwing blocking_activity indiscriminately to a child process. This can result in quite a lot of corner cases. |
I met the same error when bst 2.0.0 is run with http{,s}_proxy environment variables set. |
Don't rely on the ability to get pickled exceptions from blocking_activity as that doesn't seem to work with any supported python version. May help with #1766
Don't rely on the ability to get pickled exceptions from blocking_activity as that doesn't seem to work with any supported python version. May help with #1766
Tested 3778522 but the issue still persists. |
It looks like this is bug is in the other end, hence unrelated to change by @abderrahim |
@abderrahim I think the problem is we should not be instantiating opener class before child process. The instance is not picklable. The class probably is. |
Looks like the problem is here: https://github.com/python/cpython/blob/main/Lib/urllib/request.py#L799 lambda is not picklable. |
downloadable source probably needs quite invasive redesign to avoid the issue |
@staehle do you have HTTPS_PROXY or HTTP_PROXY set? |
Tested #1820 and bst now runs with http{,s}_proxy environment variables set. |
I think the work by @abderrahim is still important because if there's exception raised from blocking_activity, it will currently silently debug in a way that is more or less impossible to debug. But my submission should fix your problem. Latest version passes netrc tests as well. |
Oh hey, no, we did not. |
Interesting. The pickling error clearly is related to usage of proxy. Maybe this code in standard library has changed. Anyhow, I did quite a bit of effort to make sure as little as possible of the urllib.request logic happens in parent process which improves picklability. |
I can share this now, it's nothing big, but this is the only thing that was in
This did only happen that one time though like I mentioned -- never saw it again |
Hello:
Evaluating BuildStream as a meta build system for an embedded Linux OS, one of the users in my evaluation group attempted to do a first-time build and got this BuildStream traceback/bug. I can't share too much unfortunately, but this is a from-scratch project and is currently using a temporary BuildBarn instance as a caching server only using the instructions here: https://docs.buildstream.build/1.95/using_configuring_cache_server.html / https://github.com/apache/buildstream/tree/1.95.2/.github/compose
This "components/target/rsync" element is fairly far down the element dependency list
I don't see anything amiss in the Docker logs of the BuildBarn server for this component, or around the timestamp this would have happened.
BuildStream version used is
1.95.2.dev0
, and unfortunately my user cannot reproduce it, so it might have been a one-time thing. Regardless, thought you should know :)Is there any other information I can provide about this?
Thanks!
The text was updated successfully, but these errors were encountered: