Skip to content

Commit e4e261c

Browse files
committed
Added Template CI post onboard setup
1 parent 65411b2 commit e4e261c

18 files changed

Lines changed: 3062 additions & 0 deletions
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
# This is an auto-generated script. Do not edit manually!
3+
set -x
4+
5+
set -e
6+
if [ -f "infrastructure_instability_detection_standalone.zip" ]; then
7+
echo "removed existing archive infrastructure_instability_detection_standalone.zip"
8+
rm "infrastructure_instability_detection_standalone.zip" || true
9+
fi
10+
11+
if [ -d "infrastructure_instability_detection_standalone" ]; then
12+
echo "removed existing directory infrastructure_instability_detection_standalone/"
13+
rm -rf "infrastructure_instability_detection_standalone" || true
14+
fi
15+
16+
echo "downloading and extracting infrastructure_instability_detection_standalone@1.0.0"
17+
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/1.0.0/ubuntu.zip" --output "infrastructure_instability_detection_standalone.zip" --retry 5 || true
18+
19+
if [ -d "infrastructure_instability_detection" ]; then
20+
echo "removing infrastructure_instability_detection folder to avoid name clash"
21+
rm -rf infrastructure_instability_detection/ || true
22+
fi
23+
24+
unzip -qo "infrastructure_instability_detection_standalone.zip" && rm "infrastructure_instability_detection_standalone.zip" || true
25+
26+
echo "downloading and extracting patterns"
27+
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/patterns.zip" --output patterns.zip --retry 5 || true
28+
29+
if [ -d "patterns" ]; then
30+
echo "removing patterns folder to avoid name clash"
31+
rm -rf patterns/ || true
32+
fi
33+
34+
unzip -q patterns.zip && rm patterns.zip || true
35+
36+
echo "running '$(pwd)/infrastructure_instability_detection'"
37+
./infrastructure_instability_detection || true
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
# This is an auto-generated script. Do not edit manually!
3+
set -x
4+
5+
set -e
6+
if [ -f "infrastructure_instability_detection_standalone.zip" ]; then
7+
echo "removed existing archive infrastructure_instability_detection_standalone.zip"
8+
rm "infrastructure_instability_detection_standalone.zip" || true
9+
fi
10+
11+
if [ -d "infrastructure_instability_detection_standalone" ]; then
12+
echo "removed existing directory infrastructure_instability_detection_standalone/"
13+
rm -rf "infrastructure_instability_detection_standalone" || true
14+
fi
15+
16+
echo "downloading and extracting infrastructure_instability_detection_standalone@1.0.0"
17+
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/standalone/1.0.0/macos.zip" --output "infrastructure_instability_detection_standalone.zip" --retry 5 || true
18+
19+
if [ -d "infrastructure_instability_detection" ]; then
20+
echo "removing infrastructure_instability_detection folder to avoid name clash"
21+
rm -rf infrastructure_instability_detection/ || true
22+
fi
23+
24+
unzip -qo "infrastructure_instability_detection_standalone.zip" && rm "infrastructure_instability_detection_standalone.zip" || true
25+
26+
echo "downloading and extracting patterns"
27+
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/patterns.zip" --output patterns.zip --retry 5 || true
28+
29+
if [ -d "patterns" ]; then
30+
echo "removing patterns folder to avoid name clash"
31+
rm -rf patterns/ || true
32+
fi
33+
34+
unzip -q patterns.zip && rm patterns.zip || true
35+
36+
echo "running '$(pwd)/infrastructure_instability_detection'"
37+
./infrastructure_instability_detection || true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
all_api_validation_jobs:
4+
name: All API Validation Jobs
5+
dependencies:
6+
- path: .yamato/wrench/api-validation-jobs.yml#api_validation_-_postprocessing_-_2019_4_-_windows
7+
8+
# upm-ci validation tests for API Validation - postprocessing - 2019.4 - windows (2019.4 - Windows).
9+
api_validation_-_postprocessing_-_2019_4_-_windows:
10+
name: API Validation - postprocessing - 2019.4 - windows
11+
agent:
12+
image: package-ci/win10:default
13+
type: Unity::VM
14+
flavor: b1.large
15+
commands:
16+
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-3-0_3978eda62a03e3dbc469ab77590d20f8832032d8e0b586550597b7f590baefec.zip -o wrench-localapv.zip
17+
- command: 7z x -aoa wrench-localapv.zip
18+
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
19+
- command: python PythonScripts/print_machine_info.py
20+
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
21+
timeout: 20
22+
retries: 10
23+
- command: unity-downloader-cli -u 2019.4 -c editor --path .Editor --fast
24+
timeout: 10
25+
retries: 3
26+
- command: python PythonScripts/PackageJsonCondersor.py
27+
timeout: 1
28+
retries: 0
29+
- command: upm-ci package test -u .Editor --package-path com.unity.postprocessing --type vetting-tests || exit 0
30+
timeout: 30
31+
retries: 0
32+
- command: python PythonScripts/parse_upm_ci_results.py --package-path=com.unity.postprocessing
33+
timeout: 2
34+
retries: 0
35+
after:
36+
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
37+
artifacts:
38+
Crash Dumps:
39+
paths:
40+
- CrashDumps/**
41+
logs:
42+
paths:
43+
- '*.log'
44+
- '*.xml'
45+
- upm-ci~/test-results/**/*
46+
- upm-ci~/temp/*/Logs/**
47+
- upm-ci~/temp/*/Library/*.log
48+
- upm-ci~/temp/*/*.log
49+
- upm-ci~/temp/Builds/*.log
50+
browsable: onNonSuccess
51+
dependencies:
52+
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_postprocessing
53+
variables:
54+
UNITY_LICENSING_SERVER_BASE_URL: http://unity-ci-licenses.hq.unity3d.com:8080/
55+
UNITY_LICENSING_SERVER_DELETE_NUL: 0
56+
UNITY_LICENSING_SERVER_DELETE_ULF: 0
57+
UNITY_LICENSING_SERVER_TOOLSET: pro
58+
UPMPVP_CONTEXT_WRENCH: 1.4.3.0
59+
metadata:
60+
Job Maintainers: '#rm-packageworks'
61+
Wrench: 1.4.3.0
62+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 Post Processing
5+
package_pack_-_postprocessing:
6+
name: Package Pack - postprocessing
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: upm-ci package pack --package-path com.unity.postprocessing
16+
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.postprocessing_packages.json
17+
after:
18+
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
19+
artifacts:
20+
packages:
21+
paths:
22+
- upm-ci~/packages/**/*
23+
variables:
24+
UPMCI_ACK_LARGE_PACKAGE: 1
25+
metadata:
26+
Job Maintainers: '#rm-packageworks'
27+
Wrench: 1.4.3.0
28+

0 commit comments

Comments
 (0)