Skip to content

Commit

Permalink
[OV] Parallel tests by scope (#2758)
Browse files Browse the repository at this point in the history
### Changes

Add `--dist loadscope` for OV tests.

### Reason for changes

Try to fix sporadically issue `EOFError: Compressed file ended before
the end-of-stream marker was reached` for
tests/openvino/native/quantization/test_sanity.py::test_compression

Possible reason is downloading dataset in several process at the same
time.

Example:
https://github.com/openvinotoolkit/nncf/actions/runs/9610990503/job/26508643899
  • Loading branch information
AlexanderDokuchaev authored Jun 21, 2024
1 parent 6a1e216 commit 306f394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ install-openvino-dev: install-openvino-test install-pre-commit
pip install -r examples/post_training_quantization/openvino/yolov8_quantize_with_accuracy_control/requirements.txt

test-openvino:
ONEDNN_MAX_CPU_ISA=AVX2 pytest ${COVERAGE_ARGS} ${NUM_WORKERS_ARG} -ra tests/openvino $(DATA_ARG) --junitxml ${JUNITXML_PATH}
ONEDNN_MAX_CPU_ISA=AVX2 pytest ${COVERAGE_ARGS} ${NUM_WORKERS_ARG} -ra tests/openvino $(DATA_ARG) \
--junitxml ${JUNITXML_PATH} --dist loadscope

test-install-openvino:
pytest tests/cross_fw/install -s \
Expand Down

0 comments on commit 306f394

Please sign in to comment.