Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
12 changes: 6 additions & 6 deletions .yamato/project-builders/project-builders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ build_{{ netcodeProject[0] }}_project:
PLATFORM_WIN64_MAC_ANDROID: win64
commands:
# Validate inputs passed via Yamato variables
- python Tools/CI/scripts/BuildAutomation/validate_params.py
- python Tools/scripts/BuildAutomation/validate_params.py
- echo Building {{ netcodeProject[0] }} project with Unity version of %UNITY_VERSION%, Scripting backend %SCRIPTING_BACKEND_IL2CPP_MONO%, Burst %BURST_ON_OFF% for platform %PLATFORM_WIN64_MAC_ANDROID%

# Clone the external project repository into a specific directory. Notice that branch is also specified.
- git clone --single-branch --branch {{ netcodeProject[1].branch }} {{ netcodeProject[1].GithubRepo }} C:/ClonedProject

# Modify the external project's manifest to use the local N4E package from current branch on which this Yamato job is running. (requires python that should be preinstalled in the image)
- python Tools/CI/scripts/BuildAutomation/manifest_update.py --manifest-path C:/ClonedProject/{{ netcodeProject[1].manifestPath }} --local-package-path %YAMATO_SOURCE_DIR%/com.unity.netcode.gameobjects
- python Tools/scripts/BuildAutomation/manifest_update.py --manifest-path C:/ClonedProject/{{ netcodeProject[1].manifestPath }} --local-package-path %YAMATO_SOURCE_DIR%/com.unity.netcode.gameobjects

# Run python script to update ProjectSettings.asset in order to connect the project to Unity Services/set proper values.
# Notice that if a project has this already set up then in theory we don't need to run this script.
- python Tools/CI/scripts/BuildAutomation/connect_services.py --project-settings-path C:/ClonedProject/{{ netcodeProject[1].projectPath }}/ProjectSettings/ProjectSettings.asset
- python Tools/scripts/BuildAutomation/connect_services.py --project-settings-path C:/ClonedProject/{{ netcodeProject[1].projectPath }}/ProjectSettings/ProjectSettings.asset

# Enable or disable Burst compilation. This step is specific to Netcode package (or any package that uses Burst)
- IF "%BURST_ON_OFF%"=="on" (python Tools/CI/scripts/BuildAutomation/disable-enable-burst.py --enable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})
ELSE (python Tools/CI/scripts/BuildAutomation/disable-enable-burst.py --disable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})
- IF "%BURST_ON_OFF%"=="on" (python Tools/scripts/BuildAutomation/disable-enable-burst.py --enable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})
ELSE (python Tools/scripts/BuildAutomation/disable-enable-burst.py --disable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})

# Download the Unity Editor version specified in the UNITY_VERSION variable. Il2cpp component is downloaded only if the SCRIPTING_BACKEND_IL2CPP_MONO is set to "il2cpp".
# TODO: we could download components only if needed
Expand All @@ -56,7 +56,7 @@ build_{{ netcodeProject[0] }}_project:
# Add BuilderScript.cs to the project so we can modify and build the project using Unity Editor.
# This is a bit tricky step, notice that we also need to include proper assembly definition in order for those scripts to compile properly.
# TODO: the asmdef file can be simplified
- python Tools/CI/scripts/BuildAutomation/FileCopy.py "C:/ClonedProject/{{ netcodeProject[1].projectPath }}"
- python Tools/scripts/BuildAutomation/FileCopy.py "C:/ClonedProject/{{ netcodeProject[1].projectPath }}"

# Build the project using Unity Editor. This will call the given static BuilderScripts method.
# Ideally, it would be nice to parametrize the BuilderScripts (for example to pass scripting backend as parameter) but -executeMethod only calls static methods without parameters so for now we will have multiple configurations
Expand Down
3 changes: 1 addition & 2 deletions .yamato/project.metafile
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,13 @@ test_platforms:

validation_editors:
default:
- trunk
- 6000.2
all:
- 2021.3
- 2022.3
- 6000.0
- 6000.1
- 6000.2
- trunk
minimal:
- 2021.3

Expand Down
166 changes: 0 additions & 166 deletions .yamato/wrench/preview-a-p-v.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ all_preview_apv_jobs:
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_2_-_macos
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_2_-_ubuntu
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_2_-_windows
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_3_-_macos
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_3_-_ubuntu
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_3_-_windows
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.12.2.0
Expand Down Expand Up @@ -842,166 +839,3 @@ preview_apv_-_6000_2_-_windows:
Job Maintainers: '#rm-packageworks'
Wrench: 0.12.2.0

# Functional tests for dependents found in the latest 6000.3 manifest (MacOS).
preview_apv_-_6000_3_-_macos:
name: Preview APV - 6000.3 - macos
agent:
image: package-ci/macos-13:default
type: Unity::VM::osx
flavor: b1.xlarge
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 trunk -c editor --path .Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.3 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
- command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-mac.sh
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
packages:
paths:
- upm-ci~/packages/**/*
PreviewAPVResults:
paths:
- PreviewApvArtifacts~/**
- APVTest/**/manifest.json
pvp-results:
paths:
- upm-ci~/pvp/**/*
browsable: onDemand
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
variables:
UPMPVP_CONTEXT_WRENCH: 0.12.2.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.12.2.0

# Functional tests for dependents found in the latest 6000.3 manifest (Ubuntu).
preview_apv_-_6000_3_-_ubuntu:
name: Preview APV - 6000.3 - ubuntu
agent:
image: package-ci/ubuntu-20.04: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 trunk -c editor --path .Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.3 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
- command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
after:
- command: bash .yamato/generated-scripts/infrastructure-instability-detection-linux.sh
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
packages:
paths:
- upm-ci~/packages/**/*
PreviewAPVResults:
paths:
- PreviewApvArtifacts~/**
- APVTest/**/manifest.json
pvp-results:
paths:
- upm-ci~/pvp/**/*
browsable: onDemand
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
variables:
UPMPVP_CONTEXT_WRENCH: 0.12.2.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.12.2.0

# Functional tests for dependents found in the latest 6000.3 manifest (Windows).
preview_apv_-_6000_3_-_windows:
name: Preview APV - 6000.3 - windows
agent:
image: package-ci/win10:default
type: Unity::VM
flavor: b1.large
commands:
- command: gsudo reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
- 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 trunk -c editor --path .Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.3 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
- command: python PythonScripts/editor_manifest_validator.py --version=6000.3 --wrench-config=.yamato/wrench/wrench_config.json
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
packages:
paths:
- upm-ci~/packages/**/*
PreviewAPVResults:
paths:
- PreviewApvArtifacts~/**
- APVTest/**/manifest.json
pvp-results:
paths:
- upm-ci~/pvp/**/*
browsable: onDemand
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_netcode_gameobjects
variables:
UPMPVP_CONTEXT_WRENCH: 0.12.2.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.12.2.0

60 changes: 0 additions & 60 deletions .yamato/wrench/promotion-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,36 +176,6 @@ publish_dry_run_netcode_gameobjects:
unzip: true
packages:
ignore_artifact: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_3_-_macos
specific_options:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.3-macos
unzip: true
pvp-results:
location: results/pvp/validate-netcode.gameobjects-6000.3-macos
unzip: true
packages:
ignore_artifact: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_3_-_ubuntu
specific_options:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.3-ubuntu
unzip: true
pvp-results:
location: results/pvp/validate-netcode.gameobjects-6000.3-ubuntu
unzip: true
packages:
ignore_artifact: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_3_-_windows
specific_options:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.3-windows
unzip: true
pvp-results:
location: results/pvp/validate-netcode.gameobjects-6000.3-windows
unzip: true
packages:
ignore_artifact: true
variables:
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
UPMPVP_CONTEXT_WRENCH: 0.12.2.0
Expand Down Expand Up @@ -388,36 +358,6 @@ publish_netcode_gameobjects:
unzip: true
packages:
ignore_artifact: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_3_-_macos
specific_options:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.3-macos
unzip: true
pvp-results:
location: results/pvp/validate-netcode.gameobjects-6000.3-macos
unzip: true
packages:
ignore_artifact: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_3_-_ubuntu
specific_options:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.3-ubuntu
unzip: true
pvp-results:
location: results/pvp/validate-netcode.gameobjects-6000.3-ubuntu
unzip: true
packages:
ignore_artifact: true
- path: .yamato/wrench/validation-jobs.yml#validate_-_netcode_gameobjects_-_6000_3_-_windows
specific_options:
UTR:
location: results/UTR/validate-netcode.gameobjects-6000.3-windows
unzip: true
pvp-results:
location: results/pvp/validate-netcode.gameobjects-6000.3-windows
unzip: true
packages:
ignore_artifact: true
variables:
UPMPVP_ACK_UPMPVP_DOES_NO_API_VALIDATION: 1
UPMPVP_CONTEXT_WRENCH: 0.12.2.0
Expand Down
Loading
Loading