mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-28 19:16:33 +00:00
server_cancel_e2e.py starts a real sd-server with any model the user has (or talks to one that is already running) and checks the cancel route as a client sees it: a job that is generating is stopped and ends as cancelled, asking again is harmless, a queued job is cancelled without ever starting, ?wait=0 answers at once and the pending stop shows as cancel_requested, a synchronous request that was waiting behind the cancelled job completes normally, a finished job is left alone, an unknown id is 404, an invalid wait is 400, /health counts the stopped jobs without a failure or a step down, and stopping jobs writes no error line to the server log. It uses 64x64 images and jobs that never run to the end, so its duration does not depend on the number of steps; it starts with a warm-up job because the first generation can read the weights from a slow disk. Only the standard library is needed. It passed against a CPU build with a synthetic model (31 checks, 182 s, almost all of it the warm-up). The file is added to the allowlist in .gitignore and to test/README.md. Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
32 lines
528 B
Text
32 lines
528 B
Text
build*/
|
|
cmake-build-*/
|
|
dist/
|
|
# Fork: the curated robustness suite is tracked; everything else in test/ stays local.
|
|
test/*
|
|
!test/README.md
|
|
!test/security_smoke.sh
|
|
!test/api_robustness.cpp
|
|
!test/pe_imports_test.cpp
|
|
!test/file_handle_pool_test.cpp
|
|
!test/profile_test.cpp
|
|
!test/backend_fit_plan_test.cpp
|
|
!test/server_recovery_test.cpp
|
|
!test/server_cancel_e2e.py
|
|
!test/fuzz_model_loader.py
|
|
tests/
|
|
.vscode/
|
|
.idea/
|
|
.cache/
|
|
*.swp
|
|
*.bat
|
|
*.bin
|
|
*.exe
|
|
*.gguf
|
|
output*.png
|
|
models*
|
|
*.log
|
|
preview.png
|
|
.claude/
|
|
CLAUDE.local.md
|
|
.agents/
|
|
.codex/
|