commit | 9bf8d4d051aada7f581069f702a4cef0561cf82d | [log] [tgz] |
---|---|---|
author | Hao Wu <haowoo@google.com> | Fri Aug 30 16:24:25 2024 +0000 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Fri Aug 30 16:46:31 2024 +0000 |
tree | e7fe02728bc418fe0de5967ccc5fdf2ecea65c03 | |
parent | ab47717f5e28dede9419ca2d1d9575125ad444be [diff] |
Upgrade lit v1 to v3. Lit-Element v3 works better with other UI components like go/md3. This CL is unfortunately large but most of them are renaming from lit-html to lit/html in BUILD and import. There are three noticeable changes. 1. The eventContext in the RenderOptions is renamed to host, see the example in: * infra-sk/modules/ElementSk/ElementSk.ts 2. Type changes, see examples in: * am/modules/am.ts * debugger-app/modules/commands-sk/commands-sk.ts 3. Additional comments nodes appended automatically, see the example in: * perf/modules/regressions-page-sk/regressions-page-sk_test.ts For the Gold screenshots. They looks good and I also compared them locally with the v1. Note: 1. The theme-chooser-sk didn't get updated in Gold, so even they are significantly different, but the diffs were introduced long before; 2. In the gold_query-dialog-sk_multiple-values-selected, the screenshots were not taken correctly, it needs to wait for all the elements to settle. The test util, like open-wc.org, has good tools to facilitate and we can look into that later. Bug: b/361365957 Change-Id: I091c919479d3067d5100397af691f4f24b333ab7 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/895021 Reviewed-by: Jeff Yoon <jeffyoon@google.com> Commit-Queue: Hao Wu <haowoo@google.com> Reviewed-by: Kaylee Lubick <kjlubick@google.com>
This repo contains infrastructure code for Skia.
The infrastructure code is generally built to run on x86 linux. Running on other platforms may be possible but is not officially supported and success will vary depending on the command.
The main source code repository is a Git repository hosted at https://skia.googlesource.com/buildbot.git. It is possible to check out this repository directly with git clone
or via go get
.
Using git clone
allows you to work in whatever directory you want. You will still need to set GOPATH in order to build some apps (recommended to put this in a cache dir). E.g.:
$ cd ${WORKDIR} $ git clone https://skia.googlesource.com/buildbot.git $ export GOPATH=${HOME}/.cache/gopath/$(basename ${WORKDIR}) $ mkdir $GOPATH $ cd buildbot
Almost all applications are built with Bazel, and bazelisk is the recommended tool to ensure you have the right version of bazel installed:
go install github.com/bazelbuild/bazelisk@latest go install github.com/bazelbuild/buildtools/buildifier@latest go install github.com/kisielk/errcheck@latest go install golang.org/x/tools/cmd/goimports@latest go install github.com/mikefarah/yq/v4@latest go install go.chromium.org/luci/client/cmd/...@latest
export PATH=$PATH:$(go env GOPATH)/bin
sudo apt-get install jq
bazelisk build --config=mayberemote //...
bazelisk test --config=mayberemote //...
To update generated code run the following in any directory:
go generate ./...
Install Cloud SDK.
Use this command to run the presubmit tests:
./run_unittests --small