Skip to content

Conversation

@hittyt
Copy link
Collaborator

@hittyt hittyt commented Feb 12, 2026

Summary

Closes #225

  • 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.

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

- 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.
@jwx0925
Copy link
Collaborator

jwx0925 commented Feb 12, 2026

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@jwx0925
Copy link
Collaborator

jwx0925 commented Feb 12, 2026

add a windows e2e job in real-e2e.yml

@Pangjiping
Copy link
Collaborator

Pangjiping commented Feb 12, 2026

add a windows e2e job in real-e2e.yml

just add curl execd's endpoint under server's lifecycle smoke test, do not add more complex e2e test for windows

@Pangjiping Pangjiping added bug Something isn't working component/server labels Feb 12, 2026
Pangjiping
Pangjiping previously approved these changes Feb 12, 2026
- 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.
@hittyt hittyt merged commit 281b976 into alibaba:main Feb 12, 2026
11 of 12 checks passed
@hittyt hittyt deleted the fix/windows-path branch February 13, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working component/server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

我用win11本地搭建得opensandbox,启动服务,镜像容器也启动了,但是在调用示例得时候,出现了核查sandbox失败得情况

3 participants