Skip to content

Commit 2b32ece

Browse files
committed
Revert "Merge remote-tracking branch 'origin/sycl' into llvmspirv_pulldown"
This reverts commit 8b35b01, reversing changes made to 2ce5fef.
1 parent 8b35b01 commit 2b32ece

File tree

9,834 files changed

+321352
-847828
lines changed

Some content is hidden

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

9,834 files changed

+321352
-847828
lines changed

.ci/all_requirements.txt

Lines changed: 0 additions & 187 deletions
This file was deleted.

.ci/compute_projects.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@
5252
"clang": {"clang-tools-extra", "compiler-rt", "cross-project-tests"},
5353
"clang-tools-extra": {"libc"},
5454
"mlir": {"flang"},
55-
# Test everything if ci scripts are changed.
56-
# FIXME: Figure out what is missing and add here.
57-
".ci": {"llvm", "clang", "lld", "lldb"},
5855
}
5956

6057
DEPENDENT_RUNTIMES_TO_TEST = {"clang": {"libcxx", "libcxxabi", "libunwind"}}
@@ -133,11 +130,12 @@ def _add_dependencies(projects: Set[str]) -> Set[str]:
133130
def _compute_projects_to_test(modified_projects: Set[str], platform: str) -> Set[str]:
134131
projects_to_test = set()
135132
for modified_project in modified_projects:
133+
# Skip all projects where we cannot run tests.
134+
if modified_project not in PROJECT_CHECK_TARGETS:
135+
continue
136136
if modified_project in RUNTIMES:
137137
continue
138-
# Skip all projects where we cannot run tests.
139-
if modified_project in PROJECT_CHECK_TARGETS:
140-
projects_to_test.add(modified_project)
138+
projects_to_test.add(modified_project)
141139
if modified_project not in DEPENDENTS_TO_TEST:
142140
continue
143141
for dependent_project in DEPENDENTS_TO_TEST[modified_project]:

.ci/compute_projects_test.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -188,23 +188,6 @@ def test_exclude_gn(self):
188188
self.assertEqual(env_variables["runtimes_to_build"], "")
189189
self.assertEqual(env_variables["runtimes_check_targets"], "")
190190

191-
def test_ci(self):
192-
env_variables = compute_projects.get_env_variables(
193-
[".ci/compute_projects.py"], "Linux"
194-
)
195-
self.assertEqual(env_variables["projects_to_build"], "clang;lld;llvm;lldb")
196-
self.assertEqual(
197-
env_variables["project_check_targets"],
198-
"check-clang check-lld check-llvm check-lldb",
199-
)
200-
self.assertEqual(
201-
env_variables["runtimes_to_build"], "libcxx;libcxxabi;libunwind"
202-
)
203-
self.assertEqual(
204-
env_variables["runtimes_check_targets"],
205-
"check-cxx check-cxxabi check-unwind",
206-
)
207-
208191

209192
if __name__ == "__main__":
210193
unittest.main()

.ci/generate_test_report_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def plural(num_tests):
9292
]
9393
)
9494
elif failures:
95-
report.extend(["", "## Failed Tests", "(click on a test name to see its output)"])
95+
report.extend(["", "## Failed Tests", "(click to see output)"])
9696

9797
for testsuite_name, failures in failures.items():
9898
report.extend(["", f"### {testsuite_name}"])

.ci/generate_test_report_lib_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# See https://llvm.org/LICENSE.txt for license information.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

5-
# To run these tests:
6-
# python -m unittest generate_test_report_lib_test.py
7-
85
import unittest
96
from io import StringIO
107
from textwrap import dedent
@@ -153,7 +150,7 @@ def test_report_single_file_single_testsuite(self):
153150
* 2 tests failed
154151
155152
## Failed Tests
156-
(click on a test name to see its output)
153+
(click to see output)
157154
158155
### Bar
159156
<details>
@@ -185,7 +182,7 @@ def test_report_single_file_single_testsuite(self):
185182
* 2 tests failed
186183
187184
## Failed Tests
188-
(click on a test name to see its output)
185+
(click to see output)
189186
190187
### ABC
191188
<details>

.ci/metrics/metrics.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
# Lists the Github workflows we want to track. Maps the Github job name to
2222
# the metric name prefix in grafana.
2323
# This metric name is also used as a key in the job->name map.
24-
GITHUB_WORKFLOW_TO_TRACK = {"CI Checks": "github_llvm_premerge_checks"}
24+
GITHUB_WORKFLOW_TO_TRACK = {"LLVM Premerge Checks": "github_llvm_premerge_checks"}
2525

2626
# Lists the Github jobs to track for a given workflow. The key is the stable
2727
# name (metric name) of the workflow (see GITHUB_WORKFLOW_TO_TRACK).
2828
# Each value is a map to link the github job name to the corresponding metric
2929
# name.
3030
GITHUB_JOB_TO_TRACK = {
3131
"github_llvm_premerge_checks": {
32-
"Build and Test Linux (Test Only - Please Ignore Results)": "premerge_linux",
33-
"Build and Test Windows (Test Only - Please Ignore Results)": "premerge_windows",
32+
"Linux Premerge Checks (Test Only - Please Ignore Results)": "premerge_linux",
33+
"Windows Premerge Checks (Test Only - Please Ignore Results)": "premerge_windows",
3434
}
3535
}
3636

@@ -282,13 +282,6 @@ def github_get_metrics(
282282
queued_count = collections.Counter()
283283
running_count = collections.Counter()
284284

285-
# Initialize all the counters to 0 so we report 0 when no job is queued
286-
# or running.
287-
for wf_name, wf_metric_name in GITHUB_WORKFLOW_TO_TRACK.items():
288-
for job_name, job_metric_name in GITHUB_JOB_TO_TRACK[wf_metric_name].items():
289-
queued_count[wf_metric_name + "_" + job_metric_name] = 0
290-
running_count[wf_metric_name + "_" + job_metric_name] = 0
291-
292285
# The list of workflows this iteration will process.
293286
# MaxSize = GITHUB_WORKFLOWS_MAX_PROCESS_COUNT
294287
workflow_seen_as_completed = set()

0 commit comments

Comments
 (0)