Skip to content

[CI] Wrench Graphics Cookbook #8169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[Aa]rtifacts/
[Bb]uild/
[Ll]ibrary/
Expand Down Expand Up @@ -50,3 +49,5 @@ TestProjects/UniversalGraphicsTest_Lighting/UserSettings/EditorUserSettings.asse
TestProjects/UniversalGraphicsTest_Lighting/Packages/packages-lock.json
com.unity.template-hd/InitCodeMarker
gfx-sdet-tools

*bin/
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
# This is an auto-generated script. Do not edit manually!
set -x

set -e
if [ -f "infrastructure_instability_detection_standalone.zip" ]; then
echo "removed existing archive infrastructure_instability_detection_standalone.zip"
rm "infrastructure_instability_detection_standalone.zip" || true
fi

if [ -d "infrastructure_instability_detection_standalone" ]; then
echo "removed existing directory infrastructure_instability_detection_standalone/"
rm -rf "infrastructure_instability_detection_standalone" || true
fi

echo "downloading and extracting [email protected]"
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

if [ -d "infrastructure_instability_detection" ]; then
echo "removing infrastructure_instability_detection folder to avoid name clash"
rm -rf infrastructure_instability_detection/ || true
fi

unzip -qo "infrastructure_instability_detection_standalone.zip" && rm "infrastructure_instability_detection_standalone.zip" || true

echo "downloading and extracting patterns"
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/patterns.zip" --output patterns.zip --retry 5 || true

if [ -d "patterns" ]; then
echo "removing patterns folder to avoid name clash"
rm -rf patterns/ || true
fi

unzip -q patterns.zip && rm patterns.zip || true

echo "running '$(pwd)/infrastructure_instability_detection'"
./infrastructure_instability_detection || true
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
# This is an auto-generated script. Do not edit manually!
set -x

set -e
if [ -f "infrastructure_instability_detection_standalone.zip" ]; then
echo "removed existing archive infrastructure_instability_detection_standalone.zip"
rm "infrastructure_instability_detection_standalone.zip" || true
fi

if [ -d "infrastructure_instability_detection_standalone" ]; then
echo "removed existing directory infrastructure_instability_detection_standalone/"
rm -rf "infrastructure_instability_detection_standalone" || true
fi

echo "downloading and extracting [email protected]"
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

if [ -d "infrastructure_instability_detection" ]; then
echo "removing infrastructure_instability_detection folder to avoid name clash"
rm -rf infrastructure_instability_detection/ || true
fi

unzip -qo "infrastructure_instability_detection_standalone.zip" && rm "infrastructure_instability_detection_standalone.zip" || true

echo "downloading and extracting patterns"
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/patterns.zip" --output patterns.zip --retry 5 || true

if [ -d "patterns" ]; then
echo "removing patterns folder to avoid name clash"
rm -rf patterns/ || true
fi

unzip -q patterns.zip && rm patterns.zip || true

echo "running '$(pwd)/infrastructure_instability_detection'"
./infrastructure_instability_detection || true
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo on
rem This is an auto-generated script. Do not edit manually!

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
IF EXIST "infrastructure_instability_detection" rmdir /s /q infrastructure_instability_detection
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"
curl -fs "https://artifactory-slo.bf.unity3d.com/artifactory/automation-and-tooling/infrastructure-instability-detection/patterns.zip" --output patterns.zip --retry 5
IF EXIST "patterns" rmdir /s /q patterns
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('patterns.zip', '.'); }" && DEL "patterns.zip"
infrastructure_instability_detection
exit /b 0
58 changes: 58 additions & 0 deletions .yamato/wrench/api-validation-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Auto-generated by Recipe Engine, do not modify manually.
# This job is generated by the wrench recipe engine module, see find the docs here: http://Go/ii2fb
all_api_validation_jobs:
name: All API Validation Jobs
dependencies:
- path: .yamato/wrench/api-validation-jobs.yml#api_validation_-_postprocessing_-_2019_4_-_windows

# upm-ci validation tests for API Validation - postprocessing - 2019.4 - windows (2019.4 - Windows).
api_validation_-_postprocessing_-_2019_4_-_windows:
name: API Validation - postprocessing - 2019.4 - windows
agent:
image: package-ci/win10:v4
type: Unity::VM
flavor: b1.large
commands:
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-2-68_53c92d3b34ce3f4b652c9785dd1530bdc5885f6523465d6969c3be91f9ccaaf1.zip -o wrench-localapv.zip
- command: 7z x -aoa wrench-localapv.zip
- command: pip install semver requests --index-url https://artifactory-slo.bf.unity3d.com/artifactory/api/pypi/pypi/simple
- command: python PythonScripts/print_machine_info.py
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- command: unity-downloader-cli -u 2019.4 -c editor --path .Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/PackageJsonCondersor.py
timeout: 1
retries: 0
- command: upm-ci package test -u .Editor --package-path com.unity.postprocessing --type vetting-tests || exit 0
timeout: 30
retries: 0
- command: python PythonScripts/parse_upm_ci_results.py --package-path=com.unity.postprocessing
timeout: 2
retries: 0
after:
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
artifacts:
Crash Dumps:
paths:
- CrashDumps/**
logs:
paths:
- '*.log'
- '*.xml'
- upm-ci~/test-results/**/*
- upm-ci~/temp/*/Logs/**
- upm-ci~/temp/*/Library/*.log
- upm-ci~/temp/*/*.log
- upm-ci~/temp/Builds/*.log
browsable: onNonSuccess
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_postprocessing
variables:
UPMPVP_CONTEXT_WRENCH: 0.12.1.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.12.1.0

28 changes: 28 additions & 0 deletions .yamato/wrench/package-pack-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Auto-generated by Recipe Engine, do not modify manually.
# This job is generated by the wrench recipe engine module, see find the docs here: http://Go/ii2fb

# Pack Post Processing
package_pack_-_postprocessing:
name: Package Pack - postprocessing
agent:
image: package-ci/ubuntu-18.04:v4
type: Unity::VM
flavor: b1.large
commands:
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- command: upm-ci package pack --package-path com.unity.postprocessing
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.postprocessing_packages.json
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
artifacts:
packages:
paths:
- upm-ci~/packages/**/*
variables:
UPMCI_ACK_LARGE_PACKAGE: 1
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.12.1.0

Loading