Skip to content

Commit dfd028a

Browse files
committed
Updating Wrench auto-generated jobs
1 parent cdb0fde commit dfd028a

File tree

3 files changed

+53
-15
lines changed

3 files changed

+53
-15
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
@echo on
2-
rem This is an auto-generated script. Do not edit manually!
3-
4-
if exist "%TEMP%\BugReporterCrashReportJson" for /f "delims=" %%i in ('dir /b /a-d "%TEMP%\BugReporterCrashReportJson\*.json"') do curl -X POST -H "Content-Type: application/json" -T "%TEMP%\BugReporterCrashReportJson\%%i" "https://internal-crash-collector.prd.cds.internal.unity3d.com/api/crash" || echo Failed to upload %%i. Ignoring...
5-
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/1.0.0/windows.zip" --output "infrastructure_instability_detection_standalone.zip" --retry 5
6-
IF EXIST "infrastructure_instability_detection" rmdir /s /q infrastructure_instability_detection
7-
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('infrastructure_instability_detection_standalone.zip', '.'); }" && DEL "infrastructure_instability_detection_standalone.zip"
8-
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/patterns.zip" --output patterns.zip --retry 5
9-
IF EXIST "patterns" rmdir /s /q patterns
10-
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('patterns.zip', '.'); }" && DEL "patterns.zip"
11-
infrastructure_instability_detection
12-
exit /b 0
1+
@echo on
2+
rem This is an auto-generated script. Do not edit manually!
3+
4+
if exist "%TEMP%\BugReporterCrashReportJson" for /f "delims=" %%i in ('dir /b /a-d "%TEMP%\BugReporterCrashReportJson\*.json"') do curl -X POST -H "Content-Type: application/json" -T "%TEMP%\BugReporterCrashReportJson\%%i" "https://internal-crash-collector.prd.cds.internal.unity3d.com/api/crash" || echo Failed to upload %%i. Ignoring...
5+
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/1.0.0/windows.zip" --output "infrastructure_instability_detection_standalone.zip" --retry 5
6+
IF EXIST "infrastructure_instability_detection" rmdir /s /q infrastructure_instability_detection
7+
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('infrastructure_instability_detection_standalone.zip', '.'); }" && DEL "infrastructure_instability_detection_standalone.zip"
8+
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/patterns.zip" --output patterns.zip --retry 5
9+
IF EXIST "patterns" rmdir /s /q patterns
10+
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('patterns.zip', '.'); }" && DEL "patterns.zip"
11+
infrastructure_instability_detection
12+
exit /b 0

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,21 @@ package_pack_-_ml-agents:
1212
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
1313
timeout: 20
1414
retries: 10
15+
- command: upm-ci package pack --package-path com.unity.ml-agents.tests
16+
- command: mv upm-ci~/packages/packages.json upm-ci~/packages/com.unity.ml-agents.tests_packages.json
17+
- command: mkdir -p upm-ci~/temp/packages
18+
- command: mv upm-ci~/packages/* upm-ci~/temp/packages
19+
- command: upm-ci package pack --package-path com.unity.ml-agents
20+
- command: mv upm-ci~/packages/packages.json upm-ci~/packages/com.unity.ml-agents_packages.json
21+
- command: mkdir -p upm-ci~/temp/packages
22+
- command: mv upm-ci~/packages/* upm-ci~/temp/packages
1523
- command: upm-ci package pack --package-path com.unity.ml-agents
1624
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.ml-agents_packages.json
25+
- command: mv upm-ci~/temp/packages/* upm-ci~/packages
26+
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
27+
- command: 7z x -aoa wrench-localapv.zip
28+
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
29+
- command: python PythonScripts/PackageJsonCondersor.py
1730
after:
1831
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
1932
artifacts:
@@ -28,3 +41,28 @@ package_pack_-_ml-agents:
2841
Job Maintainers: '#rm-packageworks'
2942
Wrench: 1.4.3.0
3043

44+
# Pack ML Agents Tests
45+
package_pack_-_ml-agents_tests:
46+
name: Package Pack - ml-agents.tests
47+
agent:
48+
image: package-ci/ubuntu-20.04:default
49+
type: Unity::VM
50+
flavor: b1.large
51+
commands:
52+
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
53+
timeout: 20
54+
retries: 10
55+
- command: upm-ci package pack --package-path com.unity.ml-agents.tests
56+
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.ml-agents.tests_packages.json
57+
after:
58+
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
59+
artifacts:
60+
packages:
61+
paths:
62+
- upm-ci~/packages/**/*
63+
variables:
64+
UPMCI_ACK_LARGE_PACKAGE: 1
65+
metadata:
66+
Job Maintainers: '#rm-packageworks'
67+
Wrench: 1.4.3.0
68+

.yamato/wrench/wrench_config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"Ubuntu": [],
2828
"Windows": []
2929
},
30-
"InternalOnly": true,
31-
"NeverPublish": true,
30+
"InternalOnly": false,
31+
"NeverPublish": false,
3232
"MaxEditorVersion": "",
3333
"coverageEnabled": false,
3434
"coverageCommands": [
@@ -53,4 +53,4 @@
5353
"wrench_version": "1.4.3.0",
5454
"pvp_exemption_path": ".yamato/wrench/pvp-exemptions.json",
5555
"cs_project_path": "Tools/ci/MLAgents.Cookbook.csproj"
56-
}
56+
}

0 commit comments

Comments
 (0)