OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA] Revert diagnostic steps (#40109)
Aleksandr Voronb3420fdd53d4
diff --git a/.github/workflows/job_tensorflow_layer_tests.yml b/.github/workflows/job_tensorflow_layer_tests.ymlindex 7d3da04bcb6..aebe2cc6832 100644--- a/.github/workflows/job_tensorflow_layer_tests.yml+++ b/.github/workflows/job_tensorflow_layer_tests.yml@@ -117,80 +117,6 @@ jobs:# tensorflow test requirementspython3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_tensorflow- # Diagnostics for "Fatal Python error: Bus error" (CVS-192737)- - name: Check TensorFlow installation (macOS)- if: ${{ runner.os == 'macOS' && fromJSON(inputs.affected-components).TF_FE.test }}- continue-on-error: true- run: |- python3 -m pip check- tf_dir=$(python3 -c "import importlib.util as u; print(u.find_spec('tensorflow').submodule_search_locations[0])")- find "$tf_dir" -maxdepth 3 \( -name '_pywrap_cpu_feature_guard*.so' -o -name 'libtensorflow_framework*' \) -exec ls -l {} +- python3 -c "import tensorflow as tf; print(tf.__version__)"-- # Diagnostics for "Fatal Python error: Bus error" (CVS-192737)- # dyld coalesces exported weak symbols across all loaded images, so Protobuf symbols- # exported by OpenVINO can be bound to by TensorFlow's own (different version) Protobuf.- - name: Check exported Protobuf symbols of OpenVINO libraries (macOS)- if: ${{ runner.os == 'macOS' && fromJSON(inputs.affected-components).TF_FE.test }}- continue-on-error: true- run: |- libs_dir=$(python3 -c "import openvino, os; print(os.path.join(os.path.dirname(openvino.__file__), 'libs'))")- for lib in "$libs_dir"/*.dylib; do- count=$(nm -gUj "$lib" | grep -c -E '^__ZN(6google8protobuf|4absl)' || true)- echo "$count exported google::protobuf/absl symbols: $(basename "$lib")"- if [ "$count" -gt 0 ]; then- echo "::warning::$(basename "$lib") exports $count google::protobuf/absl symbols"- nm -gUj "$lib" | grep -E '^__ZN(6google8protobuf|4absl)' | head -n 20- fi- done-- - name: Check TensorFlow import order (macOS)- id: tensorflow_import_order- if: ${{ runner.os == 'macOS' && fromJSON(inputs.affected-components).TF_FE.test }}- continue-on-error: true- timeout-minutes: 5- run: |- python_executable=$(python3 -c "import sys; print(sys.executable)")- failed=0- for probe in \- 'import openvino; import tensorflow' \- 'import openvino; import openvino_tokenizers; import tensorflow' \- 'import tensorflow; import openvino; import openvino_tokenizers'; do- echo "::group::Import order: $probe"- if "$python_executable" -X faulthandler -u -c "$probe; print('Imports succeeded', flush=True)"; then- echo "Import probe passed."- else- status=$?- failed=1- echo "::warning::Import probe failed with exit code $status: $probe"- fi- echo "::endgroup::"- done- exit "$failed"-- - name: Check TensorFlow Add tests without and with xdist (macOS)- if: ${{ runner.os == 'macOS' && fromJSON(inputs.affected-components).TF_FE.test && steps.tensorflow_import_order.outcome == 'success' }}- continue-on-error: true- timeout-minutes: 5- run: |- failed=0- for workers in 0 1; do- echo "::group::TensorFlow Add tests: -n $workers"- # --collect-only disables xdist, so run this small test file instead.- if python3 -X faulthandler -m pytest "$INSTALL_TEST_DIR/layer_tests/tensorflow_tests/test_tf_Add.py" -v -x -n "$workers" --max-worker-restart=0 -m precommit; then- echo "Add-test probe passed."- else- status=$?- failed=1- echo "::warning::Add-test probe with -n $workers failed with exit code $status."- fi- echo "::endgroup::"- done- exit "$failed"- env:- TEST_DEVICE: CPU- TEST_PRECISION: FP16-- name: TensorFlow 1 Layer Tests - TF FEif: ${{ fromJSON(inputs.affected-components).TF_FE.test }}run: |@@ -206,20 +132,6 @@ jobs:env:TEST_DEVICE: CPUTEST_PRECISION:-- # Diagnostics for "Fatal Python error: Bus error" (CVS-192737)- - name: Print macOS crash reports- if: ${{ failure() && runner.os == 'macOS' }}- continue-on-error: true- run: |- # ReportCrash writes reports asynchronously- sleep 5- find ~/Library/Logs/DiagnosticReports /Library/Logs/DiagnosticReports \( -name '*.ips' -o -name '*.crash' \) -mmin -30 2>/dev/null | xargs ls -t 2>/dev/null | sed -n '1,3p' | while read -r report; do- echo "::group::$report"- cat "$report"- echo "::endgroup::"- done-- name: Upload Test Resultsuses: ababushk/upload-artifact@ebc7d74ace101c08868aed05dba2aaf274b9a2c7 # mainif: ${{ !cancelled() }}