Skip to content
Merged
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
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ build.bat
build.bat.meta

WebRTC~/**
Tools/**

# waste of the plugin artifacts
linux_plugin-*
Expand Down
2 changes: 1 addition & 1 deletion .yamato/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ check_formatting_dotnet-format:
flavor: b1.large
commands:
- dotnet tool install --tool-path tools dotnet-format || echo dotnet format already installed
- tools/dotnet-format --check --exclude WebRTC~ -f . 1>formatting.log 2>formatting_errors.log
- tools/dotnet-format --check --exclude ./WebRTC~/ ./Tools/ -f . 1>formatting.log 2>formatting_errors.log
artifacts:
logs:
paths:
Expand Down
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,12 @@
@echo on
rem This is an auto-generated script. Do not edit manually!

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...
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_-_webrtc_-_6000_3_-_windows

# upm-ci validation tests for API Validation - webrtc - 6000.3 - windows (6000.3 - Windows).
api_validation_-_webrtc_-_6000_3_-_windows:
name: API Validation - webrtc - 6000.3 - windows
agent:
image: package-ci/win10:default
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 6000.3/staging -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 . --type vetting-tests || exit 0
timeout: 30
retries: 0
- command: python PythonScripts/parse_upm_ci_results.py --package-path=.
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_-_webrtc
variables:
UPMPVP_CONTEXT_WRENCH: 1.1.0.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 1.1.0.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 WebRTC
package_pack_-_webrtc:
name: Package Pack - webrtc
agent:
image: package-ci/ubuntu-20.04:default
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 .
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.webrtc_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: 1.1.0.0

Loading