Michael Cahill
961297f09d
M14: API runner contract test (verification milestone)
...
- Add test_api_runner_contract.py: proves API txt2img path invokes ProcessingRunner
- No routing changes: API continues to call process_images (orchestration boundary)
- Monkeypatch CI env + runner.run; call API method directly
- M14_plan.md, M14_toolcalls.md: governance docs
Phase III — Runner & Service Boundary
Made-with: Cursor
2026-03-16 23:21:18 -07:00
m-cahill
4dd0499987
M13: txt2img path through runner ( #31 )
...
* M13: txt2img path through runner — contract test and verification
- Add test_txt2img_runner_contract.py verifying txt2img invokes ProcessingRunner
- No routing changes: process_images already delegates to runner (M10)
- Update M13_plan, M13_toolcalls, M13_run1
- Scope: UI txt2img only; API/img2img in M14/M15
Made-with: Cursor
* docs(M13): add CI run1 results — smoke tests pass
Made-with: Cursor
2026-03-13 15:17:06 -07:00
Michael Cahill
c146ef787c
M12: Add runner instrumentation hooks (on_prepare, on_execute, on_finalize)
...
- Add optional no-op hooks to ProcessingRunner lifecycle
- Hooks invoked: prepare -> on_prepare -> execute -> on_execute -> finalize -> on_finalize
- Add test_runner_hooks_called contract test
- No runtime behavior change; structural seam for M13+ progress/cancellation
Made-with: Cursor
2026-03-12 14:25:36 -07:00
Michael Cahill
fb705fe646
M11: Runner lifecycle surface (prepare/execute/finalize)
...
- Refactor ProcessingRunner.run() to delegate through lifecycle stages
- Add prepare(), execute(), finalize() with pass-through behavior
- Add test_runner_lifecycle_order contract test
- Preserve identical behavior; no API/CLI changes
Phase III — Runner & Service Boundary
Made-with: Cursor
2026-03-11 23:38:17 -07:00
m-cahill
0d11b587ca
fix(M10): defer modules.processing import in test_processing_runner ( #28 )
...
Quality tests fail during collection because test_processing_runner imports
modules.processing at module level, which triggers sd_samplers before
shared.opts is initialized. Defer import to inside test and add initialize
fixture so webui/opts are loaded first.
Made-with: Cursor
2026-03-11 22:54:02 -07:00
m-cahill
880723f100
M10: ProcessingRunner skeleton ( #27 )
...
* M10: ProcessingRunner skeleton
- Add modules/runtime/runner.py with ProcessingRunner and ProcessingRequest
- Wire process_images to delegate through runner (internal only)
- Add test/quality/test_processing_runner.py contract test
Behavior-preserving. Zero blast radius. All callers unchanged.
Made-with: Cursor
* M10: Add run1 and toolcalls update
Made-with: Cursor
* M10: Update Phase III roadmap, add closeout prompt
- Phase III: M11 lifecycle, M12 instrumentation, M13 txt2img, M14 API, M15 queue
- Phase IV-VII renumbered (M16-M33)
- Add M10_closeout_prompt.md for Cursor
Made-with: Cursor
2026-03-11 22:46:56 -07:00
Michael Cahill
3039abb1a0
fix(M05): ensure config exists so opts.data populated for test_opts_override
...
When opts.load() gets FileNotFoundError, opts.data = {}.
temporary_opts only applies overrides for keys in opts.data.
Initialize fixture now creates minimal config.json when missing.
Made-with: Cursor
2026-03-09 15:33:11 -07:00
Michael Cahill
5fe8245957
M05: Override isolation / temporary opts seam
...
- Add modules/runtime_utils.py with temporary_opts context manager
- Refactor process_images() to use temporary_opts for override application
- Preserve opts.set(is_api=True, run_callbacks=False) and setattr restore
- Add test/quality/test_opts_override.py (samples_save, restore_afterwards)
- Model/VAE reload and token merging remain in process_images per decisions
Made-with: Cursor
2026-03-09 14:14:13 -07:00
m-cahill
077e4b93f4
fix: get_multicond_prompt_list preserves whitespace in split ( #14 )
...
Made-with: Cursor
2026-03-08 22:07:57 -07:00
m-cahill
12fba26e0a
test(M04): add API endpoints and prompt_parser tests for 40% coverage ( #13 )
...
Made-with: Cursor
2026-03-08 22:03:50 -07:00
m-cahill
298606f818
fix(M04): remove modules.util import to avoid circular import in tests ( #12 )
...
Made-with: Cursor
2026-03-08 21:59:17 -07:00
m-cahill
ea04028758
test(M04): add test_util_modules for coverage gate 40% ( #11 )
...
Made-with: Cursor
2026-03-08 21:56:10 -07:00
m-cahill
12f5c39a44
fix: remove merge conflict markers from test_api_extended.py ( #10 )
...
Made-with: Cursor
2026-03-08 20:27:24 -07:00
m-cahill
9aa32e8917
fix: remove test_interrogate_deepbooru ( #9 )
...
* test(M04): add quality tests for coverage gate 40%
Made-with: Cursor
* fix: remove test_interrogate_deepbooru (404 in CI stub)
Made-with: Cursor
2026-03-08 20:23:51 -07:00
m-cahill
c342f4bbc7
test(M04): add quality tests for coverage gate 40% ( #8 )
...
Made-with: Cursor
2026-03-08 20:19:53 -07:00
m-cahill
975dda4b56
M03: Test architecture ( #2 )
...
* docs(M03): seed M03 plan and toolcalls
Made-with: Cursor
* ci: add repository guardrail, update CONTRIBUTING workflow
Made-with: Cursor
* M03: Test architecture (smoke/quality/nightly)
- Move tests to test/smoke/, scaffold test/quality and test/nightly
- Add pytest.ini with smoke/quality/nightly markers
- Split CI: run_smoke_tests (PR), run_quality_tests (push main), run_nightly_tests (schedule)
- Remove run_tests.yaml
- Add prevent_upstream_push.sh pre-push hook template
- Update CONTRIBUTING.md with hook install and test tier docs
- Add repo and base-branch guardrails to workflows
Made-with: Cursor
* ci: remove obsolete warns_merge_master workflow (Serena uses main)
Made-with: Cursor
* fix: add base_url to pytest.ini for pytest-base-url plugin
Made-with: Cursor
* docs(M03): ledger, run1, audit, summary
Made-with: Cursor
* docs(M03): ledger commit 4ce5cde9
Made-with: Cursor
2026-03-08 18:39:40 -07:00
AUTOMATIC1111
a70dfb64a8
change import statements for #14478
2023-12-31 22:38:30 +03:00
Aarni Koskela
5768afc776
Add utility to inspect a model's parameters (to get dtype/device)
2023-12-31 13:22:43 +02:00
Aarni Koskela
b621a63cf6
Unify CodeFormer and GFPGAN restoration backends, use Spandrel for GFPGAN
2023-12-30 16:30:49 +02:00
AUTOMATIC1111
6c23061a7d
avoid importing gradio in tests because it spams warnings
2023-08-10 12:50:03 +03:00
Aarni Koskela
793a491923
Overhaul tests to use py.test
2023-05-19 17:42:34 +03:00
Aarni Koskela
431bc5a297
Reindent utils_test with 4 spaces
2023-05-11 18:26:34 +03:00
Zhang Hua
d25c4b13e4
test/basic_features/{extras,img2img}_test.py: use absolute path
2023-03-11 20:00:12 +08:00
Zhang Hua
9abe2f5e74
test/server_poll.py: use absolute path for test
...
test/server_poll.py: fix absolute path
2023-03-11 20:00:12 +08:00
space-nuko
1253199889
Working UniPC (for batch size 1)
2023-02-10 03:30:20 -08:00
AUTOMATIC
cbfb463258
fix failing tests by removing then :^)
2023-01-21 11:22:16 +03:00
Vladimir Repin
76a21b9626
clear envvar, add assertion
2023-01-10 12:47:52 +03:00
Vladimir Repin
00005ac9af
add more tests
2023-01-09 21:01:28 +03:00
Vladimir Repin
7d2bb86cce
combine tests together, return set options test
2023-01-09 19:39:06 +03:00
Vladimir Repin
1d663a04da
make tests runnable without specifying subdirectory
2023-01-09 14:11:37 +03:00
AUTOMATIC
137ce534b2
remove some code duplication
...
remove calls to locals()
add a test for img2img with script
2023-01-08 16:14:38 +03:00
Vladimir Repin
14dfede8dd
Minor fixes
...
Remove unused test completely
Change job name
Don't use empty.pt as CLIP weights - it wont work.
Use latest version of actions/cache
2022-11-19 14:15:10 +03:00
Vladimir Repin
4a35c3744c
remove test requiring codeformers
2022-11-14 18:57:14 +03:00
Vladimir Repin
9e4f68acad
Stop exporting cl args and upload stdout and stderr as artifacts
2022-11-14 18:40:15 +03:00
Vladimir Repin
7416ac8d3c
Use localhost with 80 port, count errors as well
2022-11-14 14:55:39 +03:00
Vladimir Repin
0646040667
Propagate test error and try it without localhost
2022-11-14 14:36:07 +03:00
Vladimir Repin
93d6c0209a
Tests separated for github-actions CI
2022-11-14 13:39:22 +03:00
Vladimir Repin
007f4f7314
Tests cleaned up
2022-11-12 15:12:15 +03:00
Bruno Seoane
17bd3f4ea7
Add tests
2022-11-03 10:08:18 -03:00
AUTOMATIC
59dfe0845d
launch tests from launch.py with --tests commandline argument
2022-10-30 08:22:44 +03:00
Vladimir Repin
ffc5b700c4
extras test template added
2022-10-29 21:50:06 +03:00
Vladimir Repin
2f3d8172c3
img2img test template and setUp added
2022-10-29 21:43:32 +03:00
Vladimir Repin
af45b5a11a
Testing with API added
2022-10-29 18:26:28 +03:00