-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 8e8c6a9. Reason for revert: LUCI Bisection identified this CL as the culprit of a build failure. See the analysis: https://luci-bisection.appspot.com/analysis/b/8790476004149770417 Sample failed build: https://ci.chromium.org/b/8790476004149770417 If this is a false positive, please report it at https://bugs.chromium.org/p/chromium/issues/entry?comment=Analysis%3A+https%3A%2F%2Fluci-bisection.appspot.com%2Fanalysis%2Fb%2F8790476004149770417&components=Tools%3ETest%3EFindit&labels=LUCI-Bisection-Wrong%2CPri-3%2CType-Bug&status=Available&summary=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F4113089 Original change's description: > Bundle lit resources. > > This cl: > * Bundles lit into 1 file to export. This allows web ui to get full > lit functionality after 1 HTTP request instead of needing to perform > a dozen or more HTTP requests to fetch the full dependency tree. > * Moves all lit files into ui/webui/resources/preprocessed/mwc so that > optimize_webui will, by default, handle chrome://resource imports > for lit files. > * Deletes files_webui_bundle as optimize_webui will now correctly > handle lit without needing adjustments. > * Updates rewrite_imports to accept regex so we can remap any > directive import with a single line. > > We also update our reproduce.sh script to no longer generate the BUILD > file for third_party/material_web_components. Instead just output all > discovered type definitions for a engineer to manually update. > > Bug: b/229804752 > Change-Id: I3c908244e724f31eb86eba98a444b8bc31156b28 > Cq-Include-Trybots: luci.chromium.try:linux-chromeos-rel;luci.chrome.try:linux-chromeos-chrome > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4113089 > Reviewed-by: Wenbo Jie <wenbojie@chromium.org> > Commit-Queue: Zain Afzal <zafzal@google.com> > Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1099099} > Bug: b/229804752 Change-Id: I0dd32c8be231e54549e85d1534005936201ef61d No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4205772 Commit-Queue: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com> Bot-Commit: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com> Owners-Override: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1099110}
- Loading branch information
luci-bisection@appspot.gserviceaccount.com
authored and
Chromium LUCI CQ
committed
Jan 31, 2023
1 parent
d180b6d
commit 866ae15
Showing
16 changed files
with
1,200 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
third_party/material_web_components/components-chromium/node_modules/.package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[style] | ||
based_on_style = chromium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2022 The Chromium Authors | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
USE_PYTHON3 = True | ||
|
||
|
||
def _CheckChangeOnUploadOrCommit(input_api, output_api): | ||
results = [] | ||
webui_sources = set(['files_webui_bundle.py', 'rollup_plugin.js']) | ||
affected = input_api.AffectedFiles() | ||
affected_files = [input_api.os_path.basename(f.LocalPath()) for f in affected] | ||
if webui_sources.intersection(set(affected_files)): | ||
results += RunFilesWebUiBundleTests(input_api, output_api) | ||
return results | ||
|
||
|
||
def RunFilesWebUiBundleTests(input_api, output_api): | ||
presubmit_path = input_api.PresubmitLocalPath() | ||
sources = ['files_webui_bundle_test.py'] | ||
tests = [input_api.os_path.join(presubmit_path, s) for s in sources] | ||
return input_api.canned_checks.RunUnitTests( | ||
input_api, output_api, tests, run_on_python2=False) | ||
|
||
|
||
def CheckChangeOnUpload(input_api, output_api): | ||
return _CheckChangeOnUploadOrCommit(input_api, output_api) | ||
|
||
|
||
def CheckChangeOnCommit(input_api, output_api): | ||
return _CheckChangeOnUploadOrCommit(input_api, output_api) |
Oops, something went wrong.