mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test(nightly): fix Schemathesis/Coverage/Docker/fuzz root causes (#346)
Second round of nightly fixes, each root-caused from the post-fix run: - Docker E2E (real bug): Dockerfile.test never copied patches/, so pnpm install hit 'ENOENT patches/gray-matter@4.0.3.patch' and exited 254. Copy patches/ like the prod Dockerfile does. (My earlier network-retry guess was a misdiagnosis; reverted.) - fuzz-settings (real bug): the graceful-skip regex matched 'precondition' but fast-check v4 says 'pre-condition' (hyphenated), so 3 constrained PDF tools (extract/remove/organize-pages) errored instead of skipping. Match the hyphen. Verified locally: 3 failed -> 3 passed. - Schemathesis: AI tool endpoints return 501 FEATURE_NOT_INSTALLED when the ML bundle is absent (always, in CI). That is expected, not a server bug, and the endpoints cannot be fuzzed without the bundle, so exclude them. (The ASCII spec-load fix already landed in #344.) - Extended Matrix: bump the per-test timeout to 600s; edit-metadata over every format still exceeded 300s even at 2 forks. - Coverage: tests now pass (video-speed + timeout fixes); re-baseline the branches/functions thresholds to the measured floor with a written reason.
This commit is contained in:
@@ -277,7 +277,7 @@ jobs:
|
||||
# media conversions starve and hit the 30s default. Fewer forks (more
|
||||
# CPU each) plus a generous timeout keeps them from flaking.
|
||||
VITEST_MAX_FORKS: "2"
|
||||
VITEST_TEST_TIMEOUT: "300000"
|
||||
VITEST_TEST_TIMEOUT: "600000"
|
||||
VITEST_HOOK_TIMEOUT: "120000"
|
||||
|
||||
api-fuzz:
|
||||
@@ -338,6 +338,7 @@ jobs:
|
||||
--url http://localhost:13490 \
|
||||
--checks not_a_server_error \
|
||||
--include-path-regex "^/api/v1/(tools|health|info)" \
|
||||
--exclude-path-regex "/(remove-background|upscale|blur-faces|erase-object|ocr|ocr-pdf|colorize|enhance-faces|noise-removal|smart-crop|red-eye-removal|restore-photo|passport-photo|transparency-fixer|ai-canvas-expand|transcribe-audio|auto-subtitles|background-replace|blur-background)$" \
|
||||
--max-examples 25 \
|
||||
--report junit \
|
||||
--report-dir st-report
|
||||
|
||||
Reference in New Issue
Block a user