Skip to content

Commit 5db6efe

Browse files
author
Chris Elion
committed
Merge remote-tracking branch 'origin/master' into plugin-setuptools-statswriter
2 parents f138c48 + 26a7040 commit 5db6efe

File tree

289 files changed

+5844
-2159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+5844
-2159
lines changed

.github/lock.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/lock.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Lock Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0/4 * * *'
6+
7+
jobs:
8+
lock:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: dessant/lock-threads@v2
12+
with:
13+
github-token: ${{ github.token }}
14+
issue-lock-inactive-days: '30'
15+
issue-exclude-created-before: ''
16+
issue-exclude-labels: ''
17+
issue-lock-labels: ''
18+
issue-lock-comment: >
19+
This thread has been automatically locked since there has not been
20+
any recent activity after it was closed. Please open a new issue for
21+
related bugs.
22+
issue-lock-reason: 'resolved'
23+
process-only: 'issues'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/summaries
44
# Output Artifacts
55
/results
6+
# Output Builds
7+
/Builds
68

79
# Training environments
810
/envs

.pre-commit-config.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,6 @@ repos:
7777
hooks:
7878
- id: python-check-mock-methods
7979

80-
- repo: https://github.com/pre-commit/mirrors-pylint
81-
rev: v2.4.4
82-
hooks:
83-
- id: pylint
84-
exclude: >
85-
(?x)^(
86-
.*_pb2.py|
87-
.*_pb2_grpc.py|
88-
.*/tests/.*
89-
)$
90-
args: [--score=n]
91-
9280
- repo: https://github.com/mattlqx/pre-commit-search-and-replace
9381
rev: v1.0.3
9482
hooks:

.pylintrc

Lines changed: 0 additions & 53 deletions
This file was deleted.

.yamato/com.unity.ml-agents-pack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pack:
22
name: Pack
33
agent:
4-
type: Unity::VM::osx
5-
image: package-ci/mac:stable
4+
type: Unity::VM
5+
image: package-ci/ubuntu:stable
66
flavor: b1.small
77
commands:
88
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm

.yamato/com.unity.ml-agents-performance.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,16 @@ Run_Mac_Perfomance_Tests{{ editor.version }}:
1313
variables:
1414
UNITY_VERSION: {{ editor.version }}
1515
commands:
16-
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
16+
- python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
1717
- unity-downloader-cli -u {{ editor.version }} -c editor --wait --fast
18-
- curl -s https://artifactory.internal.unity3d.com/core-automation/tools/utr-standalone/utr --output utr
18+
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
1919
- chmod +x ./utr
2020
- ./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
2121
triggers:
2222
cancel_old_ci: true
23-
expression: |
24-
(pull_request.target eq "master" OR
25-
pull_request.target match "release.+") AND
26-
NOT pull_request.draft AND
27-
(pull_request.changes.any match "com.unity.ml-agents/**" OR
28-
pull_request.changes.any match "DevProject/**" OR
29-
pull_request.changes.any match "ml-agents/**" OR
30-
pull_request.changes.any match "ml-agents-envs/**" OR
31-
pull_request.changes.any match ".yamato/com.unity.ml-agents-performance.yml") AND
32-
NOT pull_request.changes.all match "**/*.md"
23+
recurring:
24+
- branch: master
25+
frequency: daily
3326
artifacts:
3427
logs:
3528
paths:

.yamato/com.unity.ml-agents-test.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ test_editors:
44
enableCodeCoverage: !!bool false
55
# We want some scene tests to run in the DevProject, but packages there only support 2019+
66
testProject: Project
7+
enableNoDefaultPackages: !!bool false
78
- version: 2019.4
89
enableCodeCoverage: !!bool true
910
testProject: DevProject
11+
enableNoDefaultPackages: !!bool true
1012
- version: 2020.1
1113
enableCodeCoverage: !!bool true
1214
testProject: DevProject
15+
enableNoDefaultPackages: !!bool true
1316
- version: 2020.2
1417
enableCodeCoverage: !!bool true
1518
testProject: DevProject
19+
enableNoDefaultPackages: !!bool true
1620

1721
trunk_editor:
1822
- version: trunk
@@ -72,6 +76,13 @@ all_package_tests:
7276
{% else %}
7377
{% assign coverageOptions = "" %}
7478
{% endif %}
79+
80+
{% if editor.enableNoDefaultPackages %}
81+
{% assign noDefaultPackagesOptions = "--extra-create-project-arg='-upmNoDefaultPackages'" %}
82+
{% else %}
83+
{% assign noDefaultPackagesOptions = "" %}
84+
{% endif %}
85+
7586
test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
7687
name : {{ package.name }} test {{ editor.version }} on {{ platform.name }}
7788
agent:
@@ -80,7 +91,7 @@ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
8091
flavor: {{ platform.flavor}}
8192
commands:
8293
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
83-
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
94+
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} {{ noDefaultPackagesOptions }} --extra-utr-arg "reruncount=2"
8495
{% if editor.enableCodeCoverage %}
8596
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }}
8697
{% endif %}
@@ -92,7 +103,7 @@ test_{{ package.name }}_{{ platform.name }}_{{ editor.version }}:
92103
- .yamato/com.unity.ml-agents-pack.yml#pack
93104
triggers:
94105
cancel_old_ci: true
95-
{% if platform.name == "mac" %}
106+
{% if platform.name == "linux" %}
96107
expression: |
97108
(pull_request.target eq "master" OR
98109
pull_request.target match "release.+") AND
@@ -124,10 +135,10 @@ test_{{ package.name }}_{{ platform.name }}_trunk:
124135
image: {{ platform.image }}
125136
flavor: {{ platform.flavor}}
126137
commands:
127-
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
138+
- python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
128139
- unity-downloader-cli -u trunk -c editor --wait --fast
129140
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
130-
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-utr-arg "reruncount=2"
141+
- upm-ci project test -u {{ editor.version }} --project-path {{ editor.testProject }} --package-filter {{ package.name }} {{ coverageOptions }} --extra-create-project-arg="-upmNoDefaultPackages" --extra-utr-arg "reruncount=2"
131142
{% if editor.enableCodeCoverage %}
132143
- python3 ml-agents/tests/yamato/check_coverage_percent.py upm-ci~/test-results/ {{ package.minCoveragePct }}
133144
{% endif %}

.yamato/compressed-sensor-test.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@
44
test_compressed_obs_{{ editor.version }}:
55
name: Test Compressed Sensor Observation {{ editor.version }}
66
agent:
7-
type: Unity::VM::osx
8-
image: ml-agents/ml-agents-bokken-mac:0.1.4-492264
9-
flavor: b1.small
7+
type: Unity::VM
8+
image: package-ci/ubuntu:stable
9+
flavor: b1.medium
1010
variables:
1111
UNITY_VERSION: {{ editor.version }}
1212
commands:
13-
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
14-
- python -u -m ml-agents.tests.yamato.setup_venv
15-
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_compressed_sensor.py --env=artifacts/testPlayer-TestGridCompressed
16-
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_compressed_sensor.py --env=artifacts/testPlayer-TestTextureCompressed
13+
- |
14+
sudo apt-get update && sudo apt-get install -y python3-venv
15+
python3 -m venv venv && source venv/bin/activate
16+
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
17+
python -u -m ml-agents.tests.yamato.setup_venv
18+
python ml-agents/tests/yamato/scripts/run_compressed_sensor.py --env=artifacts/testPlayer-TestGridCompressed
19+
python ml-agents/tests/yamato/scripts/run_compressed_sensor.py --env=artifacts/testPlayer-TestTextureCompressed
1720
dependencies:
18-
- .yamato/standalone-build-test.yml#test_mac_standalone_{{ editor.version }}
21+
- .yamato/standalone-build-test.yml#test_linux_standalone_{{ editor.version }}
1922
triggers:
2023
cancel_old_ci: true
2124
expression: |

.yamato/gym-interface-test.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@
22
---
33
{% for editor in test_editors %}
44
test_gym_interface_{{ editor.version }}:
5-
name: Test Mac Gym Interface {{ editor.version }}
5+
name: Test Linux Gym Interface {{ editor.version }}
66
agent:
7-
type: Unity::VM::osx
8-
image: ml-agents/ml-agents-bokken-mac:0.1.4-492264
9-
flavor: b1.small
7+
type: Unity::VM
8+
image: package-ci/ubuntu:stable
9+
flavor: b1.medium
1010
variables:
1111
UNITY_VERSION: {{ editor.version }}
1212
commands:
13-
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
14-
- python -u -m ml-agents.tests.yamato.setup_venv
15-
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_gym.py --env=artifacts/testPlayer-Basic
13+
- |
14+
sudo apt-get update && sudo apt-get install -y python3-venv
15+
python3 -m venv venv && source venv/bin/activate
16+
python -m pip install wheel --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
17+
python -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
18+
python -u -m ml-agents.tests.yamato.setup_venv
19+
python ml-agents/tests/yamato/scripts/run_gym.py --env=artifacts/testPlayer-Basic
1620
dependencies:
17-
- .yamato/standalone-build-test.yml#test_mac_standalone_{{ editor.version }}
21+
- .yamato/standalone-build-test.yml#test_linux_standalone_{{ editor.version }}
1822
triggers:
1923
cancel_old_ci: true
2024
expression: |

.yamato/protobuf-generation-test.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
test_mac_protobuf_generation:
1+
test_linux_protobuf_generation:
22
name: Protobuf Generation Tests
33
agent:
4-
type: Unity::VM::osx
5-
image: ml-agents/ml-agents-bokken-mac:0.1.4-492264
6-
flavor: b1.small
4+
type: Unity::VM
5+
image: package-ci/ubuntu:stable
6+
flavor: b1.large
77
variables:
88
GRPC_VERSION: "1.14.1"
99
CS_PROTO_PATH: "com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects"
1010
commands:
1111
- |
12-
brew install nuget
12+
sudo apt-get update && sudo apt-get install -y python3-venv nuget
13+
python3 -m venv venv && source venv/bin/activate
1314
nuget install Grpc.Tools -Version $GRPC_VERSION -OutputDirectory protobuf-definitions/
14-
python3 -m venv venv
15-
. venv/bin/activate
16-
pip install --upgrade pip --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
17-
pip install grpcio==1.28.1 grpcio-tools==1.13.0 protobuf==3.11.3 six==1.14.0 mypy-protobuf==1.16.0 --progress-bar=off --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
18-
cd protobuf-definitions
19-
chmod +x Grpc.Tools.$GRPC_VERSION/tools/macosx_x64/protoc
20-
chmod +x Grpc.Tools.$GRPC_VERSION/tools/macosx_x64/grpc_csharp_plugin
21-
COMPILER=Grpc.Tools.$GRPC_VERSION/tools/macosx_x64 ./make.sh
15+
python3 -m pip install --upgrade pip --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
16+
python3 -m pip install grpcio==1.28.1 grpcio-tools==1.13.0 protobuf==3.11.3 six==1.14.0 mypy-protobuf==1.16.0 --progress-bar=off --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
17+
pushd protobuf-definitions
18+
chmod +x Grpc.Tools.$GRPC_VERSION/tools/linux_x64/protoc
19+
chmod +x Grpc.Tools.$GRPC_VERSION/tools/linux_x64/grpc_csharp_plugin
20+
COMPILER=Grpc.Tools.$GRPC_VERSION/tools/linux_x64 ./make.sh
21+
popd
2222
mkdir -p artifacts
2323
touch artifacts/proto.patch
2424
git diff --exit-code -- :/ ":(exclude,top)$CS_PROTO_PATH/*.meta" \
@@ -32,6 +32,8 @@ test_mac_protobuf_generation:
3232
pull_request.target match "release.+") AND
3333
NOT pull_request.draft AND
3434
(pull_request.changes.any match "protobuf-definitions/**" OR
35+
pull_request.changes.any match "com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/**" OR
36+
pull_request.changes.any match "ml-agents-envs/mlagents_envs/communicator_objects/**" OR
3537
pull_request.changes.any match ".yamato/protobuf-generation-test.yml") AND
3638
NOT pull_request.changes.all match "protobuf-definitions/**/*.md"
3739
artifacts:

.yamato/pytest-gpu.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
pytest_gpu:
2+
name: Pytest GPU
3+
agent:
4+
type: Unity::VM::GPU
5+
image: package-ci/ubuntu:stable
6+
flavor: b1.large
7+
commands:
8+
- |
9+
sudo apt-get update && sudo apt-get install -y python3-venv
10+
python3 -m venv venv && source venv/bin/activate
11+
python3 -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
12+
python3 -u -m ml-agents.tests.yamato.setup_venv
13+
python3 -m pip install --progress-bar=off -r test_requirements.txt --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
14+
python3 -m pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
15+
python3 -m pytest -m "not check_environment_trains" --junitxml=junit/test-results.xml -p no:warnings
16+
triggers:
17+
cancel_old_ci: true
18+
recurring:
19+
- branch: master
20+
frequency: daily
21+
artifacts:
22+
logs:
23+
paths:
24+
- "artifacts/standalone_build.txt"

0 commit comments

Comments
 (0)