Skip to content

Commit aa61e6c

Browse files
authored
Merge pull request #336 from Unity-Technologies/wrench
Integrate Wrench
2 parents 7d97d71 + 4d1dbdf commit aa61e6c

16 files changed

+2474
-22
lines changed

.yamato/upm-ci.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,6 @@ utr:
1919
url_unix: https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr
2020

2121
---
22-
pack:
23-
name: Pack
24-
agent:
25-
type: Unity::VM
26-
image: package-ci/ubuntu-22.04:v4
27-
flavor: b1.small
28-
29-
commands:
30-
- ./add_sample.sh
31-
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
32-
- upm-ci package pack --package-path com.unity.mobile.notifications
33-
- upm-pvp xray --packages "upm-ci~/packages/*.tgz" --results upm-ci~/xray
34-
- upm-pvp require "supported rme .yamato/xray-exemptions.json" --allow-missing --results upm-ci~/xray
35-
artifacts:
36-
packages:
37-
paths:
38-
- "upm-ci~/**/*"
3922

4023
{% for editor in test_editors %}
4124
{% for platform in test_platforms %}
@@ -56,7 +39,7 @@ test_{{ platform.name }}_{{ editor.version }}:
5639
paths:
5740
- "upm-ci~/packages/**/*"
5841
dependencies:
59-
- .yamato/upm-ci.yml#pack
42+
- .yamato/wrench/package-pack-jobs.yml#package_pack_-_mobile_notifications
6043
{% endfor %}
6144
{% endfor %}
6245

@@ -84,7 +67,7 @@ test_Android_{{ editor.version }}:
8467
paths:
8568
- "upm-ci~/**/*"
8669
dependencies:
87-
- .yamato/upm-ci.yml#pack
70+
- .yamato/wrench/package-pack-jobs.yml#package_pack_-_mobile_notifications
8871
{% endfor %}
8972

9073
{% for editor in test_editors %}
@@ -108,7 +91,7 @@ test_iOS_{{ editor.version }}:
10891
paths:
10992
- "upm-ci~/**/*"
11093
dependencies:
111-
- .yamato/upm-ci.yml#pack
94+
- .yamato/wrench/package-pack-jobs.yml#package_pack_-_mobile_notifications
11295
{% endfor %}
11396

11497
test_trigger:
@@ -131,7 +114,7 @@ test_trigger:
131114
paths:
132115
- "upm-ci~/packages/**/*"
133116
dependencies:
134-
- .yamato/upm-ci.yml#pack
117+
- .yamato/wrench/package-pack-jobs.yml#package_pack_-_mobile_notifications
135118
{% for editor in test_editors %}
136119
{% for platform in test_platforms %}
137120
- .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
@@ -162,7 +145,7 @@ publish:
162145
paths:
163146
- "upm-ci~/packages/*.tgz"
164147
dependencies:
165-
- .yamato/upm-ci.yml#pack
148+
- .yamato/wrench/package-pack-jobs.yml#package_pack_-_mobile_notifications
166149
{% for editor in test_editors %}
167150
{% for platform in test_platforms %}
168151
- .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Auto-generated by Recipe Engine, do not modify manually.
2+
# This job is generated by the wrench recipe engine module, see find the docs here: http://Go/ii2fb
3+
4+
# upm-ci validation tests for API Validation - mobile.notifications - 2021.3 - windows (2021.3 - Windows).
5+
api_validation_-_mobile_notifications_-_2021_3_-_windows:
6+
name: API Validation - mobile.notifications - 2021.3 - windows
7+
agent:
8+
image: package-ci/win10:default
9+
type: Unity::VM
10+
flavor: b1.large
11+
commands:
12+
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-2-54_4ed3929f39f0279ecefec81a437d0eb42e21a4f9c6469a88d31e8f3d764709fe.zip -o wrench-localapv.zip
13+
- command: 7z x -aoa wrench-localapv.zip
14+
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
15+
- command: python PythonScripts/print_machine_info.py
16+
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
17+
timeout: 20
18+
retries: 10
19+
- command: unity-downloader-cli -u 2021.3 -c Editor --fast
20+
timeout: 10
21+
retries: 3
22+
- command: python PythonScripts/PackageJsonCondersor.py
23+
timeout: 1
24+
retries: 0
25+
- command: upm-ci package test -u .Editor --package-path com.unity.mobile.notifications --type vetting-tests || exit 0
26+
timeout: 30
27+
retries: 0
28+
- command: python PythonScripts/parse_upm_ci_results.py --package-path=com.unity.mobile.notifications
29+
timeout: 2
30+
retries: 0
31+
after:
32+
- command: cmd.exe /c "curl -s https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.bat --output run_standalone_instability_detection-latest.bat --retry 5 || exit 0"
33+
- command: cmd.exe /c "run_standalone_instability_detection-latest.bat 0.5.0 || exit 0"
34+
timeout: 10
35+
retries: 1
36+
artifacts:
37+
Crash Dumps:
38+
paths:
39+
- CrashDumps/**
40+
logs:
41+
paths:
42+
- '*.log'
43+
- '*.xml'
44+
- upm-ci~/test-results/**/*
45+
- upm-ci~/temp/*/Logs/**
46+
- upm-ci~/temp/*/Library/*.log
47+
- upm-ci~/temp/*/*.log
48+
- upm-ci~/temp/Builds/*.log
49+
browsable: onNonSuccess
50+
dependencies:
51+
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_mobile_notifications
52+
variables:
53+
UPMPVP_CONTEXT_WRENCH: 0.10.32.0
54+
triggers:
55+
expression: push.branch match "^release/.*"
56+
cancel_old_ci: true
57+
metadata:
58+
Job Maintainers: '#rm-packageworks'
59+
Wrench: 0.10.32.0
60+

.yamato/wrench/package-pack-jobs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Auto-generated by Recipe Engine, do not modify manually.
2+
# This job is generated by the wrench recipe engine module, see find the docs here: http://Go/ii2fb
3+
4+
# Pack and Sign Mobile Notifications
5+
package_pack_-_mobile_notifications:
6+
name: Package Pack - mobile.notifications
7+
agent:
8+
image: package-ci/ubuntu-20.04:default
9+
type: Unity::VM
10+
flavor: b1.large
11+
commands:
12+
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
13+
timeout: 20
14+
retries: 10
15+
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-2-54_4ed3929f39f0279ecefec81a437d0eb42e21a4f9c6469a88d31e8f3d764709fe.zip -o wrench-localapv.zip
16+
- command: 7z x -aoa wrench-localapv.zip
17+
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
18+
- command: python PythonScripts/print_machine_info.py
19+
- command: upm-ci package pack --package-path com.unity.mobile.notifications
20+
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.mobile.notifications_packages.json
21+
after:
22+
- command: curl -s https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/setup/run_standalone_instability_detection-latest.sh --output run_standalone_instability_detection-latest.sh --retry 5 || exit 0
23+
- command: bash ./run_standalone_instability_detection-latest.sh ubuntu 0.5.0 || exit 0
24+
timeout: 10
25+
retries: 1
26+
artifacts:
27+
packages:
28+
paths:
29+
- upm-ci~/packages/**/*
30+
variables:
31+
UPMCI_ACK_LARGE_PACKAGE: 1
32+
UPMPVP_CONTEXT_WRENCH: 0.10.32.0
33+
metadata:
34+
Job Maintainers: '#rm-packageworks'
35+
Wrench: 0.10.32.0
36+

0 commit comments

Comments
 (0)