You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by mo...@apache.org on 2022/12/07 10:38:09 UTC
[tvm] branch main updated: [ci] Make tvm-bot aware of platform specific jobs (#13571)
This is an automated email from the ASF dual-hosted git repository.
mousius pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new acef2ed97d [ci] Make tvm-bot aware of platform specific jobs (#13571)
acef2ed97d is described below
commit acef2ed97d57c110035e7410603a7c1023a752f1
Author: driazati <94...@users.noreply.github.com>
AuthorDate: Wed Dec 7 02:38:00 2022 -0800
[ci] Make tvm-bot aware of platform specific jobs (#13571)
See #13337 for more context, this fixes `@tvm-bot rerun` to work with
the new jobs
---
ci/scripts/github/github_tvmbot.py | 28 ++++++++++++++++++++++------
ci/scripts/jenkins/git_utils.py | 2 +-
2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/ci/scripts/github/github_tvmbot.py b/ci/scripts/github/github_tvmbot.py
index 8dc897367e..d8dfcdb5b3 100755
--- a/ci/scripts/github/github_tvmbot.py
+++ b/ci/scripts/github/github_tvmbot.py
@@ -530,12 +530,26 @@ class PR:
return None
def rerun_jenkins_ci(self) -> None:
- url = JENKINS_URL + f"job/tvm/job/PR-{self.number}/buildWithParameters"
- logging.info(f"Rerunning ci with URL={url}")
- if self.dry_run:
- logging.info("Dry run, not sending POST")
- else:
- post(url, auth=("tvm-bot", TVM_BOT_JENKINS_TOKEN))
+ job_names = [
+ "tvm-arm",
+ "tvm-cortexm",
+ "tvm-cpu",
+ "tvm-docker",
+ "tvm-gpu",
+ "tvm-hexagon",
+ "tvm-i386",
+ "tvm-lint",
+ "tvm-minimal",
+ "tvm-riscv",
+ "tvm-wasm",
+ ]
+ for name in job_names:
+ url = JENKINS_URL + f"job/{name}/job/PR-{self.number}/buildWithParameters"
+ logging.info(f"Rerunning ci with URL={url}")
+ if self.dry_run:
+ logging.info("Dry run, not sending POST")
+ else:
+ post(url, auth=("tvm-bot", TVM_BOT_JENKINS_TOKEN))
def rerun_github_actions(self) -> None:
workflow_ids = []
@@ -684,11 +698,13 @@ class Rerun:
try:
pr.rerun_jenkins_ci()
except Exception as e:
+ logging.exception(e)
errors.append(e)
try:
pr.rerun_github_actions()
except Exception as e:
+ logging.exception(e)
errors.append(e)
if len(errors) > 0:
diff --git a/ci/scripts/jenkins/git_utils.py b/ci/scripts/jenkins/git_utils.py
index 1295ff8e3c..cf66600514 100644
--- a/ci/scripts/jenkins/git_utils.py
+++ b/ci/scripts/jenkins/git_utils.py
@@ -35,7 +35,7 @@ def compress_query(query: str) -> str:
def post(url: str, body: Optional[Any] = None, auth: Optional[Tuple[str, str]] = None):
- logging.info(f"Requesting POST to", url, "with", body)
+ logging.info(f"Requesting POST to {url} with {body}")
headers = {}
req = request.Request(url, headers=headers, method="POST")
if auth is not None: