Skip to content

Commit bd3f4b6

Browse files
sophiaaarFrancescoC-unity
authored andcommitted
[Yamato] Enable cache server for standalone build jobs (#3106)
* create standalone_cache jobs * use cache jobs for trunk verification * fix commands so linux can recognise them need to wrap each string around "extra-editor-arg"
1 parent a8b316c commit bd3f4b6

Some content is hidden

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

54 files changed

+4683
-7394
lines changed

.yamato/config/shadergraph.metafile

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test_platforms:
3434
- [all]: --extra-editor-arg="-cacheServerEnableDownload" --extra-editor-arg="true"
3535
- [all]: --extra-editor-arg="-cacheServerEnableUpload" --extra-editor-arg="true"
3636
expression_trigger:
37-
expression: 'pull_request.target eq "<TARGET_BRANCH>" AND NOT pull_request.draft AND pull_request.changes.any match ["com.unity.shadergraph/**/*", "TestProjects/ShaderGraph/**/*"] AND NOT pull_request.push.changes.all match ["*.md", "**/*.md", "doc/**/*", "**/Documentation*/**/*"]'
37+
expression: 'pull_request.target eq "master" AND NOT pull_request.draft AND pull_request.changes.any match ["com.unity.shadergraph/**/*", "TestProjects/ShaderGraph/**/*"]'
3838
platforms:
3939
- name: Win
4040
apis:
@@ -44,28 +44,6 @@ platforms:
4444
- name: mono
4545
color_spaces:
4646
- Linear
47-
agents_project:
48-
default:
49-
type: Unity::VM::GPU
50-
image: sdet/gamecode_win10:stable
51-
flavor: b1.xlarge
52-
model: rtx2080
53-
editmode:
54-
type: Unity::VM
55-
image: sdet/gamecode_win10:stable
56-
flavor: b1.large
57-
standalone:
58-
type: Unity::VM::GPU
59-
image: sdet/gamecode_win10:stable
60-
flavor: b1.large
61-
standalone_cache:
62-
type: Unity::VM::GPU
63-
image: sdet/gamecode_win10:stable
64-
flavor: b1.large
65-
standalone_build:
66-
type: Unity::VM
67-
image: sdet/gamecode_win10:stable
68-
flavor: b1.xlarge
6947
- name: OSX
7048
apis:
7149
- name: Metal
@@ -180,4 +158,5 @@ nightly:
180158
build_config: il2cpp
181159
color_space: Linear
182160
test_platforms:
183-
- Standalone_cache
161+
- Standalone_cache
162+

.yamato/config/universal.metafile

Lines changed: 35 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,49 @@
11
project:
22
name: Universal
33
folder: UniversalGraphicsTest
4-
5-
reuse_blocks:
6-
setup_with_utr:
7-
- [Win_DX11, Win_DX12, Win_Vulkan, Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.turn_off_firewall>
8-
- [Win_DX11, Win_DX12, Win_Vulkan]: cd Tools && powershell -command ". .\Unity.ps1; Set-ScreenResolution -width 1920 -Height 1080"
9-
- [all]: <shared.platform.commands.setup_utr>
10-
- [all]: <shared.platform.commands.unity_downloader_cli>
11-
- [all]: <shared.platform.commands.call_utr>
12-
setup_without_utr:
13-
- [Win_DX11, Win_DX12, Win_Vulkan, Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.turn_off_firewall>
14-
- [Win_DX11, Win_DX12, Win_Vulkan]: cd Tools && powershell -command ". .\Unity.ps1; Set-ScreenResolution -width 1920 -Height 1080"
15-
- [all]: <shared.platform.commands.setup_utr>
16-
- [all]: <shared.platform.commands.unity_downloader_cli>
17-
cache_server:
4+
test_platforms:
5+
- type: Standalone
6+
utr_flags:
7+
- [OSX_Metal]: --timeout=2400
8+
utr_flags_build:
9+
#- [Android_OpenGles3, Android_Vulkan]: --timeout=2700
10+
#- [Win_DX11, Win_DX12, Win_Vulkan]: --timeout=2000
11+
#- [iPhone_Metal]: --timeout=1800
12+
- [all]: --timeout=3000
13+
- type: playmode
14+
- type: playmode
15+
name: playmode_cache
16+
utr_flags:
1817
- [all]: --extra-editor-arg="-adb2"
1918
- [all]: --extra-editor-arg="-enableCacheServer"
2019
- [all]: --extra-editor-arg="-cacheServerEndpoint" --extra-editor-arg="cacheserver-slo.hq.unity3d.com"
2120
- [all]: --extra-editor-arg="-cacheServerNamespacePrefix" --extra-editor-arg="SRP"
2221
- [all]: --extra-editor-arg="-cacheServerEnableDownload" --extra-editor-arg="true"
2322
- [all]: --extra-editor-arg="-cacheServerEnableUpload" --extra-editor-arg="true"
24-
25-
test_platforms:
26-
- type: Standalone
27-
commands:
28-
- [Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.connect_bokken>
29-
- [Win_DX11, Win_DX12, Win_Vulkan, Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.turn_off_firewall>
30-
- [Win_DX11, Win_DX12, Win_Vulkan]: cd Tools && powershell -command ". .\Unity.ps1; Set-ScreenResolution -width 1920 -Height 1080"
31-
- [all]: <shared.platform.commands.setup_utr>
32-
- [OSX_Metal]: <shared.platform.commands.unity_downloader_cli>
33-
- [all]: <shared.platform.commands.call_utr>
34-
flags:
35-
- [OSX_Metal]: --timeout=2400
36-
- [Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.kill_server>
37-
commands_build:
38-
- <reuse_blocks.setup_without_utr>
39-
- [all]: <shared.platform.commands.call_utr>
40-
flags:
41-
- [all]: --timeout=3000
42-
43-
- type: playmode
44-
commands:
45-
- <reuse_blocks.setup_with_utr>
46-
- type: playmode
47-
name: playmode_cache
48-
commands:
49-
- <reuse_blocks.setup_without_utr>
50-
- [all]: <shared.platform.commands.call_utr>
51-
flags:
52-
- <reuse_blocks.cache_server>
53-
5423
- type: editmode
55-
commands:
56-
- <reuse_blocks.setup_with_utr>
57-
5824
- type: playmode
5925
name: playmode_XR
60-
commands:
61-
- <reuse_blocks.setup_without_utr>
62-
- [all]: <shared.platform.commands.call_utr>
63-
flags:
64-
- [all]: --extra-editor-arg="-xr-reuse-tests"
65-
- type: playmode
66-
name: playmode_XR_cache
67-
commands:
68-
- <reuse_blocks.setup_without_utr>
69-
- [all]: <shared.platform.commands.call_utr>
70-
flags:
71-
- [all]: --extra-editor-arg="-xr-reuse-tests"
72-
- <reuse_blocks.cache_server>
73-
26+
utr_flags:
27+
- [all]: --extra-editor-arg="-xr-reuse-tests"
7428
- type: Standalone
7529
name: Standalone_cache
76-
commands:
77-
- [Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.connect_bokken>
78-
- [Win_DX11, Win_DX12, Win_Vulkan, Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.turn_off_firewall>
79-
- [Win_DX11, Win_DX12, Win_Vulkan]: cd Tools && powershell -command ". .\Unity.ps1; Set-ScreenResolution -width 1920 -Height 1080"
80-
- [all]: <shared.platform.commands.setup_utr>
81-
- [OSX_Metal]: <shared.platform.commands.unity_downloader_cli>
82-
- [all]: <shared.platform.commands.call_utr>
83-
flags:
84-
- <reuse_blocks.cache_server>
85-
- [Android_OpenGLES3, Android_Vulkan]: <shared.platform.commands.kill_server>
86-
commands_build:
87-
- <reuse_blocks.setup_without_utr>
88-
- [all]: <shared.platform.commands.call_utr>
89-
flags:
90-
- [all]: --timeout=3000
91-
- <reuse_blocks.cache_server>
30+
utr_flags:
31+
- [all]: --extra-editor-arg="-adb2"
32+
- [all]: --extra-editor-arg="-enableCacheServer"
33+
- [all]: --extra-editor-arg="-cacheServerEndpoint" --extra-editor-arg="cacheserver-slo.hq.unity3d.com"
34+
- [all]: --extra-editor-arg="-cacheServerNamespacePrefix" --extra-editor-arg="SRP"
35+
- [all]: --extra-editor-arg="-cacheServerEnableDownload" --extra-editor-arg="true"
36+
- [all]: --extra-editor-arg="-cacheServerEnableUpload" --extra-editor-arg="true"
37+
utr_flags_build:
38+
- [all]: --timeout=3000
39+
- [all]: --extra-editor-arg="-adb2"
40+
- [all]: --extra-editor-arg="-enableCacheServer"
41+
- [all]: --extra-editor-arg="-cacheServerEndpoint" --extra-editor-arg="cacheserver-slo.hq.unity3d.com"
42+
- [all]: --extra-editor-arg="-cacheServerNamespacePrefix" --extra-editor-arg="SRP"
43+
- [all]: --extra-editor-arg="-cacheServerEnableDownload" --extra-editor-arg="true"
44+
- [all]: --extra-editor-arg="-cacheServerEnableUpload" --extra-editor-arg="true"
9245
expression_trigger:
93-
expression: 'pull_request.target eq "<TARGET_BRANCH>" AND NOT pull_request.draft AND pull_request.changes.any match ["com.unity.render-pipelines.universal/**/*", "TestProjects/UniversalGraphicsTest/**/*"] AND NOT pull_request.push.changes.all match ["*.md", "**/*.md", "doc/**/*", "**/Documentation*/**/*"]'
46+
expression: 'pull_request.target eq "master" AND NOT pull_request.draft AND pull_request.changes.any match ["com.unity.render-pipelines.universal/**/*", "TestProjects/UniversalGraphicsTest/**/*"]'
9447
platforms:
9548
- name: Win
9649
apis:
@@ -101,28 +54,6 @@ platforms:
10154
- name: mono
10255
color_spaces:
10356
- Linear
104-
agents_project:
105-
default:
106-
type: Unity::VM::GPU
107-
image: sdet/gamecode_win10:stable
108-
flavor: b1.xlarge
109-
model: rtx2080
110-
editmode:
111-
type: Unity::VM
112-
image: sdet/gamecode_win10:stable
113-
flavor: b1.large
114-
standalone:
115-
type: Unity::VM::GPU
116-
image: sdet/gamecode_win10:stable
117-
flavor: b1.large
118-
standalone_cache:
119-
type: Unity::VM::GPU
120-
image: sdet/gamecode_win10:stable
121-
flavor: b1.large
122-
standalone_build:
123-
type: Unity::VM
124-
image: sdet/gamecode_win10:stable
125-
flavor: b1.xlarge
12657
- name: OSX
12758
apis:
12859
- name: Metal
@@ -131,7 +62,6 @@ platforms:
13162
- name: OpenGLCore
13263
exclude_test_platforms:
13364
- name: playmode_XR
134-
- name: playmode_XR_cache
13565
- name: Standalone
13666
- name: Standalone_cache
13767
build_configs:
@@ -145,11 +75,9 @@ platforms:
14575
- name: Standalone
14676
- name: Standalone_cache
14777
- name: playmode_XR
148-
- name: playmode_XR_cache
14978
- name: Vulkan
15079
exclude_test_platforms:
15180
- name: playmode_XR
152-
- name: playmode_XR_cache
15381
build_configs:
15482
- name: mono
15583
color_spaces:
@@ -161,14 +89,12 @@ platforms:
16189
- name: playmode
16290
- name: editmode
16391
- name: playmode_XR
164-
- name: playmode_XR_cache
16592
- name: playmode_cache
16693
- name: Vulkan
16794
exclude_test_platforms:
16895
- name: playmode
16996
- name: editmode
17097
- name: playmode_XR
171-
- name: playmode_XR_cache
17298
- name: playmode_cache
17399
build_configs:
174100
- name: il2cpp
@@ -181,7 +107,6 @@ platforms:
181107
- name: playmode
182108
- name: editmode
183109
- name: playmode_XR
184-
- name: playmode_XR_cache
185110
- name: playmode_cache
186111
build_configs:
187112
- name: il2cpp
@@ -195,7 +120,7 @@ pr:
195120
color_space: Linear
196121
test_platforms:
197122
- Standalone_cache
198-
- playmode_XR_cache
123+
- playmode_XR
199124
- editmode
200125
- platform: Win
201126
api: DX12
@@ -298,17 +223,17 @@ nightly:
298223
color_space: Linear
299224
test_platforms:
300225
- playmode_cache
301-
# - playmode_XR_cache
226+
# - playmode_XR
302227
- platform: Win
303228
api: Vulkan
304229
build_config: mono
305230
color_space: Linear
306231
test_platforms:
307232
- playmode_cache
308-
# - playmode_XR_cache
233+
# - playmode_XR
309234
- platform: Linux
310235
api: Vulkan
311236
build_config: mono
312237
color_space: Linear
313238
test_platforms:
314-
- playmode_cache
239+
- playmode_cache

0 commit comments

Comments
 (0)