react-native-vision-camera-spoof-detector 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +2 -0
- package/.gitignore +27 -0
- package/CHANGELOG.md +2 -2
- package/CONTRIBUTING.md +2 -2
- package/README.md +442 -443
- package/android/build.gradle +12 -4
- package/android/src/main/cpp/CMakeLists.txt +101 -94
- package/android/src/main/cpp/libyuv/.clang-format +6 -6
- package/android/src/main/cpp/libyuv/.gn +40 -40
- package/android/src/main/cpp/libyuv/.vpython3 +410 -410
- package/android/src/main/cpp/libyuv/AUTHORS +7 -7
- package/android/src/main/cpp/libyuv/Android.bp +202 -202
- package/android/src/main/cpp/libyuv/Android.mk +106 -106
- package/android/src/main/cpp/libyuv/BUILD.gn +490 -490
- package/android/src/main/cpp/libyuv/CM_linux_packages.cmake +70 -70
- package/android/src/main/cpp/libyuv/CMakeLists.txt +259 -252
- package/android/src/main/cpp/libyuv/DEPS +935 -935
- package/android/src/main/cpp/libyuv/DIR_METADATA +3 -3
- package/android/src/main/cpp/libyuv/LICENSE +29 -29
- package/android/src/main/cpp/libyuv/OWNERS +11 -11
- package/android/src/main/cpp/libyuv/PATENTS +23 -23
- package/android/src/main/cpp/libyuv/PRESUBMIT.py +65 -65
- package/android/src/main/cpp/libyuv/README.chromium +11 -11
- package/android/src/main/cpp/libyuv/README.md +19 -19
- package/android/src/main/cpp/libyuv/build_overrides/build.gni +60 -60
- package/android/src/main/cpp/libyuv/build_overrides/gtest.gni +19 -19
- package/android/src/main/cpp/libyuv/build_overrides/partition_alloc.gni +17 -17
- package/android/src/main/cpp/libyuv/codereview.settings +5 -5
- package/android/src/main/cpp/libyuv/docs/deprecated_builds.md +409 -409
- package/android/src/main/cpp/libyuv/docs/environment_variables.md +64 -64
- package/android/src/main/cpp/libyuv/docs/feature_detection.md +108 -108
- package/android/src/main/cpp/libyuv/docs/filtering.md +196 -196
- package/android/src/main/cpp/libyuv/docs/formats.md +208 -208
- package/android/src/main/cpp/libyuv/docs/getting_started.md +296 -296
- package/android/src/main/cpp/libyuv/docs/rotation.md +107 -107
- package/android/src/main/cpp/libyuv/download_vs_toolchain.py +29 -29
- package/android/src/main/cpp/libyuv/include/libyuv/basic_types.h +68 -68
- package/android/src/main/cpp/libyuv/include/libyuv/compare.h +111 -111
- package/android/src/main/cpp/libyuv/include/libyuv/compare_row.h +112 -112
- package/android/src/main/cpp/libyuv/include/libyuv/convert.h +1117 -1117
- package/android/src/main/cpp/libyuv/include/libyuv/convert_argb.h +2335 -2335
- package/android/src/main/cpp/libyuv/include/libyuv/convert_from.h +203 -203
- package/android/src/main/cpp/libyuv/include/libyuv/convert_from_argb.h +394 -394
- package/android/src/main/cpp/libyuv/include/libyuv/cpu_id.h +147 -147
- package/android/src/main/cpp/libyuv/include/libyuv/cpu_support.h +99 -99
- package/android/src/main/cpp/libyuv/include/libyuv/loongson_intrinsics.h +1949 -1949
- package/android/src/main/cpp/libyuv/include/libyuv/mjpeg_decoder.h +195 -195
- package/android/src/main/cpp/libyuv/include/libyuv/planar_functions.h +1131 -1131
- package/android/src/main/cpp/libyuv/include/libyuv/rotate.h +296 -296
- package/android/src/main/cpp/libyuv/include/libyuv/rotate_argb.h +37 -37
- package/android/src/main/cpp/libyuv/include/libyuv/rotate_row.h +265 -265
- package/android/src/main/cpp/libyuv/include/libyuv/row.h +6738 -6738
- package/android/src/main/cpp/libyuv/include/libyuv/row_sve.h +2154 -2154
- package/android/src/main/cpp/libyuv/include/libyuv/scale.h +336 -336
- package/android/src/main/cpp/libyuv/include/libyuv/scale_argb.h +76 -76
- package/android/src/main/cpp/libyuv/include/libyuv/scale_rgb.h +42 -42
- package/android/src/main/cpp/libyuv/include/libyuv/scale_row.h +1726 -1726
- package/android/src/main/cpp/libyuv/include/libyuv/scale_uv.h +51 -51
- package/android/src/main/cpp/libyuv/include/libyuv/version.h +16 -16
- package/android/src/main/cpp/libyuv/include/libyuv/video_common.h +222 -222
- package/android/src/main/cpp/libyuv/include/libyuv.h +33 -33
- package/android/src/main/cpp/libyuv/infra/config/OWNERS +3 -3
- package/android/src/main/cpp/libyuv/infra/config/PRESUBMIT.py +17 -17
- package/android/src/main/cpp/libyuv/infra/config/README.md +2 -2
- package/android/src/main/cpp/libyuv/infra/config/codereview.settings +6 -6
- package/android/src/main/cpp/libyuv/infra/config/commit-queue.cfg +144 -144
- package/android/src/main/cpp/libyuv/infra/config/cr-buildbucket.cfg +1185 -1185
- package/android/src/main/cpp/libyuv/infra/config/luci-logdog.cfg +9 -9
- package/android/src/main/cpp/libyuv/infra/config/luci-milo.cfg +246 -246
- package/android/src/main/cpp/libyuv/infra/config/luci-scheduler.cfg +385 -385
- package/android/src/main/cpp/libyuv/infra/config/main.star +402 -402
- package/android/src/main/cpp/libyuv/infra/config/project.cfg +16 -16
- package/android/src/main/cpp/libyuv/infra/config/realms.cfg +111 -111
- package/android/src/main/cpp/libyuv/libyuv.gni +34 -34
- package/android/src/main/cpp/libyuv/libyuv.gyp +149 -149
- package/android/src/main/cpp/libyuv/libyuv.gypi +87 -87
- package/android/src/main/cpp/libyuv/linux.mk +96 -96
- package/android/src/main/cpp/libyuv/public.mk +13 -13
- package/android/src/main/cpp/libyuv/pylintrc +49 -49
- package/android/src/main/cpp/libyuv/riscv_script/prepare_toolchain_qemu.sh +74 -74
- package/android/src/main/cpp/libyuv/riscv_script/riscv-clang.cmake +56 -56
- package/android/src/main/cpp/libyuv/riscv_script/run_qemu.sh +15 -15
- package/android/src/main/cpp/libyuv/source/compare.cc +435 -435
- package/android/src/main/cpp/libyuv/source/compare_common.cc +74 -74
- package/android/src/main/cpp/libyuv/source/compare_gcc.cc +362 -362
- package/android/src/main/cpp/libyuv/source/compare_neon.cc +96 -96
- package/android/src/main/cpp/libyuv/source/compare_neon64.cc +223 -223
- package/android/src/main/cpp/libyuv/source/compare_win.cc +241 -241
- package/android/src/main/cpp/libyuv/source/convert.cc +4746 -4746
- package/android/src/main/cpp/libyuv/source/convert_argb.cc +9179 -9179
- package/android/src/main/cpp/libyuv/source/convert_from.cc +866 -866
- package/android/src/main/cpp/libyuv/source/convert_from_argb.cc +3671 -3671
- package/android/src/main/cpp/libyuv/source/convert_jpeg.cc +602 -602
- package/android/src/main/cpp/libyuv/source/convert_to_argb.cc +391 -391
- package/android/src/main/cpp/libyuv/source/convert_to_i420.cc +288 -288
- package/android/src/main/cpp/libyuv/source/cpu_id.cc +496 -496
- package/android/src/main/cpp/libyuv/source/mjpeg_decoder.cc +580 -580
- package/android/src/main/cpp/libyuv/source/mjpeg_validate.cc +71 -71
- package/android/src/main/cpp/libyuv/source/planar_functions.cc +5663 -5663
- package/android/src/main/cpp/libyuv/source/rotate.cc +1241 -1241
- package/android/src/main/cpp/libyuv/source/rotate_any.cc +76 -76
- package/android/src/main/cpp/libyuv/source/rotate_argb.cc +259 -259
- package/android/src/main/cpp/libyuv/source/rotate_common.cc +208 -208
- package/android/src/main/cpp/libyuv/source/rotate_gcc.cc +505 -505
- package/android/src/main/cpp/libyuv/source/rotate_lsx.cc +233 -233
- package/android/src/main/cpp/libyuv/source/rotate_neon.cc +219 -219
- package/android/src/main/cpp/libyuv/source/rotate_neon64.cc +273 -273
- package/android/src/main/cpp/libyuv/source/rotate_sme.cc +174 -174
- package/android/src/main/cpp/libyuv/source/rotate_win.cc +253 -253
- package/android/src/main/cpp/libyuv/source/row_any.cc +2519 -2519
- package/android/src/main/cpp/libyuv/source/row_common.cc +4461 -4461
- package/android/src/main/cpp/libyuv/source/row_gcc.cc +9570 -9570
- package/android/src/main/cpp/libyuv/source/row_lasx.cc +2343 -2343
- package/android/src/main/cpp/libyuv/source/row_lsx.cc +3030 -3030
- package/android/src/main/cpp/libyuv/source/row_neon.cc +4026 -4026
- package/android/src/main/cpp/libyuv/source/row_neon64.cc +5617 -5617
- package/android/src/main/cpp/libyuv/source/row_rvv.cc +2599 -2599
- package/android/src/main/cpp/libyuv/source/row_sme.cc +1183 -1183
- package/android/src/main/cpp/libyuv/source/row_sve.cc +1088 -1088
- package/android/src/main/cpp/libyuv/source/row_win.cc +6453 -6453
- package/android/src/main/cpp/libyuv/source/scale.cc +2710 -2710
- package/android/src/main/cpp/libyuv/source/scale_any.cc +991 -991
- package/android/src/main/cpp/libyuv/source/scale_argb.cc +1158 -1158
- package/android/src/main/cpp/libyuv/source/scale_common.cc +1977 -1977
- package/android/src/main/cpp/libyuv/source/scale_gcc.cc +2947 -2947
- package/android/src/main/cpp/libyuv/source/scale_lsx.cc +739 -739
- package/android/src/main/cpp/libyuv/source/scale_neon.cc +1449 -1449
- package/android/src/main/cpp/libyuv/source/scale_neon64.cc +1552 -1552
- package/android/src/main/cpp/libyuv/source/scale_rgb.cc +82 -82
- package/android/src/main/cpp/libyuv/source/scale_rvv.cc +1971 -1971
- package/android/src/main/cpp/libyuv/source/scale_sme.cc +555 -555
- package/android/src/main/cpp/libyuv/source/scale_uv.cc +1159 -1159
- package/android/src/main/cpp/libyuv/source/scale_win.cc +1392 -1392
- package/android/src/main/cpp/libyuv/source/test.sh +35 -35
- package/android/src/main/cpp/libyuv/source/video_common.cc +62 -62
- package/android/src/main/cpp/libyuv/tools_libyuv/OWNERS +4 -4
- package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/roll_deps.py +931 -931
- package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/roll_deps_test.py +164 -164
- package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS +21 -21
- package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium.new +13 -13
- package/android/src/main/cpp/libyuv/tools_libyuv/autoroller/unittests/testdata/DEPS.chromium.old +13 -13
- package/android/src/main/cpp/libyuv/tools_libyuv/get_landmines.py +38 -38
- package/android/src/main/cpp/libyuv/tools_libyuv/msan/OWNERS +3 -3
- package/android/src/main/cpp/libyuv/tools_libyuv/msan/blacklist.txt +9 -9
- package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/OWNERS +3 -3
- package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/blacklist.txt +15 -15
- package/android/src/main/cpp/libyuv/tools_libyuv/ubsan/vptr_blacklist.txt +25 -25
- package/android/src/main/cpp/libyuv/unit_test/basictypes_test.cc +43 -43
- package/android/src/main/cpp/libyuv/unit_test/color_test.cc +848 -848
- package/android/src/main/cpp/libyuv/unit_test/compare_test.cc +739 -739
- package/android/src/main/cpp/libyuv/unit_test/convert_argb_test.cc +2867 -2867
- package/android/src/main/cpp/libyuv/unit_test/convert_test.cc +2133 -2133
- package/android/src/main/cpp/libyuv/unit_test/cpu_test.cc +427 -427
- package/android/src/main/cpp/libyuv/unit_test/cpu_thread_test.cc +63 -63
- package/android/src/main/cpp/libyuv/unit_test/math_test.cc +160 -160
- package/android/src/main/cpp/libyuv/unit_test/planar_test.cc +4731 -4731
- package/android/src/main/cpp/libyuv/unit_test/rotate_argb_test.cc +334 -334
- package/android/src/main/cpp/libyuv/unit_test/rotate_test.cc +962 -962
- package/android/src/main/cpp/libyuv/unit_test/scale_argb_test.cc +590 -590
- package/android/src/main/cpp/libyuv/unit_test/scale_plane_test.cc +465 -465
- package/android/src/main/cpp/libyuv/unit_test/scale_rgb_test.cc +280 -280
- package/android/src/main/cpp/libyuv/unit_test/scale_test.cc +1135 -1135
- package/android/src/main/cpp/libyuv/unit_test/scale_uv_test.cc +249 -249
- package/android/src/main/cpp/libyuv/unit_test/testdata/arm_v7.txt +12 -12
- package/android/src/main/cpp/libyuv/unit_test/testdata/mips.txt +7 -7
- package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson2k.txt +5 -5
- package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson3.txt +10 -10
- package/android/src/main/cpp/libyuv/unit_test/testdata/mips_loongson_mmi.txt +7 -7
- package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64.txt +3 -3
- package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64_rvv.txt +3 -3
- package/android/src/main/cpp/libyuv/unit_test/testdata/riscv64_rvv_zvfh.txt +3 -3
- package/android/src/main/cpp/libyuv/unit_test/testdata/tegra3.txt +23 -23
- package/android/src/main/cpp/libyuv/unit_test/unit_test.cc +581 -581
- package/android/src/main/cpp/libyuv/unit_test/unit_test.h +232 -232
- package/android/src/main/cpp/libyuv/unit_test/video_common_test.cc +112 -112
- package/android/src/main/cpp/libyuv/util/Makefile +9 -9
- package/android/src/main/cpp/libyuv/util/color.cc +120 -120
- package/android/src/main/cpp/libyuv/util/compare.cc +67 -67
- package/android/src/main/cpp/libyuv/util/cpuid.c +211 -211
- package/android/src/main/cpp/libyuv/util/i444tonv12_eg.cc +27 -27
- package/android/src/main/cpp/libyuv/util/psnr.cc +291 -291
- package/android/src/main/cpp/libyuv/util/psnr.h +47 -47
- package/android/src/main/cpp/libyuv/util/psnr_main.cc +620 -620
- package/android/src/main/cpp/libyuv/util/ssim.cc +364 -364
- package/android/src/main/cpp/libyuv/util/ssim.h +38 -38
- package/android/src/main/cpp/libyuv/util/yuvconstants.c +114 -114
- package/android/src/main/cpp/libyuv/util/yuvconvert.cc +367 -367
- package/android/src/main/cpp/libyuv/winarm.mk +47 -47
- package/package.json +86 -84
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
|
@@ -1,402 +1,402 @@
|
|
|
1
|
-
#!/usr/bin/env lucicfg
|
|
2
|
-
# https://chromium.googlesource.com/infra/luci/luci-go/+/master/lucicfg/doc/
|
|
3
|
-
|
|
4
|
-
"""LUCI project configuration for libyuv CQ and CI."""
|
|
5
|
-
|
|
6
|
-
lucicfg.check_version("1.30.9")
|
|
7
|
-
|
|
8
|
-
LIBYUV_GIT = "https://chromium.googlesource.com/libyuv/libyuv"
|
|
9
|
-
LIBYUV_GERRIT = "https://chromium-review.googlesource.com/libyuv/libyuv"
|
|
10
|
-
|
|
11
|
-
RBE_PROJECT = {
|
|
12
|
-
"ci": "rbe-webrtc-trusted",
|
|
13
|
-
"try": "rbe-webrtc-untrusted",
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
# Use LUCI Scheduler BBv2 names and add Scheduler realms configs.
|
|
17
|
-
lucicfg.enable_experiment("crbug.com/1182002")
|
|
18
|
-
|
|
19
|
-
lucicfg.config(
|
|
20
|
-
lint_checks = ["default"],
|
|
21
|
-
config_dir = ".",
|
|
22
|
-
tracked_files = [
|
|
23
|
-
"commit-queue.cfg",
|
|
24
|
-
"cr-buildbucket.cfg",
|
|
25
|
-
"luci-logdog.cfg",
|
|
26
|
-
"luci-milo.cfg",
|
|
27
|
-
"luci-scheduler.cfg",
|
|
28
|
-
"project.cfg",
|
|
29
|
-
"realms.cfg",
|
|
30
|
-
],
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
# Generates project.cfg
|
|
34
|
-
|
|
35
|
-
luci.project(
|
|
36
|
-
name = "libyuv",
|
|
37
|
-
buildbucket = "cr-buildbucket.appspot.com",
|
|
38
|
-
logdog = "luci-logdog.appspot.com",
|
|
39
|
-
milo = "luci-milo.appspot.com",
|
|
40
|
-
notify = "luci-notify.appspot.com",
|
|
41
|
-
scheduler = "luci-scheduler.appspot.com",
|
|
42
|
-
swarming = "chromium-swarm.appspot.com",
|
|
43
|
-
acls = [
|
|
44
|
-
acl.entry(acl.PROJECT_CONFIGS_READER, groups = ["all"]),
|
|
45
|
-
acl.entry(acl.LOGDOG_READER, groups = ["all"]),
|
|
46
|
-
acl.entry(acl.LOGDOG_WRITER, groups = ["luci-logdog-chromium-writers"]),
|
|
47
|
-
acl.entry(acl.SCHEDULER_READER, groups = ["all"]),
|
|
48
|
-
acl.entry(acl.SCHEDULER_OWNER, groups = ["project-libyuv-admins"]),
|
|
49
|
-
acl.entry(acl.BUILDBUCKET_READER, groups = ["all"]),
|
|
50
|
-
acl.entry(acl.BUILDBUCKET_OWNER, groups = ["project-libyuv-admins"]),
|
|
51
|
-
],
|
|
52
|
-
bindings = [
|
|
53
|
-
luci.binding(
|
|
54
|
-
roles = "role/swarming.taskTriggerer", # for LED tasks.
|
|
55
|
-
groups = "project-libyuv-admins",
|
|
56
|
-
),
|
|
57
|
-
luci.binding(
|
|
58
|
-
roles = "role/configs.validator",
|
|
59
|
-
users = "libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
60
|
-
),
|
|
61
|
-
],
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
# Generates luci-logdog.cfg
|
|
65
|
-
|
|
66
|
-
luci.logdog(
|
|
67
|
-
gs_bucket = "chromium-luci-logdog",
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
# Generates luci-scheduler.cfg
|
|
71
|
-
|
|
72
|
-
luci.gitiles_poller(
|
|
73
|
-
name = "master-gitiles-trigger",
|
|
74
|
-
bucket = "ci",
|
|
75
|
-
repo = LIBYUV_GIT,
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
# Generates luci-milo.cfg
|
|
79
|
-
|
|
80
|
-
luci.milo(
|
|
81
|
-
logo = "https://storage.googleapis.com/chrome-infra-public/logo/libyuv-logo.png",
|
|
82
|
-
)
|
|
83
|
-
|
|
84
|
-
def libyuv_ci_view(name, category, short_name):
|
|
85
|
-
return luci.console_view_entry(
|
|
86
|
-
console_view = "main",
|
|
87
|
-
builder = name,
|
|
88
|
-
category = category,
|
|
89
|
-
short_name = short_name,
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
def libyuv_try_view(name):
|
|
93
|
-
return luci.list_view_entry(
|
|
94
|
-
list_view = "try",
|
|
95
|
-
builder = name,
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
luci.console_view(
|
|
99
|
-
name = "main",
|
|
100
|
-
title = "libyuv Main Console",
|
|
101
|
-
include_experimental_builds = True,
|
|
102
|
-
repo = LIBYUV_GIT,
|
|
103
|
-
)
|
|
104
|
-
|
|
105
|
-
luci.list_view(
|
|
106
|
-
name = "cron",
|
|
107
|
-
title = "Cron",
|
|
108
|
-
entries = ["DEPS Autoroller"],
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
luci.list_view(
|
|
112
|
-
name = "try",
|
|
113
|
-
title = "libyuv Try Builders",
|
|
114
|
-
)
|
|
115
|
-
|
|
116
|
-
# Generates commit-queue.cfg
|
|
117
|
-
|
|
118
|
-
def libyuv_try_job_verifier(name, cq_group, experiment_percentage):
|
|
119
|
-
return luci.cq_tryjob_verifier(
|
|
120
|
-
builder = name,
|
|
121
|
-
cq_group = cq_group,
|
|
122
|
-
experiment_percentage = experiment_percentage,
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
luci.cq(
|
|
126
|
-
status_host = "chromium-cq-status.appspot.com",
|
|
127
|
-
submit_max_burst = 4,
|
|
128
|
-
submit_burst_delay = 8 * time.minute,
|
|
129
|
-
)
|
|
130
|
-
|
|
131
|
-
luci.cq_group(
|
|
132
|
-
name = "master",
|
|
133
|
-
watch = [
|
|
134
|
-
cq.refset(
|
|
135
|
-
repo = LIBYUV_GERRIT,
|
|
136
|
-
refs = ["refs/heads/main", "refs/heads/master"],
|
|
137
|
-
),
|
|
138
|
-
],
|
|
139
|
-
acls = [
|
|
140
|
-
acl.entry(acl.CQ_COMMITTER, groups = ["project-libyuv-committers"]),
|
|
141
|
-
acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-libyuv-tryjob-access"]),
|
|
142
|
-
],
|
|
143
|
-
retry_config = cq.RETRY_ALL_FAILURES,
|
|
144
|
-
cancel_stale_tryjobs = True,
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
luci.cq_group(
|
|
148
|
-
name = "config",
|
|
149
|
-
watch = [
|
|
150
|
-
cq.refset(
|
|
151
|
-
repo = LIBYUV_GERRIT,
|
|
152
|
-
refs = ["refs/heads/infra/config"],
|
|
153
|
-
),
|
|
154
|
-
],
|
|
155
|
-
acls = [
|
|
156
|
-
acl.entry(acl.CQ_COMMITTER, groups = ["project-libyuv-committers"]),
|
|
157
|
-
acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-libyuv-tryjob-access"]),
|
|
158
|
-
],
|
|
159
|
-
retry_config = cq.RETRY_ALL_FAILURES,
|
|
160
|
-
cancel_stale_tryjobs = True,
|
|
161
|
-
)
|
|
162
|
-
|
|
163
|
-
# Generates cr-buildbucket.cfg
|
|
164
|
-
|
|
165
|
-
luci.bucket(
|
|
166
|
-
name = "ci",
|
|
167
|
-
constraints = luci.bucket_constraints(
|
|
168
|
-
pools = ["luci.flex.ci"],
|
|
169
|
-
),
|
|
170
|
-
)
|
|
171
|
-
luci.bucket(
|
|
172
|
-
name = "ci.shadow",
|
|
173
|
-
shadows = "ci",
|
|
174
|
-
constraints = luci.bucket_constraints(
|
|
175
|
-
pools = ["luci.flex.ci"],
|
|
176
|
-
service_accounts = [
|
|
177
|
-
"libyuv-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
178
|
-
],
|
|
179
|
-
),
|
|
180
|
-
bindings = [
|
|
181
|
-
# For led permissions.
|
|
182
|
-
luci.binding(
|
|
183
|
-
roles = "role/buildbucket.creator",
|
|
184
|
-
groups = [
|
|
185
|
-
"chromium-led-users",
|
|
186
|
-
"mdb/chrome-build-access-sphinx",
|
|
187
|
-
"mdb/chrome-troopers",
|
|
188
|
-
"mdb/foundry-x-team",
|
|
189
|
-
],
|
|
190
|
-
),
|
|
191
|
-
],
|
|
192
|
-
dynamic = True,
|
|
193
|
-
)
|
|
194
|
-
luci.bucket(
|
|
195
|
-
name = "try",
|
|
196
|
-
acls = [
|
|
197
|
-
acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [
|
|
198
|
-
"project-libyuv-tryjob-access",
|
|
199
|
-
"service-account-cq",
|
|
200
|
-
]),
|
|
201
|
-
],
|
|
202
|
-
constraints = luci.bucket_constraints(
|
|
203
|
-
pools = ["luci.flex.try"],
|
|
204
|
-
service_accounts = [
|
|
205
|
-
"libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
206
|
-
],
|
|
207
|
-
),
|
|
208
|
-
)
|
|
209
|
-
luci.bucket(
|
|
210
|
-
name = "try.shadow",
|
|
211
|
-
shadows = "try",
|
|
212
|
-
constraints = luci.bucket_constraints(
|
|
213
|
-
pools = ["luci.flex.try"],
|
|
214
|
-
service_accounts = [
|
|
215
|
-
"libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
216
|
-
],
|
|
217
|
-
),
|
|
218
|
-
bindings = [
|
|
219
|
-
# For led permissions.
|
|
220
|
-
luci.binding(
|
|
221
|
-
roles = "role/buildbucket.creator",
|
|
222
|
-
groups = [
|
|
223
|
-
"chromium-led-users",
|
|
224
|
-
"mdb/chrome-build-access-sphinx",
|
|
225
|
-
"mdb/chrome-troopers",
|
|
226
|
-
"mdb/foundry-x-team",
|
|
227
|
-
],
|
|
228
|
-
),
|
|
229
|
-
],
|
|
230
|
-
dynamic = True,
|
|
231
|
-
)
|
|
232
|
-
luci.bucket(
|
|
233
|
-
name = "cron",
|
|
234
|
-
)
|
|
235
|
-
|
|
236
|
-
def get_os_dimensions(os):
|
|
237
|
-
if os == "android":
|
|
238
|
-
return {"device_type": "walleye"}
|
|
239
|
-
if os == "ios" or os == "mac":
|
|
240
|
-
return {"os": "Mac-15", "cpu": "arm64"}
|
|
241
|
-
elif os == "win":
|
|
242
|
-
return {"os": "Windows-10", "cores": "8", "cpu": "x86-64"}
|
|
243
|
-
elif os == "linux":
|
|
244
|
-
return {"os": "Ubuntu-22.04", "cores": "8", "cpu": "x86-64"}
|
|
245
|
-
return {}
|
|
246
|
-
|
|
247
|
-
def libyuv_ci_builder(name, dimensions, properties, triggered_by):
|
|
248
|
-
return luci.builder(
|
|
249
|
-
name = name,
|
|
250
|
-
dimensions = dimensions,
|
|
251
|
-
properties = properties,
|
|
252
|
-
bucket = "ci",
|
|
253
|
-
service_account = "libyuv-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
254
|
-
triggered_by = triggered_by,
|
|
255
|
-
swarming_tags = ["vpython:native-python-wrapper"],
|
|
256
|
-
execution_timeout = 180 * time.minute,
|
|
257
|
-
build_numbers = True,
|
|
258
|
-
executable = luci.recipe(
|
|
259
|
-
name = "libyuv/libyuv",
|
|
260
|
-
cipd_package = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build",
|
|
261
|
-
),
|
|
262
|
-
)
|
|
263
|
-
|
|
264
|
-
def libyuv_try_builder(name, dimensions, properties, recipe_name = "libyuv/libyuv"):
|
|
265
|
-
return luci.builder(
|
|
266
|
-
name = name,
|
|
267
|
-
dimensions = dimensions,
|
|
268
|
-
properties = properties,
|
|
269
|
-
bucket = "try",
|
|
270
|
-
service_account = "libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
271
|
-
swarming_tags = ["vpython:native-python-wrapper"],
|
|
272
|
-
execution_timeout = 180 * time.minute,
|
|
273
|
-
build_numbers = True,
|
|
274
|
-
executable = luci.recipe(
|
|
275
|
-
name = recipe_name,
|
|
276
|
-
cipd_package = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build",
|
|
277
|
-
),
|
|
278
|
-
)
|
|
279
|
-
|
|
280
|
-
def get_build_properties(bucket):
|
|
281
|
-
rbe_project = RBE_PROJECT.get(bucket)
|
|
282
|
-
return {
|
|
283
|
-
"$build/siso": {
|
|
284
|
-
"project": rbe_project,
|
|
285
|
-
"configs": ["builder"],
|
|
286
|
-
"enable_cloud_profiler": True,
|
|
287
|
-
"enable_cloud_trace": True,
|
|
288
|
-
"enable_monitoring": True,
|
|
289
|
-
},
|
|
290
|
-
"$depot_tools/osx_sdk": {
|
|
291
|
-
"sdk_version": "17a324"
|
|
292
|
-
},
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
def ci_builder(name, os, category, short_name = None):
|
|
296
|
-
dimensions = get_os_dimensions(os)
|
|
297
|
-
properties = get_build_properties("ci")
|
|
298
|
-
|
|
299
|
-
dimensions["pool"] = "luci.flex.ci"
|
|
300
|
-
properties["builder_group"] = "client.libyuv"
|
|
301
|
-
|
|
302
|
-
triggered_by = ["master-gitiles-trigger" if os != "android" else "Android Debug"]
|
|
303
|
-
libyuv_ci_view(name, category, short_name)
|
|
304
|
-
return libyuv_ci_builder(name, dimensions, properties, triggered_by)
|
|
305
|
-
|
|
306
|
-
def try_builder(name, os, experiment_percentage = None):
|
|
307
|
-
dimensions = get_os_dimensions(os)
|
|
308
|
-
properties = get_build_properties("try")
|
|
309
|
-
|
|
310
|
-
dimensions["pool"] = "luci.flex.try"
|
|
311
|
-
properties["builder_group"] = "tryserver.libyuv"
|
|
312
|
-
|
|
313
|
-
if name == "presubmit":
|
|
314
|
-
recipe_name = "run_presubmit"
|
|
315
|
-
properties["repo_name"] = "libyuv"
|
|
316
|
-
properties["runhooks"] = True
|
|
317
|
-
libyuv_try_job_verifier(name, "config", experiment_percentage)
|
|
318
|
-
return libyuv_try_builder(name, dimensions, properties, recipe_name)
|
|
319
|
-
|
|
320
|
-
libyuv_try_job_verifier(name, "master", experiment_percentage)
|
|
321
|
-
libyuv_try_view(name)
|
|
322
|
-
return libyuv_try_builder(name, dimensions, properties)
|
|
323
|
-
|
|
324
|
-
luci.builder(
|
|
325
|
-
name = "DEPS Autoroller",
|
|
326
|
-
bucket = "cron",
|
|
327
|
-
service_account = "libyuv-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
328
|
-
dimensions = {
|
|
329
|
-
"pool": "luci.webrtc.cron",
|
|
330
|
-
"os": "Linux",
|
|
331
|
-
"cpu": "x86-64",
|
|
332
|
-
},
|
|
333
|
-
swarming_tags = ["vpython:native-python-wrapper"],
|
|
334
|
-
execution_timeout = 120 * time.minute,
|
|
335
|
-
build_numbers = True,
|
|
336
|
-
schedule = "0 14 * * *", # Every 2 hours.
|
|
337
|
-
executable = luci.recipe(
|
|
338
|
-
name = "libyuv/roll_deps",
|
|
339
|
-
cipd_package = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build",
|
|
340
|
-
),
|
|
341
|
-
)
|
|
342
|
-
|
|
343
|
-
ci_builder("Android ARM64 Debug", "linux", "Android|Builder", "dbg")
|
|
344
|
-
ci_builder("Android Debug", "linux", "Android|Builder", "dbg")
|
|
345
|
-
ci_builder("Android Release", "linux", "Android|Builder", "rel")
|
|
346
|
-
ci_builder("Android32 x86 Debug", "linux", "Android|Builder|x86", "dbg")
|
|
347
|
-
ci_builder("Android64 x64 Debug", "linux", "Android|Builder|x64", "dbg")
|
|
348
|
-
ci_builder("Android Tester ARM32 Debug (Nexus 5X)", "android", "Android|Tester|ARM 32", "dbg")
|
|
349
|
-
ci_builder("Android Tester ARM32 Release (Nexus 5X)", "android", "Android|Tester|ARM 32", "rel")
|
|
350
|
-
ci_builder("Android Tester ARM64 Debug (Nexus 5X)", "android", "Android|Tester|ARM 64", "dbg")
|
|
351
|
-
ci_builder("Linux Asan", "linux", "Linux", "asan")
|
|
352
|
-
ci_builder("Linux MSan", "linux", "Linux", "msan")
|
|
353
|
-
ci_builder("Linux Tsan v2", "linux", "Linux", "tsan")
|
|
354
|
-
ci_builder("Linux UBSan", "linux", "Linux|UBSan")
|
|
355
|
-
ci_builder("Linux UBSan vptr", "linux", "Linux|UBSan", "vptr")
|
|
356
|
-
ci_builder("Linux32 Debug", "linux", "Linux|32", "dbg")
|
|
357
|
-
ci_builder("Linux32 Release", "linux", "Linux|32", "rel")
|
|
358
|
-
ci_builder("Linux64 Debug", "linux", "Linux|64", "dbg")
|
|
359
|
-
ci_builder("Linux64 Release", "linux", "Linux|64", "rel")
|
|
360
|
-
ci_builder("Mac Asan", "mac", "Mac", "asan")
|
|
361
|
-
ci_builder("Mac64 Debug", "mac", "Mac", "dbg")
|
|
362
|
-
ci_builder("Mac64 Release", "mac", "Mac", "rel")
|
|
363
|
-
ci_builder("Win32 Debug", "win", "Win|32|Debug")
|
|
364
|
-
ci_builder("Win32 Debug (Clang)", "win", "Win|32|Debug", "clg")
|
|
365
|
-
ci_builder("Win32 Release", "win", "Win|32|Release")
|
|
366
|
-
ci_builder("Win32 Release (Clang)", "win", "Win|32|Release", "clg")
|
|
367
|
-
ci_builder("Win64 Debug", "win", "Win|64|Debug", "clg")
|
|
368
|
-
ci_builder("Win64 Debug (Clang)", "win", "Win|64|Debug", "clg")
|
|
369
|
-
ci_builder("Win64 Release", "win", "Win|64|Release")
|
|
370
|
-
ci_builder("Win64 Release (Clang)", "win", "Win|64|Release", "clg")
|
|
371
|
-
ci_builder("iOS ARM64 Debug", "ios", "iOS|ARM64", "dbg")
|
|
372
|
-
ci_builder("iOS ARM64 Release", "ios", "iOS|ARM64", "rel")
|
|
373
|
-
|
|
374
|
-
# TODO(crbug.com/1242847): make this not experimental.
|
|
375
|
-
try_builder("android", "android", experiment_percentage = 100)
|
|
376
|
-
try_builder("android_arm64", "android", experiment_percentage = 100)
|
|
377
|
-
try_builder("android_rel", "android", experiment_percentage = 100)
|
|
378
|
-
|
|
379
|
-
try_builder("android_x64", "linux")
|
|
380
|
-
try_builder("android_x86", "linux")
|
|
381
|
-
try_builder("ios_arm64", "ios")
|
|
382
|
-
try_builder("ios_arm64_rel", "ios")
|
|
383
|
-
try_builder("linux", "linux")
|
|
384
|
-
try_builder("linux_asan", "linux")
|
|
385
|
-
try_builder("linux_gcc", "linux", experiment_percentage = 100)
|
|
386
|
-
|
|
387
|
-
# TODO(libyuv:388428508): Make linux_msan not experimental.
|
|
388
|
-
try_builder("linux_msan", "linux", experiment_percentage = 100)
|
|
389
|
-
try_builder("linux_rel", "linux")
|
|
390
|
-
try_builder("linux_tsan2", "linux")
|
|
391
|
-
try_builder("linux_ubsan", "linux")
|
|
392
|
-
try_builder("linux_ubsan_vptr", "linux")
|
|
393
|
-
try_builder("mac", "mac")
|
|
394
|
-
try_builder("mac_asan", "mac")
|
|
395
|
-
try_builder("mac_rel", "mac")
|
|
396
|
-
try_builder("win", "win")
|
|
397
|
-
try_builder("win_clang", "win")
|
|
398
|
-
try_builder("win_clang_rel", "win")
|
|
399
|
-
try_builder("win_rel", "win")
|
|
400
|
-
try_builder("win_x64_clang_rel", "win")
|
|
401
|
-
try_builder("win_x64_rel", "win")
|
|
402
|
-
try_builder("presubmit", "linux")
|
|
1
|
+
#!/usr/bin/env lucicfg
|
|
2
|
+
# https://chromium.googlesource.com/infra/luci/luci-go/+/master/lucicfg/doc/
|
|
3
|
+
|
|
4
|
+
"""LUCI project configuration for libyuv CQ and CI."""
|
|
5
|
+
|
|
6
|
+
lucicfg.check_version("1.30.9")
|
|
7
|
+
|
|
8
|
+
LIBYUV_GIT = "https://chromium.googlesource.com/libyuv/libyuv"
|
|
9
|
+
LIBYUV_GERRIT = "https://chromium-review.googlesource.com/libyuv/libyuv"
|
|
10
|
+
|
|
11
|
+
RBE_PROJECT = {
|
|
12
|
+
"ci": "rbe-webrtc-trusted",
|
|
13
|
+
"try": "rbe-webrtc-untrusted",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
# Use LUCI Scheduler BBv2 names and add Scheduler realms configs.
|
|
17
|
+
lucicfg.enable_experiment("crbug.com/1182002")
|
|
18
|
+
|
|
19
|
+
lucicfg.config(
|
|
20
|
+
lint_checks = ["default"],
|
|
21
|
+
config_dir = ".",
|
|
22
|
+
tracked_files = [
|
|
23
|
+
"commit-queue.cfg",
|
|
24
|
+
"cr-buildbucket.cfg",
|
|
25
|
+
"luci-logdog.cfg",
|
|
26
|
+
"luci-milo.cfg",
|
|
27
|
+
"luci-scheduler.cfg",
|
|
28
|
+
"project.cfg",
|
|
29
|
+
"realms.cfg",
|
|
30
|
+
],
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
# Generates project.cfg
|
|
34
|
+
|
|
35
|
+
luci.project(
|
|
36
|
+
name = "libyuv",
|
|
37
|
+
buildbucket = "cr-buildbucket.appspot.com",
|
|
38
|
+
logdog = "luci-logdog.appspot.com",
|
|
39
|
+
milo = "luci-milo.appspot.com",
|
|
40
|
+
notify = "luci-notify.appspot.com",
|
|
41
|
+
scheduler = "luci-scheduler.appspot.com",
|
|
42
|
+
swarming = "chromium-swarm.appspot.com",
|
|
43
|
+
acls = [
|
|
44
|
+
acl.entry(acl.PROJECT_CONFIGS_READER, groups = ["all"]),
|
|
45
|
+
acl.entry(acl.LOGDOG_READER, groups = ["all"]),
|
|
46
|
+
acl.entry(acl.LOGDOG_WRITER, groups = ["luci-logdog-chromium-writers"]),
|
|
47
|
+
acl.entry(acl.SCHEDULER_READER, groups = ["all"]),
|
|
48
|
+
acl.entry(acl.SCHEDULER_OWNER, groups = ["project-libyuv-admins"]),
|
|
49
|
+
acl.entry(acl.BUILDBUCKET_READER, groups = ["all"]),
|
|
50
|
+
acl.entry(acl.BUILDBUCKET_OWNER, groups = ["project-libyuv-admins"]),
|
|
51
|
+
],
|
|
52
|
+
bindings = [
|
|
53
|
+
luci.binding(
|
|
54
|
+
roles = "role/swarming.taskTriggerer", # for LED tasks.
|
|
55
|
+
groups = "project-libyuv-admins",
|
|
56
|
+
),
|
|
57
|
+
luci.binding(
|
|
58
|
+
roles = "role/configs.validator",
|
|
59
|
+
users = "libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
60
|
+
),
|
|
61
|
+
],
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# Generates luci-logdog.cfg
|
|
65
|
+
|
|
66
|
+
luci.logdog(
|
|
67
|
+
gs_bucket = "chromium-luci-logdog",
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
# Generates luci-scheduler.cfg
|
|
71
|
+
|
|
72
|
+
luci.gitiles_poller(
|
|
73
|
+
name = "master-gitiles-trigger",
|
|
74
|
+
bucket = "ci",
|
|
75
|
+
repo = LIBYUV_GIT,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
# Generates luci-milo.cfg
|
|
79
|
+
|
|
80
|
+
luci.milo(
|
|
81
|
+
logo = "https://storage.googleapis.com/chrome-infra-public/logo/libyuv-logo.png",
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
def libyuv_ci_view(name, category, short_name):
|
|
85
|
+
return luci.console_view_entry(
|
|
86
|
+
console_view = "main",
|
|
87
|
+
builder = name,
|
|
88
|
+
category = category,
|
|
89
|
+
short_name = short_name,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
def libyuv_try_view(name):
|
|
93
|
+
return luci.list_view_entry(
|
|
94
|
+
list_view = "try",
|
|
95
|
+
builder = name,
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
luci.console_view(
|
|
99
|
+
name = "main",
|
|
100
|
+
title = "libyuv Main Console",
|
|
101
|
+
include_experimental_builds = True,
|
|
102
|
+
repo = LIBYUV_GIT,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
luci.list_view(
|
|
106
|
+
name = "cron",
|
|
107
|
+
title = "Cron",
|
|
108
|
+
entries = ["DEPS Autoroller"],
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
luci.list_view(
|
|
112
|
+
name = "try",
|
|
113
|
+
title = "libyuv Try Builders",
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
# Generates commit-queue.cfg
|
|
117
|
+
|
|
118
|
+
def libyuv_try_job_verifier(name, cq_group, experiment_percentage):
|
|
119
|
+
return luci.cq_tryjob_verifier(
|
|
120
|
+
builder = name,
|
|
121
|
+
cq_group = cq_group,
|
|
122
|
+
experiment_percentage = experiment_percentage,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
luci.cq(
|
|
126
|
+
status_host = "chromium-cq-status.appspot.com",
|
|
127
|
+
submit_max_burst = 4,
|
|
128
|
+
submit_burst_delay = 8 * time.minute,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
luci.cq_group(
|
|
132
|
+
name = "master",
|
|
133
|
+
watch = [
|
|
134
|
+
cq.refset(
|
|
135
|
+
repo = LIBYUV_GERRIT,
|
|
136
|
+
refs = ["refs/heads/main", "refs/heads/master"],
|
|
137
|
+
),
|
|
138
|
+
],
|
|
139
|
+
acls = [
|
|
140
|
+
acl.entry(acl.CQ_COMMITTER, groups = ["project-libyuv-committers"]),
|
|
141
|
+
acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-libyuv-tryjob-access"]),
|
|
142
|
+
],
|
|
143
|
+
retry_config = cq.RETRY_ALL_FAILURES,
|
|
144
|
+
cancel_stale_tryjobs = True,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
luci.cq_group(
|
|
148
|
+
name = "config",
|
|
149
|
+
watch = [
|
|
150
|
+
cq.refset(
|
|
151
|
+
repo = LIBYUV_GERRIT,
|
|
152
|
+
refs = ["refs/heads/infra/config"],
|
|
153
|
+
),
|
|
154
|
+
],
|
|
155
|
+
acls = [
|
|
156
|
+
acl.entry(acl.CQ_COMMITTER, groups = ["project-libyuv-committers"]),
|
|
157
|
+
acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-libyuv-tryjob-access"]),
|
|
158
|
+
],
|
|
159
|
+
retry_config = cq.RETRY_ALL_FAILURES,
|
|
160
|
+
cancel_stale_tryjobs = True,
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
# Generates cr-buildbucket.cfg
|
|
164
|
+
|
|
165
|
+
luci.bucket(
|
|
166
|
+
name = "ci",
|
|
167
|
+
constraints = luci.bucket_constraints(
|
|
168
|
+
pools = ["luci.flex.ci"],
|
|
169
|
+
),
|
|
170
|
+
)
|
|
171
|
+
luci.bucket(
|
|
172
|
+
name = "ci.shadow",
|
|
173
|
+
shadows = "ci",
|
|
174
|
+
constraints = luci.bucket_constraints(
|
|
175
|
+
pools = ["luci.flex.ci"],
|
|
176
|
+
service_accounts = [
|
|
177
|
+
"libyuv-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
178
|
+
],
|
|
179
|
+
),
|
|
180
|
+
bindings = [
|
|
181
|
+
# For led permissions.
|
|
182
|
+
luci.binding(
|
|
183
|
+
roles = "role/buildbucket.creator",
|
|
184
|
+
groups = [
|
|
185
|
+
"chromium-led-users",
|
|
186
|
+
"mdb/chrome-build-access-sphinx",
|
|
187
|
+
"mdb/chrome-troopers",
|
|
188
|
+
"mdb/foundry-x-team",
|
|
189
|
+
],
|
|
190
|
+
),
|
|
191
|
+
],
|
|
192
|
+
dynamic = True,
|
|
193
|
+
)
|
|
194
|
+
luci.bucket(
|
|
195
|
+
name = "try",
|
|
196
|
+
acls = [
|
|
197
|
+
acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [
|
|
198
|
+
"project-libyuv-tryjob-access",
|
|
199
|
+
"service-account-cq",
|
|
200
|
+
]),
|
|
201
|
+
],
|
|
202
|
+
constraints = luci.bucket_constraints(
|
|
203
|
+
pools = ["luci.flex.try"],
|
|
204
|
+
service_accounts = [
|
|
205
|
+
"libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
206
|
+
],
|
|
207
|
+
),
|
|
208
|
+
)
|
|
209
|
+
luci.bucket(
|
|
210
|
+
name = "try.shadow",
|
|
211
|
+
shadows = "try",
|
|
212
|
+
constraints = luci.bucket_constraints(
|
|
213
|
+
pools = ["luci.flex.try"],
|
|
214
|
+
service_accounts = [
|
|
215
|
+
"libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
216
|
+
],
|
|
217
|
+
),
|
|
218
|
+
bindings = [
|
|
219
|
+
# For led permissions.
|
|
220
|
+
luci.binding(
|
|
221
|
+
roles = "role/buildbucket.creator",
|
|
222
|
+
groups = [
|
|
223
|
+
"chromium-led-users",
|
|
224
|
+
"mdb/chrome-build-access-sphinx",
|
|
225
|
+
"mdb/chrome-troopers",
|
|
226
|
+
"mdb/foundry-x-team",
|
|
227
|
+
],
|
|
228
|
+
),
|
|
229
|
+
],
|
|
230
|
+
dynamic = True,
|
|
231
|
+
)
|
|
232
|
+
luci.bucket(
|
|
233
|
+
name = "cron",
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
def get_os_dimensions(os):
|
|
237
|
+
if os == "android":
|
|
238
|
+
return {"device_type": "walleye"}
|
|
239
|
+
if os == "ios" or os == "mac":
|
|
240
|
+
return {"os": "Mac-15", "cpu": "arm64"}
|
|
241
|
+
elif os == "win":
|
|
242
|
+
return {"os": "Windows-10", "cores": "8", "cpu": "x86-64"}
|
|
243
|
+
elif os == "linux":
|
|
244
|
+
return {"os": "Ubuntu-22.04", "cores": "8", "cpu": "x86-64"}
|
|
245
|
+
return {}
|
|
246
|
+
|
|
247
|
+
def libyuv_ci_builder(name, dimensions, properties, triggered_by):
|
|
248
|
+
return luci.builder(
|
|
249
|
+
name = name,
|
|
250
|
+
dimensions = dimensions,
|
|
251
|
+
properties = properties,
|
|
252
|
+
bucket = "ci",
|
|
253
|
+
service_account = "libyuv-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
254
|
+
triggered_by = triggered_by,
|
|
255
|
+
swarming_tags = ["vpython:native-python-wrapper"],
|
|
256
|
+
execution_timeout = 180 * time.minute,
|
|
257
|
+
build_numbers = True,
|
|
258
|
+
executable = luci.recipe(
|
|
259
|
+
name = "libyuv/libyuv",
|
|
260
|
+
cipd_package = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build",
|
|
261
|
+
),
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
def libyuv_try_builder(name, dimensions, properties, recipe_name = "libyuv/libyuv"):
|
|
265
|
+
return luci.builder(
|
|
266
|
+
name = name,
|
|
267
|
+
dimensions = dimensions,
|
|
268
|
+
properties = properties,
|
|
269
|
+
bucket = "try",
|
|
270
|
+
service_account = "libyuv-try-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
271
|
+
swarming_tags = ["vpython:native-python-wrapper"],
|
|
272
|
+
execution_timeout = 180 * time.minute,
|
|
273
|
+
build_numbers = True,
|
|
274
|
+
executable = luci.recipe(
|
|
275
|
+
name = recipe_name,
|
|
276
|
+
cipd_package = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build",
|
|
277
|
+
),
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
def get_build_properties(bucket):
|
|
281
|
+
rbe_project = RBE_PROJECT.get(bucket)
|
|
282
|
+
return {
|
|
283
|
+
"$build/siso": {
|
|
284
|
+
"project": rbe_project,
|
|
285
|
+
"configs": ["builder"],
|
|
286
|
+
"enable_cloud_profiler": True,
|
|
287
|
+
"enable_cloud_trace": True,
|
|
288
|
+
"enable_monitoring": True,
|
|
289
|
+
},
|
|
290
|
+
"$depot_tools/osx_sdk": {
|
|
291
|
+
"sdk_version": "17a324"
|
|
292
|
+
},
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
def ci_builder(name, os, category, short_name = None):
|
|
296
|
+
dimensions = get_os_dimensions(os)
|
|
297
|
+
properties = get_build_properties("ci")
|
|
298
|
+
|
|
299
|
+
dimensions["pool"] = "luci.flex.ci"
|
|
300
|
+
properties["builder_group"] = "client.libyuv"
|
|
301
|
+
|
|
302
|
+
triggered_by = ["master-gitiles-trigger" if os != "android" else "Android Debug"]
|
|
303
|
+
libyuv_ci_view(name, category, short_name)
|
|
304
|
+
return libyuv_ci_builder(name, dimensions, properties, triggered_by)
|
|
305
|
+
|
|
306
|
+
def try_builder(name, os, experiment_percentage = None):
|
|
307
|
+
dimensions = get_os_dimensions(os)
|
|
308
|
+
properties = get_build_properties("try")
|
|
309
|
+
|
|
310
|
+
dimensions["pool"] = "luci.flex.try"
|
|
311
|
+
properties["builder_group"] = "tryserver.libyuv"
|
|
312
|
+
|
|
313
|
+
if name == "presubmit":
|
|
314
|
+
recipe_name = "run_presubmit"
|
|
315
|
+
properties["repo_name"] = "libyuv"
|
|
316
|
+
properties["runhooks"] = True
|
|
317
|
+
libyuv_try_job_verifier(name, "config", experiment_percentage)
|
|
318
|
+
return libyuv_try_builder(name, dimensions, properties, recipe_name)
|
|
319
|
+
|
|
320
|
+
libyuv_try_job_verifier(name, "master", experiment_percentage)
|
|
321
|
+
libyuv_try_view(name)
|
|
322
|
+
return libyuv_try_builder(name, dimensions, properties)
|
|
323
|
+
|
|
324
|
+
luci.builder(
|
|
325
|
+
name = "DEPS Autoroller",
|
|
326
|
+
bucket = "cron",
|
|
327
|
+
service_account = "libyuv-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com",
|
|
328
|
+
dimensions = {
|
|
329
|
+
"pool": "luci.webrtc.cron",
|
|
330
|
+
"os": "Linux",
|
|
331
|
+
"cpu": "x86-64",
|
|
332
|
+
},
|
|
333
|
+
swarming_tags = ["vpython:native-python-wrapper"],
|
|
334
|
+
execution_timeout = 120 * time.minute,
|
|
335
|
+
build_numbers = True,
|
|
336
|
+
schedule = "0 14 * * *", # Every 2 hours.
|
|
337
|
+
executable = luci.recipe(
|
|
338
|
+
name = "libyuv/roll_deps",
|
|
339
|
+
cipd_package = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build",
|
|
340
|
+
),
|
|
341
|
+
)
|
|
342
|
+
|
|
343
|
+
ci_builder("Android ARM64 Debug", "linux", "Android|Builder", "dbg")
|
|
344
|
+
ci_builder("Android Debug", "linux", "Android|Builder", "dbg")
|
|
345
|
+
ci_builder("Android Release", "linux", "Android|Builder", "rel")
|
|
346
|
+
ci_builder("Android32 x86 Debug", "linux", "Android|Builder|x86", "dbg")
|
|
347
|
+
ci_builder("Android64 x64 Debug", "linux", "Android|Builder|x64", "dbg")
|
|
348
|
+
ci_builder("Android Tester ARM32 Debug (Nexus 5X)", "android", "Android|Tester|ARM 32", "dbg")
|
|
349
|
+
ci_builder("Android Tester ARM32 Release (Nexus 5X)", "android", "Android|Tester|ARM 32", "rel")
|
|
350
|
+
ci_builder("Android Tester ARM64 Debug (Nexus 5X)", "android", "Android|Tester|ARM 64", "dbg")
|
|
351
|
+
ci_builder("Linux Asan", "linux", "Linux", "asan")
|
|
352
|
+
ci_builder("Linux MSan", "linux", "Linux", "msan")
|
|
353
|
+
ci_builder("Linux Tsan v2", "linux", "Linux", "tsan")
|
|
354
|
+
ci_builder("Linux UBSan", "linux", "Linux|UBSan")
|
|
355
|
+
ci_builder("Linux UBSan vptr", "linux", "Linux|UBSan", "vptr")
|
|
356
|
+
ci_builder("Linux32 Debug", "linux", "Linux|32", "dbg")
|
|
357
|
+
ci_builder("Linux32 Release", "linux", "Linux|32", "rel")
|
|
358
|
+
ci_builder("Linux64 Debug", "linux", "Linux|64", "dbg")
|
|
359
|
+
ci_builder("Linux64 Release", "linux", "Linux|64", "rel")
|
|
360
|
+
ci_builder("Mac Asan", "mac", "Mac", "asan")
|
|
361
|
+
ci_builder("Mac64 Debug", "mac", "Mac", "dbg")
|
|
362
|
+
ci_builder("Mac64 Release", "mac", "Mac", "rel")
|
|
363
|
+
ci_builder("Win32 Debug", "win", "Win|32|Debug")
|
|
364
|
+
ci_builder("Win32 Debug (Clang)", "win", "Win|32|Debug", "clg")
|
|
365
|
+
ci_builder("Win32 Release", "win", "Win|32|Release")
|
|
366
|
+
ci_builder("Win32 Release (Clang)", "win", "Win|32|Release", "clg")
|
|
367
|
+
ci_builder("Win64 Debug", "win", "Win|64|Debug", "clg")
|
|
368
|
+
ci_builder("Win64 Debug (Clang)", "win", "Win|64|Debug", "clg")
|
|
369
|
+
ci_builder("Win64 Release", "win", "Win|64|Release")
|
|
370
|
+
ci_builder("Win64 Release (Clang)", "win", "Win|64|Release", "clg")
|
|
371
|
+
ci_builder("iOS ARM64 Debug", "ios", "iOS|ARM64", "dbg")
|
|
372
|
+
ci_builder("iOS ARM64 Release", "ios", "iOS|ARM64", "rel")
|
|
373
|
+
|
|
374
|
+
# TODO(crbug.com/1242847): make this not experimental.
|
|
375
|
+
try_builder("android", "android", experiment_percentage = 100)
|
|
376
|
+
try_builder("android_arm64", "android", experiment_percentage = 100)
|
|
377
|
+
try_builder("android_rel", "android", experiment_percentage = 100)
|
|
378
|
+
|
|
379
|
+
try_builder("android_x64", "linux")
|
|
380
|
+
try_builder("android_x86", "linux")
|
|
381
|
+
try_builder("ios_arm64", "ios")
|
|
382
|
+
try_builder("ios_arm64_rel", "ios")
|
|
383
|
+
try_builder("linux", "linux")
|
|
384
|
+
try_builder("linux_asan", "linux")
|
|
385
|
+
try_builder("linux_gcc", "linux", experiment_percentage = 100)
|
|
386
|
+
|
|
387
|
+
# TODO(libyuv:388428508): Make linux_msan not experimental.
|
|
388
|
+
try_builder("linux_msan", "linux", experiment_percentage = 100)
|
|
389
|
+
try_builder("linux_rel", "linux")
|
|
390
|
+
try_builder("linux_tsan2", "linux")
|
|
391
|
+
try_builder("linux_ubsan", "linux")
|
|
392
|
+
try_builder("linux_ubsan_vptr", "linux")
|
|
393
|
+
try_builder("mac", "mac")
|
|
394
|
+
try_builder("mac_asan", "mac")
|
|
395
|
+
try_builder("mac_rel", "mac")
|
|
396
|
+
try_builder("win", "win")
|
|
397
|
+
try_builder("win_clang", "win")
|
|
398
|
+
try_builder("win_clang_rel", "win")
|
|
399
|
+
try_builder("win_rel", "win")
|
|
400
|
+
try_builder("win_x64_clang_rel", "win")
|
|
401
|
+
try_builder("win_x64_rel", "win")
|
|
402
|
+
try_builder("presubmit", "linux")
|