MCPcopy Create free account
hub / github.com/apache/tvm / build_comment

Function build_comment

ci/scripts/github/github_skipped_tests_comment.py:124–154  ·  view source on GitHub ↗
(
    common_commit_sha,
    common_main_build,
    skipped_list,
    additional_skipped_list,
    pr_number,
    build_number,
    commit_sha,
    jenkins_prefix,
)

Source from the content-addressed store, hash-verified

122
123
124def build_comment(
125 common_commit_sha,
126 common_main_build,
127 skipped_list,
128 additional_skipped_list,
129 pr_number,
130 build_number,
131 commit_sha,
132 jenkins_prefix,
133):
134 if common_main_build["state"] != "success":
135 return f"Unable to run tests bot because main failed to pass CI at {common_commit_sha}."
136
137 text = build_diff_comment_with_main(common_commit_sha, skipped_list, commit_sha)
138
139 if len(additional_skipped_list) != 0:
140 text += "\n"
141 text += (
142 "Additional tests that were skipped in the CI build and present in the [`required_tests_to_run`]"
143 "(https://github.com/apache/tvm/blob/main/ci/scripts/github/required_tests_to_run.json) file:"
144 "\n```\n"
145 )
146 for skip in additional_skipped_list:
147 text += skip + "\n"
148 text += "```\n"
149
150 text += (
151 f"A detailed report of ran tests is [here](https://{jenkins_prefix}/job/tvm/job/PR-{pr_number!s}"
152 f"/{build_number!s}/testReport/)."
153 )
154 return text
155
156
157def find_target_url(pr_head: dict[str, Any]):

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…