Skip to content

Commit 1eeecc6

Browse files
chore: [Backport] Introduction of u-pr-agent and fix of Updated Dependencies Test (#3763)
* Added u-pr config * re-added project pack job for updated dependencies test purpose * typo * bom removed * typo in project-tests * typo * typo * dependency correction
1 parent d2705ea commit 1eeecc6

File tree

5 files changed

+28
-4
lines changed

5 files changed

+28
-4
lines changed

.pr_agent.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[github_app]
2+
pr_commands = []

.yamato/desktop-standalone-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ desktop_standalone_build_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
5454
- "artifacts/**/*"
5555
dependencies:
5656
- .yamato/_run-all.yml#run_quick_checks # initial checks to perform fast validation of common errors
57-
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}
57+
- .yamato/package-pack.yml#package_pack_-_ngo_ubuntu
5858
{% endfor -%}
5959
{% endfor -%}
6060
{% endfor -%}

.yamato/project-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
4646
- "upm-ci~/test-results/**/*"
4747
dependencies:
4848
- .yamato/_run-all.yml#run_quick_checks # initial checks to perform fast validation of common errors
49-
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}{% endfor -%}
49+
- .yamato/package-pack.yml#package_pack_-_ngo_ubuntu
50+
{% endfor -%}
5051
{% endfor -%}
5152
{% endif -%}
5253
{% endfor -%}

.yamato/project-updated-dependencies-test.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,28 @@ updated-dependencies_{{ project.name }}_NGO_{{ platform.name }}_{{ editor }}:
4242
paths:
4343
- "upm-ci~/test-results/**/*"
4444
dependencies:
45-
- .yamato/package-pack.yml#package_pack_-_ngo_{{ platform.name }}
45+
- .yamato/project-updated-dependencies-test.yml#project_pack_-_{{ project.name }}_{{ platform.name }}
4646
{% endfor -%}
4747
{% endfor -%}
4848
{% endfor -%}
49+
50+
51+
# TODO: This job was removed on PR-3711 but the above job somehow can find proper artifacts with package pack job.
52+
# This job should be removed when issue will be resolved since it's not used anywhere
53+
{% for project in projects.all -%}
54+
{% for platform in test_platforms.desktop -%}
55+
project_pack_-_{{ project.name }}_{{ platform.name }}:
56+
name: Project Pack - {{ project.name }} [{{ platform.name }}]
57+
agent:
58+
type: {{ platform.type }}
59+
image: {{ platform.image }}
60+
flavor: {{ platform.flavor }}
61+
commands:
62+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm # upm-ci is not preinstalled on the image so we need to download it
63+
- upm-ci project pack --project-path {{ project.path }}
64+
artifacts:
65+
packages:
66+
paths:
67+
- "upm-ci~/packages/**/*"
68+
{% endfor -%}
69+
{% endfor -%}

.yamato/project.metafile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test_platforms:
5959
- name: mac
6060
type: Unity::VM::osx
6161
image: package-ci/macos-13-arm64:v4 # ARM64 to support M1 model (below)
62-
smaller_flavor: m1.mac # mac doesn't have a smaller vm size. We define it anyway as it simplifies the yaml templating to have it defined.
62+
flavor: m1.mac # mac doesn't have a smaller vm size. We define it anyway as it simplifies the yaml templating to have it defined.
6363
smaller_flavor: b1.medium
6464
standalone: StandaloneOSX
6565
model: M1 # The default model (an x64 Intel Mac VM) quite often caused a known issue of doing all the bitflips in packages resulting in failures

0 commit comments

Comments
 (0)