Skip to content

Commit d58b5a6

Browse files
[CI] Send Platform Along with Failure Information (#163817)
To enable disambiguating the platform later when we look at identifying tests failing at HEAD/flaky tests.
1 parent 7c54c82 commit d58b5a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.ci/premerge_advisor_upload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ def main(commit_sha, workflow_run_number, build_log_files):
2323
)
2424
test_failures = generate_test_report_lib.get_failures(junit_objects)
2525
source = "pull_request" if "GITHUB_ACTIONS" in os.environ else "postcommit"
26+
current_platform = f"{platform.system()}-{platform.machine()}".lower()
2627
failure_info = {
2728
"source_type": source,
2829
"base_commit_sha": commit_sha,
2930
"source_id": workflow_run_number,
3031
"failures": [],
32+
"platform": current_platform,
3133
}
3234
if test_failures:
3335
for name, failure_message in test_failures:

0 commit comments

Comments
 (0)