-
Notifications
You must be signed in to change notification settings - Fork 80
fix: use posixpath for container internal paths #234
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
Conversation
- Replaces os.path with posixpath for paths used inside containers to ensure forward slashes are used regardless of the host OS (fixing Windows support). - Adds unit tests to verify container internal paths. - Formats code and optimizes imports in docker.py.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
add a windows e2e job in real-e2e.yml |
just add |
- Adds windows-latest to the OS matrix in server-test.yml. - Sets bash as the default shell for cross-platform command compatibility. - Ensures unit tests (including Windows path fixes) are validated on both Linux and Windows environments.
- Updates API schema to allow Windows drive letter paths. - Enhances ensure_valid_host_path validator to correctly handle Windows absolute paths and drive letters. - Normalizes path separators during security checks to prevent bypasses. - Adjusts tests to be cross-platform compatible.
- Wraps delete_context calls in managed_ctx with asyncio.wait_for. - Prevents dead containers or network issues from blocking the test suite indefinitely.
- Adds runWithTimeout helper to prevent hanging runCode calls from blocking tests indefinitely. - Updates multi-language isolation tests to use this timeout. - Relaxes interrupt event validation to expect at least one terminal event instead of an exact XOR.
- Adds explicit timeouts and exception handling for code interrupt operations. - Prevents tests from hanging when SSE streams are abruptly closed by the server after an interrupt. - Relaxes result object validation to favor event-based verification after an interrupt.
- Corrects logger.warning() to logger.warn() to match SLF4J/Log4j API.
Summary
Testing
Breaking Changes
Checklist