Spaces:
Sleeping
Sleeping
Commit ·
5192a21
1
Parent(s): d104b04
phase-5 pre-deploy: move Dockerfile to repo root for HF Space, bump EXEC_TIMEOUT 2→3
Browse files
server/Dockerfile → Dockerfile
RENAMED
|
File without changes
|
shutdown_gym/restricted_python.py
CHANGED
|
@@ -37,7 +37,12 @@ ALLOWED_BUILTINS = {
|
|
| 37 |
}
|
| 38 |
|
| 39 |
MAX_CODE_CHARS = 4096
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
RESULT_TRUNCATE = 4096
|
| 42 |
ERROR_MESSAGE_TRUNCATE = 512
|
| 43 |
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
MAX_CODE_CHARS = 4096
|
| 40 |
+
# Bumped 2→3 in Phase 5: macOS spawn-context Process startup occasionally
|
| 41 |
+
# spikes to 200–800 ms when the suite runs many subprocess tests back-to-back,
|
| 42 |
+
# causing trivial "_result = 1+2" code to time out under a 2-second budget.
|
| 43 |
+
# 3 s preserves the functional contract (busy loops still terminate) and
|
| 44 |
+
# eliminates the recurring flake observed during Phases 3 and 4.
|
| 45 |
+
EXEC_TIMEOUT_SECONDS = 3
|
| 46 |
RESULT_TRUNCATE = 4096
|
| 47 |
ERROR_MESSAGE_TRUNCATE = 512
|
| 48 |
|