Skip to content

Commit

Permalink
Add log for why triggering a workflow (kubeflow#217)
Browse files Browse the repository at this point in the history
* add log

* fix
  • Loading branch information
lluunn authored and k8s-ci-robot committed Sep 25, 2018
1 parent a1c927e commit a8b22fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/kubeflow/testing/run_e2e_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def run(args, file_handler): # pylint: disable=too-many-statements,too-many-bran
for d in w.include_dirs:
if fnmatch.fnmatch(f, d):
dir_modified = True
logging.info("Triggering workflow %s because %s in dir %s is modified.",
w.name, f, d)
break
if dir_modified:
break
Expand Down
1 change: 1 addition & 0 deletions py/kubeflow/testing/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def wait_for_deployment(api_client,

logging.error("Timeout waiting for deployment %s in namespace %s to be "
"ready", name, namespace)
run(["kubectl", "describe", "deployment", "-n", namespace, name])
raise TimeoutError(
"Timeout waiting for deployment {0} in namespace {1}".format(
name, namespace))
Expand Down

0 comments on commit a8b22fd

Please sign in to comment.