Skip to content

Commit

Permalink
add more info when deplying without TEST_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
aiXander committed Jan 7, 2025
1 parent c5c0214 commit d04a7cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions comfyui.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
specific_test = os.getenv("SPECIFIC_TEST") if os.getenv("SPECIFIC_TEST") else ""
skip_tests = os.getenv("SKIP_TESTS")

# Run a bunch of checks to verify input args:
if test_all and specific_test:
print(f"WARNING: can't have both TEST_ALL and SPECIFIC_TEST at the same time...")
print(f"Running TEST_ALL instead")
Expand All @@ -80,6 +81,11 @@
print(f"skip_tests: {skip_tests}")
print("========================================")

if not test_workflows and workspace_name and not test_all:
print("\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
print("!!!! WARNING: You are deploying a workspace without TEST_ALL !!!!")
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n")

def install_comfyui():
snapshot = json.load(open("/root/workspace/snapshot.json", 'r'))
comfyui_commit_sha = snapshot["comfyui"]
Expand Down Expand Up @@ -361,6 +367,7 @@ def test_workflows(self):
tests = [f"/root/workspace/workflows/{workflow}/{specific_test}"]
else:
tests = [f"/root/workspace/workflows/{workflow}/test.json"]
print("\n\n-----------------------------------------------------------")
print(f"====> Running tests for {workflow}: ", tests)
for test in tests:
tool = Tool.from_yaml(f"/root/workspace/workflows/{workflow}/api.yaml")
Expand Down

0 comments on commit d04a7cf

Please sign in to comment.