Skip to content

Commit c037d53

Browse files
committed
Created vetting test and added to triggers (initial checks and daily)
1 parent 269fe21 commit c037d53

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.yamato/_run-all.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ run_quick_checks:
1717
dependencies:
1818
- .yamato/package-pack.yml#package_pack_-_ngo_ubuntu
1919
- .yamato/project-standards.yml#standards_ubuntu_testproject_trunk
20+
# Run API validation to early-detect all new APIs that would force us to release new minor version of the package. Note that for this to work the package version in package.json must correspond to "actual package state" which means that it should be higher than last released version
21+
- .yamato/vetting-test.yml#vetting_test
2022

2123

2224
# Runs all package tests

.yamato/_triggers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ develop_nightly:
106106
# Build player for webgl platform on trunk and 6000.0 editors
107107
- .yamato/project-updated-dependencies-test.yml#updated-dependencies_testproject_NGO_ubuntu_trunk
108108
- .yamato/project-updated-dependencies-test.yml#updated-dependencies_testproject_NGO_win_6000.0
109+
# Run API validation to early-detect all new APIs that would force us to release new minor version of the package. Note that for this to work the package version in package.json must correspond to "actual package state" which means that it should be higher than last released version
110+
- .yamato/vetting-test.yml#vetting_test
109111

110112

111113
# Run all tests on weekly bases

.yamato/vetting-test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{% metadata_file .yamato/project.metafile %} # All configuration that is used to create different configurations (used in for loops) is taken from this file.
2+
---
3+
# DESCRIPTION--------------------------------------------------------------------------
4+
# This configuration defines vetting tests for the Tools package which allows to validate if the package is in releasable state. This is important in particular because of API validation that allows to detect if we are introducing any new APIs that will force us to bump package version to new minor
5+
# If this test fails with new API error we should either make those API internal OR bump package version to new minor (note that the package version reflects the current package state)
6+
7+
# Note that we are packing the package only (no project context) so if package have any soft dependencies then project should be used to test it (to enable those APIs)
8+
{% for editor in validation_editors.minimal -%}
9+
vetting_test:
10+
name: MP Tools - Vetting Test (Win, {{editor}} LTS)
11+
agent: { type: Unity::VM, flavor: b1.large, image: package-ci/win11:v4 }
12+
commands:
13+
- Tools\scripts\release.py # Needed to ensure that CHANGELOG is properly formatted for this test
14+
- npm install -g "upm-ci-utils@stable" --registry https://artifactory.prd.it.unity3d.com/artifactory/api/npm/upm-npm
15+
- unity-downloader-cli --fast --wait --unity-version {{ editor }} --components editor --arch x64
16+
- upm-ci package pack --package-path com.unity.netcode.gameobjects
17+
- upm-ci package test -u .Editor --package-path com.unity.netcode.gameobjects --type vetting-tests
18+
artifacts:
19+
logs:
20+
paths:
21+
- pvp-results/*
22+
- test-results/**
23+
- upm-ci~/test-results/**
24+
- upm-ci~/upm-ci.log
25+
{% endfor -%}

0 commit comments

Comments
 (0)