-
Notifications
You must be signed in to change notification settings - Fork 147
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 documentation consistent, and raise PermissionError for exec #308
Conversation
Thank you for cleaning up that messiness in the docs + other inconsistencies! Some other related changes we should make here:
Note that we try to use known attributes of the exception to provide as detailed an error message as we can. |
I've done this; is there a test to which we should add this error case? |
Thanks! No, there aren't currently any tests for tool error dispatching. |
* Make documentation consistent, and raise PermissionError also from docker sandbox * ruff * mypy * Changes from code review --------- Co-authored-by: jjallaire <[email protected]> Co-authored-by: jjallaire-aisi <[email protected]>
This PR contains:
What is the current behavior? (You can also link to an open issue here)
The sandbox interface docs are inconsistent.
Sandbox behaviour is inconsistent when you try to exec something that's not executable.
What is the new behavior?
Docs are consistent.
The docker sandbox checks for "permission denied", for consistency with local. (Note: you could argue that the current behaviour of the docker sandbox makes more sense, and instead we should change the local sandbox. Happy to change this PR to do that instead)
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
It's possible that someone is coupled to the current behaviour, but the code here is an edge case already, so seems unlikely.
Other information: