Commit 899307d
committed
ci: fix core-floor + full-stack test failures unblocked by lint fix
- core floor: @skip_no_stack the two stack-dependent autosync tests
(test_sync_auto_toggle_*, test_run_once_runs_*) that import inspector.auth /
routes.v2_api and fail with ModuleNotFoundError(fastapi) on the numpy-only gate.
The pure policy tests still run on core floor; full-stack jobs run the rest.
- dashboard_v2: test_import_folder_route_rejects_path_outside_roots hardcoded
tempfile.TemporaryDirectory(dir='C:\'), which is FileNotFoundError on Linux CI.
Use C:\ on Windows, /tmp on POSIX so the 'outside the import roots' dir exists.
- sync: loads_strict relied on the JSON scanner raising RecursionError for deeply
nested input, but Python 3.12 parses ~1000-deep input without raising, so the
deep-nesting DoS guard (and its test) broke on 3.12. Add an explicit _scan_depth
guard (_MAX_BUNDLE_DEPTH=200) so pathological bundles are rejected as ValueError
on every Python version, not just where the scanner recurses.
ruff clean; affected suites pass (test_sync/autosync/dashboard_v2: 65 tests).1 parent 52d0952 commit 899307d
3 files changed
Lines changed: 44 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
267 | 300 | | |
268 | 301 | | |
269 | 302 | | |
270 | 303 | | |
271 | 304 | | |
272 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
273 | 309 | | |
274 | | - | |
| 310 | + | |
275 | 311 | | |
276 | 312 | | |
277 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
617 | 618 | | |
618 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
619 | 623 | | |
620 | 624 | | |
621 | 625 | | |
| |||
0 commit comments