Added more test cases in the report-page-sk.

Bug: b/457467011

Change-Id: I60787e83a42569ad845c6a316a47edeb6a8f1c21
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/1108285
Reviewed-by: Anri Sidorov <ansid@google.com>
Commit-Queue: Maggie Dong <jiaxindong@google.com>
10 files changed
tree: f03fa9ff41ea10eb56d63a188dda2b7a59f1d849
  1. am/
  2. android_ingest/
  3. android_stats/
  4. api/
  5. attest/
  6. autoroll/
  7. bash/
  8. bazel/
  9. blamer/
  10. bugs-central/
  11. cabe/
  12. cbb/
  13. cd/
  14. cdn/
  15. cherrypick-watcher/
  16. cmd/
  17. codereview-watcher/
  18. codesize/
  19. comments/
  20. cq_watcher/
  21. ct/
  22. datahopper/
  23. debugger-app/
  24. demos/
  25. docker/
  26. docs/
  27. docsyserver/
  28. ds/
  29. elements-sk/
  30. external/
  31. fiddlek/
  32. firestore/
  33. get_service_account/
  34. gitsync/
  35. go/
  36. gold-client/
  37. golden/
  38. helloworld/
  39. infra/
  40. infra-sk/
  41. jsdoc/
  42. jsfiddle/
  43. k8s-checker/
  44. k8s-deployer/
  45. kube/
  46. leasing/
  47. licenses/
  48. machine/
  49. make/
  50. mcp/
  51. modules/
  52. named-fiddles/
  53. new_element/
  54. npm-audit-mirror/
  55. perdiff/
  56. perf/
  57. periodic-trigger/
  58. pinpoint/
  59. proberk/
  60. promk/
  61. puppeteer-tests/
  62. rag/
  63. sa-keys-checker/
  64. scrap/
  65. scripts/
  66. shaders/
  67. sk/
  68. skbug/
  69. skcq/
  70. skfe/
  71. skolo/
  72. skottie/
  73. static_server/
  74. status/
  75. task_driver/
  76. task_scheduler/
  77. temporal/
  78. test-service/
  79. tool/
  80. tools/
  81. tree_status/
  82. trybot_updater/
  83. .bazelignore
  84. .bazelrc
  85. .bazelversion
  86. .eslintrc.js
  87. .gitattributes
  88. .gitignore
  89. .mockery.yaml
  90. .npmrc
  91. .prettierignore
  92. .prettierrc.json
  93. .puppeteerrc.js
  94. .pylintrc
  95. .vpython
  96. BAZEL_CHEATSHEET.md
  97. BUILD.bazel
  98. build_infra_prod.sh
  99. CDB.md
  100. cipd.ensure
  101. codereview.settings
  102. DATASTORE.md
  103. demopage.sh
  104. DEPS
  105. elements.d.ts
  106. go.mod
  107. go.sum
  108. go_repositories.bzl
  109. karmatest.sh
  110. launch.md
  111. LICENSE
  112. LINT.md
  113. Makefile
  114. MODULE.bazel
  115. MODULE.bazel.lock
  116. OWNERS
  117. package-lock.json
  118. package.json
  119. pnpm-lock.yaml
  120. PRESUBMIT.py
  121. PRIVACY_POLICY.md
  122. puppeteerrc.bzl
  123. puppeteerrc.js.tpl
  124. README.md
  125. requirements.txt
  126. run_lint.sh
  127. STYLEGUIDE.md
  128. tools.go
  129. tsconfig.json
  130. whitespace.txt
  131. WORKSPACE
README.md

Skia-Buildbot Repository

This repo contains infrastructure code for Skia.

Supported Infrastucture Platforms

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.

Getting the Source Code

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

Install dependencies

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

Add bazelisk to path

export PATH=$PATH:$(go env GOPATH)/bin

Install Node.js and npm

You will need Node.js and npm installed to run web infrastructure tests and linters. We recommend using nvm to manage Node versions.

After installing Node.js, run the following command to install repository dependencies (including linter tools):

npm install

Install other dependencies:

sudo apt-get install jq

Build ~everything

bazelisk build --config=mayberemote //...

Test everything

Set up environ variables

This step might be an optional step, but some test requires these enviornment variables.

Runs

./scripts/run_emulators/run_emulators start

The following are example of environment variables.

Emulators started. Set environment variables as follows:
export DATASTORE_EMULATOR_HOST=localhost:8891
export BIGTABLE_EMULATOR_HOST=localhost:8892
export PUBSUB_EMULATOR_HOST=localhost:8893
export FIRESTORE_EMULATOR_HOST=localhost:8894
export COCKROACHDB_EMULATOR_HOST=localhost:8895

And stores these environment variables to ~/.bashrc file.

Execute tests

bazelisk test --config=mayberemote //...

Generated Code

To update generated code run the following in any directory:

go generate ./...

Running unit tests

Install Cloud SDK.

Use this command to run the presubmit tests:

./run_unittests --small