Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Init webui only once in tests #2228

Merged
merged 1 commit into from
Nov 4, 2023
Merged

Conversation

huchenlei
Copy link
Collaborator

In most recent version of A1111. module.initialize.initialize is only expected to be called once. Calling it multiple times gives following error:

ERROR extensions/sd-webui-controlnet/tests/annotator_tests/openpose_tests/detection_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/annotator_tests/openpose_tests/json_encode_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/annotator_tests/openpose_tests/openpose_e2e_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/cn_script/batch_hijack_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/cn_script/cn_script_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/cn_script/utils_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/external_code_api/external_code_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/external_code_api/importlib_reload_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/external_code_api/script_args_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/web_api/control_types_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/web_api/detect_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/web_api/img2img_test.py - RuntimeError: patch for register_schedule is already applied
ERROR extensions/sd-webui-controlnet/tests/web_api/txt2img_test.py - RuntimeError: patch for register_schedule is already applied

This PR makes sure that we only call initialize once in CI tests.

@huchenlei huchenlei merged commit 36a7ed5 into Mikubill:main Nov 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant