InvokeAI/tests
Jonathan 8cf83a9221
Implemented ordering for expanded iterators (#8741)
* Implemented ordering for expanded iterators

* Update test_graph_execution_state.py

Added a test for nested iterator execution ordering. (Failing at commit time!)

* Filter invalid nested-iterator parent mappings in _prepare()

When a graph has nested iterators, some "ready to run" node combinations do not actually belong together. Previously, the scheduler would still try to build nodes for those mismatched combinations, which could cause the same work to run more than once. This change skips any combination that is missing a valid iterator parent, so nested iterator expansions run once per intended item.

* Fixed Collect node ordering

* ruff

* Removed ordering guarantees from test_node_graph.py

* Fix iterator prep and type compatibility in graph execution

Include iterator nodes in nx_graph_flat so iterators are prepared/expanded correctly. Fix connection type checks to allow subclass-to-base via issubclass. Harden iterator/collector validation to fail cleanly instead of crashing on missing edges. Remove unused nx_graph_with_data(). Added tests to verify proper functionality.
2026-02-01 05:00:04 +00:00
..
app feat(model_manager): add missing models filter to Model Manager (#8801) 2026-02-01 04:51:33 +00:00
backend fix(ui): improve DyPE field ordering and add 'On' preset option (#8793) 2026-01-30 01:28:28 +00:00
fixtures test: clean up & fix tests 2024-03-01 10:42:33 +11:00
inpainting
model_identification tidy: removing unused code paths 4 2025-10-15 10:46:16 +11:00
test_model_manager prevent vae: '' from crashing model 2023-08-10 17:33:04 -04:00
__init__.py
conftest.py refactor: model manager v3 (#8607) 2025-10-15 10:18:53 +11:00
dangerously_run_function_in_subprocess.py tests: add util to run a function in separate process 2025-03-06 07:49:35 +11:00
dev_prompts.txt
legacy_tests.sh
test_config.py feat(nodes): add methods to invalidate invocation typeadapters 2025-03-31 19:15:59 +11:00
test_dangerously_run_function_in_subprocess.py tests: add util to run a function in separate process 2025-03-06 07:49:35 +11:00
test_docs.py update config docstring 2024-08-08 15:20:43 -04:00
test_graph_execution_state.py Implemented ordering for expanded iterators (#8741) 2026-02-01 05:00:04 +00:00
test_imports.py Set ordering 2025-03-25 19:21:14 +11:00
test_invocation_cache_memory.py tests: add invocation cache tests 2024-03-06 08:14:12 -05:00
test_item_storage_memory.py chore(item-storage): improve types 2024-02-03 07:34:06 -05:00
test_model_hash.py feat(mm): rename "blake3" to "blake3_multi" 2024-03-22 08:26:36 +11:00
test_model_search.py tidy(mm): ModelSearch cleanup 2024-03-10 12:09:47 +11:00
test_node_graph.py Implemented ordering for expanded iterators (#8741) 2026-02-01 05:00:04 +00:00
test_nodes.py tests(app): add failing test for collector edge case 2025-06-30 23:39:28 +10:00
test_object_serializer_disk.py tests: update tests/test_object_serializer_disk.py 2025-04-04 18:42:13 +11:00
test_path.py chore: ruff 2024-03-01 10:42:33 +11:00
test_profiler.py feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
test_session_queue.py tidy(app): document & clean up batch prep logic 2025-02-26 21:04:23 +11:00
test_sqlite_migrator.py feat(app): db abstraction to prevent threading conflicts 2025-07-11 08:20:06 +10:00
validate_pr_prompt.txt fixes to env parsing, textual inversion & help text 2023-05-18 10:48:23 -04:00