Skip to content

Commit e3f094d

Browse files
authored
Merge branch 'main' into hgh/libcxx/refactor-any-tests
2 parents 55322cc + 54a4da9 commit e3f094d

File tree

1,037 files changed

+101931
-106306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,037 files changed

+101931
-106306
lines changed

.ci/premerge_advisor_explain.py

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,6 @@ def main(
7979
pr_number: The number of the PR associated with this run.
8080
return_code: The numerical return code of ninja/CMake.
8181
"""
82-
if return_code == 0:
83-
with open("comment", "w") as comment_file_handle:
84-
comment = get_comment(
85-
github_token,
86-
pr_number,
87-
":white_check_mark: With the latest revision this PR passed "
88-
"the premerge checks.",
89-
)
90-
if "id" in comment:
91-
json.dump([comment], comment_file_handle)
9282
junit_objects, ninja_logs = generate_test_report_lib.load_info_from_files(
9383
build_log_files
9484
)
@@ -105,34 +95,42 @@ def main(
10595
explanation_request["failures"].append(
10696
{"name": name, "message": failure_messsage}
10797
)
108-
else:
98+
elif return_code != 0:
10999
ninja_failures = generate_test_report_lib.find_failure_in_ninja_logs(ninja_logs)
110100
for name, failure_message in ninja_failures:
111101
explanation_request["failures"].append(
112102
{"name": name, "message": failure_message}
113103
)
114-
advisor_response = requests.get(
115-
PREMERGE_ADVISOR_URL, json=explanation_request, timeout=5
104+
comments = []
105+
advisor_explanations = []
106+
if return_code != 0:
107+
advisor_response = requests.get(
108+
PREMERGE_ADVISOR_URL, json=explanation_request, timeout=5
109+
)
110+
if advisor_response.status_code == 200:
111+
print(advisor_response.json())
112+
advisor_explanations = advisor_response.json()
113+
else:
114+
print(advisor_response.reason)
115+
comments.append(
116+
get_comment(
117+
github_token,
118+
pr_number,
119+
generate_test_report_lib.generate_report(
120+
generate_test_report_lib.compute_platform_title(),
121+
return_code,
122+
junit_objects,
123+
ninja_logs,
124+
failure_explanations_list=advisor_explanations,
125+
),
126+
)
116127
)
117-
if advisor_response.status_code == 200:
118-
print(advisor_response.json())
119-
comments = [
120-
get_comment(
121-
github_token,
122-
pr_number,
123-
generate_test_report_lib.generate_report(
124-
generate_test_report_lib.compute_platform_title(),
125-
return_code,
126-
junit_objects,
127-
ninja_logs,
128-
failure_explanations_list=advisor_response.json(),
129-
),
130-
)
131-
]
132-
with open("comments", "w") as comment_file_handle:
133-
json.dump(comments, comment_file_handle)
134-
else:
135-
print(advisor_response.reason)
128+
if return_code == 0 and "id" not in comments[0]:
129+
# If the job succeeds and there is not an existing comment, we
130+
# should not write one to reduce noise.
131+
comments = []
132+
with open("comments", "w") as comment_file_handle:
133+
json.dump(comments, comment_file_handle)
136134

137135

138136
if __name__ == "__main__":

.git-blame-ignore-revs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,12 @@ a3a007ad5fa20abc90ead4e1030b481bf109b4cf
143143
b7e332d3f59f567b1999fbcc660d7837cba8e406
144144
6056f942abe83b05406df8b04e95ec37a3d160b5
145145
906295b8a31c8dac5aa845864c0bca9f02f86184
146+
147+
# [clang-tidy][NFC] Remove trailing whitespaces in documentation
148+
8f2b167de4a1268160c06512d08863a9e8f43290
149+
150+
# [clang-tidy][NFC] Enforce 80 characters limit in docs
151+
5edf70c41c5d69f3751b4199f642f4585599dade
152+
c73870dbe89a8219130e21a0b3f13df76d299352
153+
74c40293c309dbd142bf1f0ebfbfde6be8d30655
154+
a7ba8dcad76476478100c228a31d9c48391b1e03

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,19 @@
6060
/mlir/lib/Conversion/*ToROCDL @krzysz00 @kuhar
6161
/mlir/include/mlir/Dialect/LLVMIR/ROCDL* @krzysz00 @kuhar
6262

63+
# Arith dialect in MLIR.
64+
/mlir/include/mlir/Dialect/Arith @kuhar
65+
/mlir/lib/Dialect/Arith @kuhar
66+
/mlir/lib/Conversion/ArithTo* @kuhar
67+
6368
# XeGPU and XeVM dialects in MLIR.
6469
/mlir/include/mlir/Dialect/XeGPU @charithaintc @Jianhui-Li
6570
/mlir/lib/Dialect/XeGPU @charithaintc @Jianhui-Li
6671
/mlir/lib/Conversion/*XeGPU* @charithaintc @Jianhui-Li
6772
/mlir/include/mlir/Dialect/XeGPU/Transforms @charithaintc @Jianhui-Li
6873
/mlir/lib/Dialect/XeGPU/Transforms @charithaintc @Jianhui-Li
74+
/mlir/include/mlir/Dialect/XeGPU/TransformOps @charithaintc @Jianhui-Li @tkarna
75+
/mlir/lib/Dialect/XeGPU/TransformOps @charithaintc @Jianhui-Li @tkarna
6976
/mlir/include/mlir/Dialect/LLVMIR/XeVM* @silee2
7077
/mlir/lib/Dialect/LLVMIR/IR/XeVM @silee2
7178
/mlir/lib/Conversion/*XeVM* @silee2

.github/workflows/bazel-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
- name: Setup Buildifier
2727
run: |
28-
sudo curl -L https://github.com/bazelbuild/buildtools/releases/download/v8.2.1/buildifier-linux-amd64 -o /usr/bin/buildifier
28+
sudo curl -L https://github.com/bazelbuild/buildtools/releases/download/v8.2.1/buildifier-linux-amd64 -o /usr/bin/buildifier --fail
2929
sudo chmod +x /usr/bin/buildifier
3030
- name: Run Buildifier
3131
run: |
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
sudo apt-get update
5151
sudo apt-get install -y libmpfr-dev libpfm4-dev m4 libedit-dev
52-
sudo curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.27.0/bazelisk-amd64.deb > /tmp/bazelisk.deb
52+
sudo curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.27.0/bazelisk-amd64.deb --fail > /tmp/bazelisk.deb
5353
sudo apt-get install -y /tmp/bazelisk.deb
5454
rm /tmp/bazelisk.deb
5555
- name: Build/Test

clang-tools-extra/clang-doc/BitcodeReader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "BitcodeReader.h"
10-
#include "llvm/ADT/IndexedMap.h"
1110
#include "llvm/Support/Error.h"
1211
#include "llvm/Support/TimeProfiler.h"
1312
#include "llvm/Support/raw_ostream.h"

clang-tools-extra/clang-doc/BitcodeReader.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
#include "BitcodeWriter.h"
1919
#include "Representation.h"
20-
#include "clang/AST/AST.h"
21-
#include "llvm/ADT/SmallVector.h"
2220
#include "llvm/Bitstream/BitstreamReader.h"
2321
#include "llvm/Support/Error.h"
2422
#include <optional>

clang-tools-extra/clang-doc/BitcodeWriter.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@
1616
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_BITCODEWRITER_H
1717

1818
#include "Representation.h"
19-
#include "clang/AST/AST.h"
2019
#include "llvm/ADT/DenseMap.h"
21-
#include "llvm/ADT/SmallVector.h"
22-
#include "llvm/ADT/StringRef.h"
2320
#include "llvm/Bitstream/BitstreamWriter.h"
24-
#include <initializer_list>
2521
#include <vector>
2622

2723
namespace clang {

clang-tools-extra/clang-doc/ClangDoc.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@
1515
#include "ClangDoc.h"
1616
#include "Mapper.h"
1717
#include "Representation.h"
18-
#include "clang/AST/AST.h"
1918
#include "clang/AST/ASTConsumer.h"
20-
#include "clang/AST/ASTContext.h"
21-
#include "clang/AST/RecursiveASTVisitor.h"
2219
#include "clang/Frontend/ASTConsumers.h"
2320
#include "clang/Frontend/CompilerInstance.h"
24-
#include "clang/Frontend/FrontendActions.h"
2521

2622
namespace clang {
2723
namespace doc {

clang-tools-extra/clang-doc/ClangDoc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_CLANGDOC_H
1818

1919
#include "Representation.h"
20-
#include "clang/Tooling/Execution.h"
21-
#include "clang/Tooling/StandaloneExecution.h"
2220
#include "clang/Tooling/Tooling.h"
2321

2422
namespace clang {

clang-tools-extra/clang-doc/Mapper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#include "Representation.h"
2121
#include "clang/AST/RecursiveASTVisitor.h"
22-
#include "clang/Tooling/Execution.h"
2322

2423
using namespace clang::comments;
2524
using namespace clang::tooling;

0 commit comments

Comments
 (0)