File tree Expand file tree Collapse file tree
code-interpreter/tests/integration_tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 - name : Pull executor Docker image
7373 run : docker pull onyxdotapp/python-executor-sci:latest
7474
75- - name : Test Docker image can run
76- run : |
77- echo "Testing if the Docker image can start and sleep..."
78- docker run --rm -d --name test-container onyxdotapp/python-executor-sci:latest sleep 30
79- sleep 2
80- docker ps -a | grep test-container || echo "Container not found!"
81- docker logs test-container || echo "No logs"
82- docker stop test-container || true
83-
8475 - name : Run integration tests
85- run : uv run pytest tests/integration_tests -v --tb=short -x -s
76+ run : uv run pytest tests/integration_tests -v --tb=short -x
8677
8778 - name : Show Docker container logs on failure
8879 if : failure()
Original file line number Diff line number Diff line change @@ -44,17 +44,14 @@ def test_numpy_pandas_matplotlib_stack() -> None:
4444 json = {
4545 "code" : code ,
4646 "stdin" : None ,
47- "timeout_ms" : 2000 ,
47+ "timeout_ms" : 5000 ,
4848 },
4949 )
5050
5151 assert response .status_code == 200
5252 payload = response .json ()
53- print (f"DEBUG: Full payload: { payload } " )
54- assert payload ["stderr" ] == "" , f"stderr was: { payload ['stderr' ]} "
55- assert payload ["exit_code" ] == 0 , (
56- f"exit_code was: { payload ['exit_code' ]} , timed_out: { payload .get ('timed_out' )} "
57- )
53+ assert payload ["stderr" ] == ""
54+ assert payload ["exit_code" ] == 0
5855 assert payload ["timed_out" ] is False
5956
6057 stdout = payload ["stdout" ].strip ()
You can’t perform that action at this time.
0 commit comments