KJlaccHoeUM9l commented on a change in pull request #9212: URL: https://github.com/apache/tvm/pull/9212#discussion_r729738683
########## File path: tests/python/contrib/test_rpc_server_device.py ########## @@ -0,0 +1,457 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +"""iOS RPC Server tests.""" +# pylint: disable=invalid-name, no-value-for-parameter, missing-function-docstring, import-error +import multiprocessing +import pytest +import numpy as np + +import tvm.testing +import tvm.relay.testing +from tvm import te +from tvm import rpc +from tvm import relay, auto_scheduler +from tvm.contrib import utils, xcode, graph_executor +from tvm.autotvm.measure import request_remote +from tvm.auto_scheduler.measure_record import load_records +from tvm.auto_scheduler.measure import MeasureErrorNo +from tvm.auto_scheduler.utils import call_func_with_timeout +from tvm.contrib.popen_pool import PopenWorker, StatusKind +from tvm.rpc import tracker, proxy, server_ios_launcher + + +HOST_URL = "0.0.0.0" +HOST_PORT = 9190 Review comment: Yes, that's exactly what has been done. This port value is used as the starting port value from the range that is used for the server, tracker and proxy. Further, the port on which the server was started is used for work. ########## File path: .github/workflows/main.yml ########## @@ -81,3 +98,12 @@ jobs: shell: bash -l {0} run: >- python -m pytest -v tests/python/all-platform-minimal-test + - name: Test iOS RPC@MacOS + if: startsWith(matrix.os, 'macOS') + shell: bash -l {0} + run: >- + python -m pip install tornado psutil cloudpickle && + export PYTHONPATH=tests/python/contrib:${PYTHONPATH} && + export BUNDLE_ID=org.apache.tvmrpc && + export BUNDLE_PATH=build-ios-simulator/apps/ios_rpc/ios_rpc/src/ios_rpc-build/Release-iphonesimulator/tvmrpc.app && + python -m pytest -vrP tests/python/contrib/test_rpc_server_device.py Review comment: This parameter was used to display output logs from those tests that passed. For CI, you can remove this flag, it was convenient for development. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
