Skip to content

21.3 - Re-doing packageWorks onboarding #399

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

Open
wants to merge 4 commits into
base: release/21.3/publish
Choose a base branch
from
Open
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
66 changes: 66 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
Assets/AssetStoreTools*
**/.idea/

# Visual Studio cache directory
.vs/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.csproj.meta
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.opendb
*.dwlt

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta

# Unity3D Generated File On Crash Reports
sysinfo.txt

# Builds
*.apk
*.unitypackage
Projects/PublishAll/Logs
Projects/AllPackages/Logs
**/Logs

EntityCache
EntityCache.meta
Projects/Hybrid/UserSettings
StreamingAssets.meta
SceneDependencyCache.meta
SceneDependencyCache/

**/Packages/packages-lock.json
**/ProjectSettings/VersionControlSettings.asset
**/ProjectSettings/PackageManagerSettings.asset
**/UserSettings/QuickSearch.settings
**/UserSettings/QuickSearch.index

!Documentation~
!Samples~/
!Packages/com.unity.2d.psdimporter.tests/EditorTests/TypeAssets~/
.DS_Store
.multitool

#Packageworks
!Wrench/*.sln
!Wrench/*.csproj
Wrench/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
23 changes: 11 additions & 12 deletions .yamato/wrench/api-validation-jobs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Auto-generated by Recipe Engine, do not modify manually.
# This job is generated by the wrench recipe engine module, see find the docs here: .
# 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_-_2d_tilemap_extras_-_2021_1_-_windows

# upm-ci validation tests for API Validation - 2d.tilemap.extras - 2021.1 - windows (2021.1 - Windows).
api_validation_-_2d_tilemap_extras_-_2021_1_-_windows:
Expand All @@ -9,8 +13,9 @@ api_validation_-_2d_tilemap_extras_-_2021_1_-_windows:
type: Unity::VM
flavor: b1.large
commands:
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-2-33_105495e06e2db0212292b17be163941e922098743472bf73bdc0678491b98575.zip -o wrench-localapv.zip
- command: 7z x wrench-localapv.zip
- command: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-2-58_ab06748e39f9b01f55b979c0c06d7c1f787e07cbca4dc6ae5eef274fd195612a.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
Expand All @@ -28,10 +33,7 @@ api_validation_-_2d_tilemap_extras_-_2021_1_-_windows:
timeout: 2
retries: 0
after:
- 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"
- command: cmd.exe /c "run_standalone_instability_detection-latest.bat 0.5.0 || exit 0"
timeout: 10
retries: 1
- command: .yamato\generated-scripts\infrastructure-instability-detection-win.cmd
artifacts:
Crash Dumps:
paths:
Expand All @@ -49,11 +51,8 @@ api_validation_-_2d_tilemap_extras_-_2021_1_-_windows:
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_2d_tilemap_extras
variables:
UPMPVP_CONTEXT_WRENCH: 0.10.14.0
triggers:
expression: push.branch match "^release/.*"
cancel_old_ci: true
UPMPVP_CONTEXT_WRENCH: 0.10.42.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.14.0
Wrench: 0.10.42.0

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

# Pack and Sign 2D Tilemap Extras
# Pack 2D Tilemap Extras
package_pack_-_2d_tilemap_extras:
name: Package Pack - 2d.tilemap.extras
agent:
Expand All @@ -12,9 +12,6 @@ package_pack_-_2d_tilemap_extras:
- 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: curl https://artifactory.prd.it.unity3d.com/artifactory/stevedore-unity-internal/wrench-localapv/1-2-33_105495e06e2db0212292b17be163941e922098743472bf73bdc0678491b98575.zip -o wrench-localapv.zip
- command: 7z x wrench-localapv.zip
- command: python PythonScripts/print_machine_info.py
- command: git clone $UNITY_2D_REPO_GIT --no-checkout ../.unity/2d
- command: cd ../.unity/2d && git fetch origin $GIT_BRANCH
- command: cd ../.unity/2d && rm -f .git/index.lock
Expand All @@ -27,20 +24,15 @@ package_pack_-_2d_tilemap_extras:
- command: upm-ci package pack --package-path .
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.2d.tilemap.extras_packages.json
- command: mv upm-ci~/temp/packages/* upm-ci~/packages
- command: python PythonScripts/PackageJsonCondersor.py
after:
- 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
- command: bash ./run_standalone_instability_detection-latest.sh ubuntu 0.5.0 || exit 0
timeout: 10
retries: 1
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
artifacts:
packages:
paths:
- upm-ci~/packages/**/*
variables:
UPMCI_ACK_LARGE_PACKAGE: 1
UPMPVP_CONTEXT_WRENCH: 0.10.14.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.14.0
Wrench: 0.10.42.0

Loading