Skip to content

Commit 2494595

Browse files
authored
acc: Use more specific regex in default-python/combinations (#3204)
This test uses regex to verify that if include_python is set to "yes" then we have a line like this: Uploading .databricks/bundle/dev/patched_wheels/python_artifact_x[UNIQUE_NAME]/x[UNIQUE_NAME]-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl... and if include_python is set to "no" then we don't have a line like that in the output. However, we also always print a line like this: Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/X[UNIQUE_NAME]/dev/files... Since UNIQUE_NAME is random string, it sometimes contains "whl", causing regex to match where it should not.
1 parent 4609db6 commit 2494595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acceptance/bundle/templates/default-python/combinations/check_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
sys.exit(f"SKIP_TEST SERVERLESS=yes but TEST_METASTORE_ID is empty in this env {CLOUD_ENV=}")
1313

1414
BUILDING = "Building python_artifact"
15-
UPLOADING_WHL = re.compile("Uploading .*whl")
15+
UPLOADING_WHL = re.compile(r"^Uploading .*whl\.\.\.$", re.M)
1616
STATE = "Updating deployment state"
1717

1818

0 commit comments

Comments
 (0)