Skip to content

Commit 07e62ad

Browse files
author
Chris Elion
authored
cherrypick yamato fixes to release_5_branch (#4290)
1 parent 9f41ae4 commit 07e62ad

8 files changed

+22
-22
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Run_Mac_Perfomance_Tests{{ editor.version }}:
1212
variables:
1313
UNITY_VERSION: {{ editor.version }}
1414
commands:
15-
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple
15+
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1616
- unity-downloader-cli -u {{ editor.version }} -c editor --wait --fast
1717
- curl -s https://artifactory.internal.unity3d.com/core-automation/tools/utr-standalone/utr --output utr
1818
- chmod +x ./utr

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ test_{{ package.name }}_{{ platform.name }}_trunk:
104104
image: {{ platform.image }}
105105
flavor: {{ platform.flavor}}
106106
commands:
107-
- python -m pip install unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple
107+
- python -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
108108
- unity-downloader-cli -u trunk -c editor --wait --fast
109109
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
110110
- upm-ci project test -u {{ editor.version }} --project-path Project --package-filter {{ package.name }} {{ editor.coverageOptions }}

.yamato/gym-interface-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_gym_interface_{{ editor.version }}:
1111
variables:
1212
UNITY_VERSION: {{ editor.version }}
1313
commands:
14-
- pip install pyyaml
14+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1515
- python -u -m ml-agents.tests.yamato.setup_venv
1616
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_gym.py --env=artifacts/testPlayer-Basic
1717
dependencies:
@@ -21,12 +21,12 @@ test_gym_interface_{{ editor.version }}:
2121
expression: |
2222
(pull_request.target eq "master" OR
2323
pull_request.target match "release.+") AND
24-
NOT pull_request.draft AND
25-
(pull_request.changes.any match "com.unity.ml-agents/**" OR
26-
pull_request.changes.any match "Project/**" OR
27-
pull_request.changes.any match "ml-agents/**" OR
28-
pull_request.changes.any match "ml-agents-envs/**" OR
29-
pull_request.changes.any match "gym-unity/**" OR
24+
NOT pull_request.draft AND
25+
(pull_request.changes.any match "com.unity.ml-agents/**" OR
26+
pull_request.changes.any match "Project/**" OR
27+
pull_request.changes.any match "ml-agents/**" OR
28+
pull_request.changes.any match "ml-agents-envs/**" OR
29+
pull_request.changes.any match "gym-unity/**" OR
3030
pull_request.changes.any match ".yamato/gym-interface-test.yml") AND
3131
NOT pull_request.changes.all match "**/*.md"
3232
{% endfor %}

.yamato/protobuf-generation-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ test_mac_protobuf_generation:
1313
nuget install Grpc.Tools -Version $GRPC_VERSION -OutputDirectory protobuf-definitions/
1414
python3 -m venv venv
1515
. venv/bin/activate
16-
pip install --upgrade pip
17-
pip install grpcio-tools==1.13.0 --progress-bar=off
18-
pip install mypy-protobuf==1.16.0 --progress-bar=off
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
1918
cd protobuf-definitions
2019
chmod +x Grpc.Tools.$GRPC_VERSION/tools/macosx_x64/protoc
2120
chmod +x Grpc.Tools.$GRPC_VERSION/tools/macosx_x64/grpc_csharp_plugin

.yamato/python-ll-api-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ test_mac_ll_api_{{ editor.version }}:
1111
variables:
1212
UNITY_VERSION: {{ editor.version }}
1313
commands:
14-
- pip install pyyaml
14+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1515
- python -u -m ml-agents.tests.yamato.setup_venv
16-
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py
16+
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py
1717
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-Basic
1818
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-WallJump
1919
- ./venv/bin/python ml-agents/tests/yamato/scripts/run_llapi.py --env=artifacts/testPlayer-Bouncer
@@ -24,11 +24,11 @@ test_mac_ll_api_{{ editor.version }}:
2424
expression: |
2525
(pull_request.target eq "master" OR
2626
pull_request.target match "release.+") AND
27-
NOT pull_request.draft AND
28-
(pull_request.changes.any match "com.unity.ml-agents/**" OR
29-
pull_request.changes.any match "Project/**" OR
30-
pull_request.changes.any match "ml-agents/**" OR
31-
pull_request.changes.any match "ml-agents-envs/**" OR
27+
NOT pull_request.draft AND
28+
(pull_request.changes.any match "com.unity.ml-agents/**" OR
29+
pull_request.changes.any match "Project/**" OR
30+
pull_request.changes.any match "ml-agents/**" OR
31+
pull_request.changes.any match "ml-agents-envs/**" OR
3232
pull_request.changes.any match ".yamato/python-ll-api-test.yml") AND
3333
NOT pull_request.changes.all match "**/*.md"
3434
{% endfor %}

.yamato/standalone-build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_mac_standalone_{{ editor.version }}:
1212
variables:
1313
UNITY_VERSION: {{ editor.version }}
1414
commands:
15-
- pip install pyyaml
15+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1616
- python -u -m ml-agents.tests.yamato.standalone_build_tests
1717
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Basic/Scenes/Basic.unity
1818
- python -u -m ml-agents.tests.yamato.standalone_build_tests --scene=Assets/ML-Agents/Examples/Bouncer/Scenes/Bouncer.unity

.yamato/training-int-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_mac_training_int_{{ editor.version }}:
1212
variables:
1313
UNITY_VERSION: {{ editor.version }}
1414
commands:
15-
- pip install pyyaml
15+
- pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
1616
- python -u -m ml-agents.tests.yamato.training_int_tests
1717
# Backwards-compatibility tests.
1818
# If we make a breaking change to the communication protocol, these will need

ml-agents/tests/yamato/yamato_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ def init_venv(
136136
if extra_packages:
137137
pip_commands += extra_packages
138138
for cmd in pip_commands:
139+
pip_index_url = "--index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple"
139140
subprocess.check_call(
140-
f"source {venv_path}/bin/activate; python -m pip install -q {cmd}",
141+
f"source {venv_path}/bin/activate; python -m pip install -q {cmd} {pip_index_url}",
141142
shell=True,
142143
)
143144
return venv_path

0 commit comments

Comments
 (0)