Skip to content

Commit

Permalink
Fixed performance tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelalonsojr committed Dec 2, 2023
1 parent be85784 commit ab7af4e
Show file tree
Hide file tree
Showing 41 changed files with 2,701 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .yamato/com.unity.ml-agents-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Run_Mac_Perfomance_Tests{{ editor.version }}:
agent:
type: Unity::VM::osx
image: package-ci/macos-13:v4
flavor: b1.small
flavor: b1.large
variables:
UNITY_VERSION: {{ editor.version }}
commands:
- python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- unity-downloader-cli -u {{ editor.version }} -c editor --wait --fast
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
- chmod +x ./utr
- ./utr --suite=editor --platform=StandaloneOSX --editor-location=.Editor --testproject=DevProject --artifacts_path=build/test-results --report-performance-data --performance-project-id=com.unity.ml-agents --zero-tests-are-ok=1
- ./utr --suite=editor --platform=StandaloneOSX --editor-location=.Editor --testproject=PerformanceProject --artifacts_path=build/test-results --report-performance-data --performance-project-id=com.unity.ml-agents --zero-tests-are-ok=1
triggers:
cancel_old_ci: true
recurring:
Expand Down
2 changes: 1 addition & 1 deletion DevProject/Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"com.unity.package-manager-doctools": "3.0.0-preview",
"com.unity.package-validation-suite": "0.59.0-preview",
"com.unity.test-framework": "1.1.33",
"com.unity.test-framework.performance": "2.2.0-preview",
"com.unity.test-framework.performance": "3.0.3",
"com.unity.testtools.codecoverage": "1.2.4",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.physics": "1.0.0",
Expand Down
10 changes: 5 additions & 5 deletions DevProject/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"depth": 0,
"source": "local",
"dependencies": {
"com.unity.sentis": "1.3.0-pre.1",
"com.unity.sentis": "1.3.0-pre.2",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.physics": "1.0.0"
Expand Down Expand Up @@ -105,7 +105,7 @@
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
},
"com.unity.sentis": {
"version": "1.3.0-pre.1",
"version": "1.3.0-pre.2",
"depth": 1,
"source": "registry",
"dependencies": {
Expand Down Expand Up @@ -141,12 +141,12 @@
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
},
"com.unity.test-framework.performance": {
"version": "2.2.0-preview",
"version": "3.0.3",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.test-framework": "1.1.0",
"com.unity.nuget.newtonsoft-json": "2.0.0-preview"
"com.unity.test-framework": "1.1.31",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
},
Expand Down
71 changes: 71 additions & 0 deletions PerformanceProject/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/[Ll]ibrary/
/Logs/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
/Assets/Plugins*
/Assets/Demonstrations*
/Assets/ML-Agents/Timers*
/csharp_timers.json
/CodeCoverage/

# Environemnt logfile
*Project.log

# Visual Studio 2015 cache directory
/.vs/

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

# Unity3D generated meta files
*.pidb.meta

# Unity3D Generated File On Crash Reports
/sysinfo.txt

# Builds
*.apk
*.unitypackage
*.app
*.exe
*.x86_64
*.x86

# Plugins
/Assets/VideoRecorder*

# Mac hidden files
*.DS_Store
*/.ipynb_checkpoints
*/.idea
*.pyc
*.idea/misc.xml
*.idea/modules.xml
*.idea/
*.iml
*.cache
*/build/
*/dist/
*.egg-info*
*.eggs*
*.gitignore.swp

# VSCode hidden files
*.vscode/

.DS_Store
8 changes: 8 additions & 0 deletions PerformanceProject/Assets/ML-Agents.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions PerformanceProject/Assets/ML-Agents/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions PerformanceProject/Assets/ML-Agents/Scripts/Tests.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions PerformanceProject/Assets/ML-Agents/Scripts/Tests/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "MLAgentsExamples.Tests.Performance",
"rootNamespace": "",
"references": [
"UnityEngine.TestRunner",
"UnityEditor.TestRunner",
"Unity.PerformanceTesting",
"Unity.PerformanceTesting.Editor",
"Unity.ML-Agents"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll"
],
"autoReferenced": false,
"defineConstraints": [
"UNITY_INCLUDE_TESTS"
],
"versionDefines": [],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,4 @@ public void TestObservablePropertyAgentMarkers()
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions PerformanceProject/Assets/Scenes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ab7af4e

Please sign in to comment.