Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(e2e): classify prompt_files_dir as a template path (#10089)

Alexander Eichhorn8d9203fbb0bf
diff --git a/docs/src/content/docs/development/Guides/family-e2e.mdx b/docs/src/content/docs/development/Guides/family-e2e.mdx
index 7626fe8b73..57a799c596 100644
--- a/docs/src/content/docs/development/Guides/family-e2e.mdx
+++ b/docs/src/content/docs/development/Guides/family-e2e.mdx
@@ -188,13 +188,13 @@ A run's record can be complete and still unfit for some comparisons. Each invali
## Shared paths
-The scratch server uses the template root's models directory, model caches, legacy model configs, custom fonts and custom nodes. Its startup touches them as starting the template's own server would:
+The scratch server uses the template root's models directory, model caches, legacy model configs, custom fonts, custom nodes and prompt files. Its startup touches them as starting the template's own server would:
- `models/README.txt` is written.
- Install claims (`*.invokeai_install_active`) of processes that no longer run are removed.
- Missing model files are reported in the log.
- `configs/` receives the legacy model configs of the server's code when they differ.
-- `fonts/README.txt` is written when missing.
+- `fonts/README.txt` and `prompt_files/README.txt` are written when missing.
- Models a node fetches on first use are cached in `models/.download_cache`.
The server would also finish an incomplete install, but the model would then be registered in the scratch database only. So `start` and `resume` refuse while the models directory holds a `tmpinstall_*` entry: finish or cancel that install in the dev server first.
diff --git a/scripts/family_e2e/server.py b/scripts/family_e2e/server.py
index 5bbb6c1a39..d3e96a6b38 100644
--- a/scripts/family_e2e/server.py
+++ b/scripts/family_e2e/server.py
@@ -52,6 +52,7 @@ TEMPLATE_PATHS: dict[str, str | None] = {
"legacy_conf_dir": "configs",
"fonts_dir": "fonts",
"custom_nodes_dir": "nodes",
+ "prompt_files_dir": "prompt_files",
"legacy_models_yaml_path": None,
}
# The client speaks plain HTTP to the root path.