[GHA] Test command length excess (#21502)

* debug

* enabled pre-commit

* Disabled shell on Win

* remove shell length

* remove debug print
This commit is contained in:
Mikhail Ryzhov authored and GitHub committed 2023-12-07 18:01:19 +04:00
1 parent dd8f4f3661
commit aa2dcb1f46
2 files changed
+11 -14

No files matched your search

+10 -10
View File
@@ -1,14 +1,14 @@
name: Windows (VS 2019, Python 3.11)
on:
workflow_dispatch:
# pull_request:
# paths-ignore:
# - '**/docs/**'
# - 'docs/**'
# - '**/**.md'
# - '**.md'
# - '**/layer_tests_summary/**'
# - '**/conformance/**'
pull_request:
paths-ignore:
- '**/docs/**'
- 'docs/**'
- '**/**.md'
- '**.md'
- '**/layer_tests_summary/**'
- '**/conformance/**'
push:
paths-ignore:
- '**/docs/**'
@@ -437,7 +437,7 @@ jobs:
:: Used for 'test_utils' installed in '<test_package>\python\openvino\test_utils'
set PYTHONPATH=${{ env.INSTALL_TEST_DIR }}\python\openvino\test_utils;${{ env.INSTALL_TEST_DIR }}\python;%PYTHONPATH%
python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/mo_python_api_tests --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-test_mo_convert.xml
env:
TEST_DEVICE: CPU
@@ -450,7 +450,7 @@ jobs:
:: Used for 'test_utils' installed in '<test_package>\python\openvino\test_utils'
set PYTHONPATH=${{ env.INSTALL_TEST_DIR }}\python\openvino\test_utils;${{ env.INSTALL_TEST_DIR }}\python;%PYTHONPATH%
:: Skip test ticket: 126319
python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/ovc_python_api_tests -k "not test_ovc_tool_non_existng_output_dir" --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-test_ovc_convert.xml
env:
@@ -219,7 +219,7 @@ class TaskManager:
self._process_list.append(
Popen(
args,
shell=constants.IS_WIN,
shell=False,
stdout=log_file,
stderr=log_file,
)
@@ -527,9 +527,6 @@ class TestParallelRunner:
def __prepare_smart_filters(self, proved_test_dict: dict):
def_length = len(self._command) + len(" --gtest_filter=")
if constants.IS_WIN:
# subprocess add cmd.exe to the command line on Windows if shell=True
def_length += len(f'{os.environ.get("COMSPEC", "cmd.exe")} /C ')
longest_device = ""
for device in self._available_devices: