Skip to content
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

NGO CI refactor #3178

Draft
wants to merge 137 commits into
base: develop-2.0.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
7d96646
Updating trigger jobs to match develop-2.0.0 branch
michalChrobot Dec 9, 2024
8ec6e0b
Removed unused multiprocess tests
michalChrobot Dec 16, 2024
d7ef262
update
NoelStephensUnity Dec 16, 2024
628868a
Update
NoelStephensUnity Dec 16, 2024
ba35384
chore: merge release 2.2.0 back into develop-2.0.0 (#3179)
NoelStephensUnity Dec 16, 2024
bff898f
Updated wrench and target framework from net7.0 to 8.0
michalChrobot Dec 18, 2024
33bb021
Modify yml jobs
michalChrobot Dec 18, 2024
ca111ea
Rewrite of code coverage
michalChrobot Dec 18, 2024
25e4c62
Corrected array indexes in code coverage file
michalChrobot Dec 18, 2024
b17caa2
Corrected array indexes in code coverage file
michalChrobot Dec 18, 2024
885ee9f
Corrected project-pack agent
michalChrobot Dec 18, 2024
710054e
Rewrite of project-pack
michalChrobot Dec 18, 2024
cb764bc
Rewrite of package tests and corrections to code coverage and project…
michalChrobot Dec 18, 2024
5eb3ef1
Updating trigger jobs to match develop-2.0.0 branch
michalChrobot Dec 9, 2024
790a328
Removed unused multiprocess tests
michalChrobot Dec 16, 2024
6bb3f86
Updated wrench and target framework from net7.0 to 8.0
michalChrobot Dec 18, 2024
225c7cb
Modify yml jobs
michalChrobot Dec 18, 2024
8ced1a3
Rewrite of code coverage
michalChrobot Dec 18, 2024
eb8739f
Corrected array indexes in code coverage file
michalChrobot Dec 18, 2024
1b5ccea
Corrected array indexes in code coverage file
michalChrobot Dec 18, 2024
7486338
Corrected project-pack agent
michalChrobot Dec 18, 2024
8191965
Rewrite of project-pack
michalChrobot Dec 18, 2024
900c85b
Rewrite of package tests and corrections to code coverage and project…
michalChrobot Dec 18, 2024
e4c172c
Added local packing job using upm-pvp
michalChrobot Dec 18, 2024
162af45
Merge branch 'CI-fixes-for-develop-2.0.0' of https://github.com/Unity…
michalChrobot Dec 18, 2024
86643d3
Corrected package-tests
michalChrobot Dec 18, 2024
fc48a0b
Temporary removal of Unreleased section
michalChrobot Dec 18, 2024
2d075b2
Test with global install of upm-ci
michalChrobot Dec 18, 2024
63d426c
Restoring upm-ci installation
michalChrobot Dec 18, 2024
09f5a08
Updated metafile with more platforms and different layout
michalChrobot Dec 20, 2024
595720f
Package and project pack jobs correction
michalChrobot Dec 20, 2024
f67e4a9
Package tests correction
michalChrobot Dec 20, 2024
fa1feac
Code coverage and project standards rewrite
michalChrobot Dec 20, 2024
881608d
corrected query in package tests
michalChrobot Dec 20, 2024
23485e1
Webgl rewrite
michalChrobot Dec 20, 2024
0f0f7f3
Corrected and tested project standards
michalChrobot Dec 20, 2024
9113d8a
Corrected webgl definition
michalChrobot Dec 20, 2024
654e074
Corrected missing command in package tests
michalChrobot Dec 22, 2024
fc1283c
Removal of variables for more unified system test handling
michalChrobot Dec 22, 2024
4c6a740
Corrected loop for project-pack
michalChrobot Dec 22, 2024
43fc1fe
Correction of project-tests
michalChrobot Dec 22, 2024
bcb4578
desktop-standalone-tests rewrite
michalChrobot Dec 22, 2024
020cd08
Corrected desktop standalone tests
michalChrobot Dec 22, 2024
f6411e5
Corrected desktop standalone tests and webgl build
michalChrobot Dec 22, 2024
9530796
Linter fix of mobile tests
michalChrobot Dec 22, 2024
cbc853f
Corrected dependency name
michalChrobot Dec 22, 2024
55441b3
Corrected spaces
michalChrobot Dec 22, 2024
f204bc6
Comments addition with additional platforms
michalChrobot Dec 23, 2024
94895e6
Setup of desktop standalone tests
michalChrobot Dec 23, 2024
ce20aa8
corrected utr command
michalChrobot Dec 23, 2024
d4e4f4a
WebGl build refactor
michalChrobot Dec 23, 2024
610a9bb
linter corrections
michalChrobot Dec 23, 2024
64c47fc
Correction of Desktop Standalone command
michalChrobot Dec 24, 2024
25e0767
Corrected webgl syntax
michalChrobot Dec 24, 2024
a5e1de8
Corrected linter and naming for standalone desktop and webgl
michalChrobot Dec 24, 2024
ecd8d50
Naming correction, mobile builds and ubuntu test correction
michalChrobot Dec 24, 2024
7d7f163
Mobile if correction
michalChrobot Dec 24, 2024
8df3a34
Updated mobile tests
michalChrobot Dec 24, 2024
1899860
Corrected linter
michalChrobot Dec 24, 2024
2a4dcf5
Added backends to mobile standalone and increased webgl timeout
michalChrobot Dec 24, 2024
3203778
Corrected mobile scripting backends
michalChrobot Dec 24, 2024
d2ac9b8
Removed timeout for webgl
michalChrobot Dec 24, 2024
8d9ab49
Updated desktop standalone tests and overall tests order
michalChrobot Dec 25, 2024
ffe577a
Corrected linter and desktop standalone arm definition
michalChrobot Dec 25, 2024
2825f52
Corrected arm64 naming
michalChrobot Dec 25, 2024
ba17659
Corrected desktop standalone for arm64 tests
michalChrobot Dec 25, 2024
e8fccb9
Added base and extension fields
michalChrobot Dec 25, 2024
e2e2b71
Updated mobile build
michalChrobot Dec 25, 2024
ff72a4f
Disabled TestPeerDisconnectCallback
michalChrobot Dec 25, 2024
8780778
Corrected desktop tests
michalChrobot Dec 25, 2024
d85b955
Removed build timeout for mobile
michalChrobot Dec 25, 2024
afde308
Corrected ios arm image
michalChrobot Dec 25, 2024
c0adac5
Corrected editor components for desktop and mobile
michalChrobot Dec 25, 2024
4aaddd3
Corrected models for arm64
michalChrobot Dec 25, 2024
430d291
Added runAll checks
michalChrobot Dec 25, 2024
b50b0ca
Manual install of editor
michalChrobot Dec 25, 2024
171b313
Code coverage update
michalChrobot Dec 25, 2024
98bdbbd
Removing win-arm64 from tests before building anc correcting GPU usag…
michalChrobot Dec 25, 2024
d055228
Changes included in runAll
michalChrobot Dec 25, 2024
654bb64
Added desktop tests to run all
michalChrobot Dec 25, 2024
7cce69a
Removed macOS Arm64 from WebGl build platforms due to errors with OpenCL
michalChrobot Dec 26, 2024
7b90ef1
Removed win arm64 from desktop tests
michalChrobot Dec 26, 2024
c5fe8f4
Mobile standalone added to run all for testing
michalChrobot Dec 26, 2024
5cfa0e7
Corrected typo
michalChrobot Dec 26, 2024
18448b0
Removed all arm64 platforms from desktop tests and added model for mo…
michalChrobot Dec 26, 2024
257ac6e
Corrected mobile configurations
michalChrobot Dec 26, 2024
21e2e7c
Disabled WhenSerializingAndDeserializingVeryLargeDictionaryNetworkVar…
michalChrobot Dec 26, 2024
8f524e9
Corrected mobile tests by not building with ARM
michalChrobot Dec 26, 2024
d2b8ec6
Correction of mobile tests
michalChrobot Dec 26, 2024
5638e16
Naming correction
michalChrobot Dec 26, 2024
ab3a5e0
Corrected mobile linter
michalChrobot Dec 26, 2024
bcc9b07
removed if
michalChrobot Dec 26, 2024
19f37ee
Updated image for ios-arm64
michalChrobot Dec 26, 2024
dfe1705
Accured for Model
michalChrobot Dec 26, 2024
1e09c96
Corrected desktop standalone
michalChrobot Dec 26, 2024
13ced8f
removed arm64 editor argument when building for mobile
michalChrobot Dec 26, 2024
6525117
changed base to name
michalChrobot Dec 26, 2024
5ee7f4c
Initial Performance tests file
michalChrobot Dec 26, 2024
145cbc4
Linter correction
michalChrobot Dec 26, 2024
5be554a
Added consoles configuration
michalChrobot Dec 26, 2024
ad0c826
Corrections for mobile and standalone tests
michalChrobot Dec 26, 2024
5267766
Corrected linter in performance tests
michalChrobot Dec 26, 2024
1302201
Correction of ignored test
michalChrobot Dec 26, 2024
d364e9f
Ignored test and removed testfilter from mobile
michalChrobot Dec 27, 2024
0bfe9eb
Correction for mobile tests
michalChrobot Dec 27, 2024
83c3909
Linter correction
michalChrobot Dec 27, 2024
1cee118
Added console builds
michalChrobot Dec 27, 2024
a947888
Corrected linter
michalChrobot Dec 27, 2024
99aa6c0
Updated ps4 tool
michalChrobot Dec 27, 2024
bdcc27d
Corrected console build
michalChrobot Dec 27, 2024
9a3efbf
Disabled tests and added timeout
michalChrobot Dec 27, 2024
b41378c
Corrected Android syntx
michalChrobot Dec 27, 2024
982a292
Changed image for ps4
michalChrobot Dec 27, 2024
21013fc
Tried android with different image
michalChrobot Dec 27, 2024
770d868
Ps4 updated image
michalChrobot Dec 27, 2024
988eafd
Ignored test and removed bad arguments
michalChrobot Dec 27, 2024
b219423
Disabled tests
michalChrobot Dec 27, 2024
c13978e
Updated image
michalChrobot Dec 27, 2024
3358e79
Images changed from package-ci to dots-ci
michalChrobot Dec 27, 2024
50e653c
Added pip install commands
michalChrobot Dec 28, 2024
86e5f7b
Disabled test and included testfilter for mobile
michalChrobot Dec 28, 2024
50de799
Ignored test
michalChrobot Dec 28, 2024
e725bd2
Test of preinstalled things on consoles
michalChrobot Dec 28, 2024
ef8e65f
Console python change
michalChrobot Dec 28, 2024
bfb3b17
changed utr command
michalChrobot Dec 28, 2024
44fcc37
Changed utr command
michalChrobot Dec 28, 2024
f3b4338
Images changed to use package-ci
michalChrobot Dec 28, 2024
c57659b
update
michalChrobot Dec 28, 2024
abaed04
Check of ps4 images
michalChrobot Dec 29, 2024
1eecad9
removed choco command
michalChrobot Dec 29, 2024
6aec39d
pip test
michalChrobot Dec 29, 2024
56e4449
images
michalChrobot Dec 29, 2024
b12193a
changed gsudo with sudo
michalChrobot Dec 29, 2024
d7ca94d
Added console test run job
michalChrobot Dec 29, 2024
51da014
Setting up triggers and adding configurations for run-all jobs
michalChrobot Dec 29, 2024
0e26494
Defined model for ubuntu and win
michalChrobot Dec 29, 2024
a62dcff
Removed desktop standalone test timeout
michalChrobot Dec 29, 2024
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
215 changes: 112 additions & 103 deletions .yamato/_run-all.yml
Original file line number Diff line number Diff line change
@@ -1,161 +1,170 @@
{% metadata_file .yamato/project.metafile %}
---
run_all_tests:
name: Run All Package and Project Tests

# Runs all package tests
run_all_package_tests:
name: Run All Package Tests
dependencies:
# Pull in package and validate jobs through the badges job
- .yamato/_triggers.yml#badges_test_trigger
- .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_iOS
- .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_android
# - .yamato/_run-all.yml#all_project_tests_standalone
{% for project in projects -%}
{% if project.name == "testproject" -%}
{% for editor in project.test_editors -%}
- .yamato/webgl-build.yml#build_{{ project.name }}_tests_{{ editor }}_webgl
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.all -%}
- .yamato/package-tests.yml#package_test_-_ngo_{{ editor }}_{{ platform.name }}
{% endfor -%}
{% endif -%}
{% endfor -%}

{% for platform in test_platforms -%}
{% for project in projects -%}
{% for editor in project.test_editors -%}
{% if editor != "trunk" -%}
{% for package in project.packages -%}
- .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}

# Runs all package tests on trunk
run_all_package_tests_trunk:
name: Run All Package Tests [Trunk only]
dependencies:
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.default -%}
- .yamato/package-tests.yml#package_test_-_ngo_{{ editor }}_{{ platform.name }}
{% endfor -%}
- .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
{% endif -%}
{% endfor -%}

## Test minimal project with different versions of dependencies
{% if project.name == "minimalproject" -%}
{% for dependency in dependencies -%}
{% for depeditor in dependency.test_editors -%}
{% if depeditor != "trunk" -%}
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
{% endif -%}

# Runs all projects tests
run_all_project_tests:
name: Run All Project Tests
dependencies:
{% for project in projects.all -%}
{% if project.has_tests == "true" -%}
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.all -%}
- .yamato/project-tests.yml#test_{{ project.name }}_{{ platform.name }}_{{ editor }}
{% endfor -%}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}

run_all_tests_trunk:
name: Run All Package and Project Tests [Trunk]

# Runs all projects tests on trunk
run_all_project_tests_trunk:
name: Run All Project Tests [Trunk only]
dependencies:
{% for platform in test_platforms -%}
{% for project in projects -%}
{% for editor in project.test_editors -%}
{% if editor == "trunk" -%}
{% for package in project.packages -%}
- .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
{% endfor -%}
- .yamato/project-tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
{% for project in projects.all -%}
{% if project.has_tests == "true" -%}
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.default -%}
- .yamato/project-tests.yml#test_{{ project.name }}_{{ platform.name }}_{{ editor }}
{% endfor -%}
{% endfor -%}
{% endif -%}
{% endfor -%}

## Test minimal project with different versions of dependencies on trunk
{% if project.name == "minimalproject" -%}
{% for dependency in dependencies -%}
{% for depeditor in dependency.test_editors -%}
{% if depeditor == "trunk" -%}
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ depeditor }}_{{ platform.name }}
{% endif -%}

# Runs all project standards check
run_all_projects_standards:
name: Run All Projects Standards
dependencies:
{% for platform in test_platforms.default -%}
{% for project in projects.all -%}
{% for editor in validation_editors.default -%}
- .yamato/project-standards.yml#standards_{{ platform.name }}_{{ project.name }}_{{ editor }}
{% endfor -%}
{% endfor -%}
{% endfor -%}


run_all_webgl_builds:
name: Run All WebGl Build
dependencies:
{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% if platform.architecture != "arm64" -%} # Windows_arm64 is recommended to use only after builds and when it comes to macOS_arm64 there is problem with OpenCL not being available
{% for editor in validation_editors.all -%}
- .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform }}_{{ editor }}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}

all_project_tests:
name: Run All Project Tests

run_all_webgl_builds_trunk:
name: Run All WebGl Build [Trunk only]
dependencies:
- .yamato/_triggers.yml#badges_test_trigger
{% for platform in test_platforms -%}
{% for project in projects -%}
{% for editor in project.test_editors -%}
- .yamato/project-tests.yml#test_{{ projects.first.name }}_{{ editor }}_{{ platform.name }}
{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% if platform.architecture != "arm64" -%} # Windows_arm64 is recommended to use only after builds and when it comes to macOS_arm64 there is problem with OpenCL not being available
{% for editor in validation_editors.default -%}
- .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform }}_{{ editor }}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}

all_package_tests:
name: Run All Package Tests

run_all_project_tests_desktop_standalone:
name: Run All Standalone Tests - Desktop
dependencies:
- .yamato/_triggers.yml#badges_test_trigger
{% for platform in test_platforms -%}
{% for project in projects -%}
{% for editor in project.test_editors -%}
{% for package in project.packages -%}
- .yamato/package-tests.yml#test_{{ project.name}}_{{ package.name }}_{{ editor }}_{{ platform.name }}
{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.all -%}
{% for backend in scripting_backends -%}
- .yamato/desktop-standalone-tests.yml#desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}
{% endfor -%}
{% endfor -%}
{% endfor -%}
{% endfor -%}

# Test minimal project with different versions of dependencies
all_compatibility_tests:
name: Run All Compatibility Tests

run_all_project_tests_desktop_standalone_trunk:
name: Run All Standalone Tests - Desktop [Trunk only]
dependencies:
{% for platform in test_platforms -%}
{% for project in projects -%}
{% if project.name == "minimalproject" -%}
{% for dependency in dependencies -%}
{% for editor in dependency.test_editors -%}
- .yamato/package-tests.yml#test_compatibility_{{ project.name }}_{{ project.packages.first.name }}_with_{{ dependency.name }}@{{ dependency.version }}_{{ editor }}_{{ platform.name }}
{% for project in projects.default -%}
{% for platform in test_platforms.desktop -%}
{% for editor in validation_editors.default -%}
{% for backend in scripting_backends -%}
- .yamato/desktop-standalone-tests.yml#desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}
{% endfor -%}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}

all_singlenode_multiprocess_tests:
name: Run All Multiprocess Tests - Single Node

run_all_project_tests_mobile_standalone:
name: Run All Standalone Tests - Mobile
dependencies:
{% for platform in test_platforms -%}
{% for project in projects -%}
{% for editor in project.test_editors -%}
{% if editor != "trunk" %}
- .yamato/multiprocess-project-tests.yml#singlenode_multiprocess_test_testproject_{{ editor }}_{{ platform.name }}
{% endif %}
{% for project in projects.default -%}
{% for editor in validation_editors.all -%}
{% for platform in test_platforms.mobile_test -%}
- .yamato/mobile-standalone-test.yml#run_{{ project.name }}_tests_{{ editor }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
{% endfor -%}

all_project_tests_standalone:
name: Run All Project Tests - Standalone

run_all_project_tests_mobile_standalone_trunk:
name: Run All Standalone Tests - Mobile [Trunk only]
dependencies:
{% for platform in test_platforms -%}
{% for project in projects -%}
{% if project.has_tests == "true" -%}
{% for editor in project.test_editors -%}
{% for backend in scripting_backends -%}
- .yamato/standalone-project-tests.yml#standalone_tests_{{ project.name }}_{{ backend }}_{{ editor }}_{{ platform.name }}
{% for project in projects.default -%}
{% for editor in validation_editors.default -%}
{% for platform in test_platforms.mobile_test -%}
- .yamato/mobile-standalone-test.yml#run_{{ project.name }}_tests_{{ editor }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endfor -%}

all_project_tests_mobile:
name: Run All Project Tests - Mobile

run_all_project_tests_console_standalone:
name: Run All Standalone Tests - Console
dependencies:
{% for project in projects -%}
{% if project.name == "testproject" -%}
{% for editor in project.test_editors -%}
- .yamato/mobile-build-and-test.yml#run_{{ project.name }}_tests_{{ editor }}_android
- .yamato/mobile-build-and-test.yml#run_{{ project.name }}_tests_{{ editor }}_iOS
{% for project in projects.default -%}
{% for editor in validation_editors.all -%}
{% for platform in test_platforms.console_test -%}
- .yamato/console-standalone-test.yml#run_{{ project.name }}_tests_{{ editor }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
{% endif -%}
{% endfor -%}

all_project_tests_webgl:
name: Build All Project Tests - WebGL

run_all_project_tests_console_standalone_trunk:
name: Run All Standalone Tests - Console [Trunk only]
dependencies:
{% for project in projects -%}
{% if project.name == "testproject" -%}
{% for editor in project.test_editors -%}
- .yamato/webgl-build.yml#build_{{ project.name }}_tests_{{ editor }}_webgl
{% for project in projects.default -%}
{% for editor in validation_editors.default -%}
{% for platform in test_platforms.console_test -%}
- .yamato/console-standalone-test.yml#run_{{ project.name }}_tests_{{ editor }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
{% endif -%}
{% endfor -%}
Loading
Loading