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
[CI] [GHA] Add error about installing Ruby gems to rerunner (#32186)
Andrei Kashchikhinf2ac8ea9497c
diff --git a/.github/scripts/workflow_rerun/errors_to_look_for.json b/.github/scripts/workflow_rerun/errors_to_look_for.jsonindex e809347c0c2..e14b598ebca 100644--- a/.github/scripts/workflow_rerun/errors_to_look_for.json+++ b/.github/scripts/workflow_rerun/errors_to_look_for.json@@ -146,5 +146,9 @@{"error_text": "connect: connection refused","ticket": 171446+ },+ {+ "error_text": "Connection reset by peer - SSL_connect",+ "ticket": 173970}]\ No newline at end of filediff --git a/.github/scripts/workflow_rerun/tests/integration_test.py b/.github/scripts/workflow_rerun/tests/integration_test.pyindex 6e86ff54801..5784a3106c8 100644--- a/.github/scripts/workflow_rerun/tests/integration_test.py+++ b/.github/scripts/workflow_rerun/tests/integration_test.py@@ -7,6 +7,7 @@ Integration testsimport unittestfrom pathlib import Path+from datetime import datetimefrom github import Github, Authimport osimport tempfile@@ -32,6 +33,14 @@ class IntegrationTest(unittest.TestCase):# Even if we use "failure" for status we cannot guarantee logs containing any of the known error# So these tests use the logs of the most recent successfull pipeline+ # Its "created_at" time should be within 60 days - the log retention window+ self.wf_run = None+ for run in self.gh_repo.get_workflow_runs(status='success'):+ if (datetime.now(run.created_at.tzinfo) - run.created_at).days < 45:+ self.wf_run = run+ break+ if not self.wf_run:+ raise RuntimeError('No suitable workflow run found for testing')self.wf_run = self.gh_repo.get_workflow_runs(status='success')[0]print(f'Workflow run for testing: {self.wf_run}', flush=True)diff --git a/.github/scripts/workflow_rerun/tests/log_collector_test.py b/.github/scripts/workflow_rerun/tests/log_collector_test.pyindex 729b1ed0f8f..aef6c093512 100644--- a/.github/scripts/workflow_rerun/tests/log_collector_test.py+++ b/.github/scripts/workflow_rerun/tests/log_collector_test.py@@ -9,6 +9,7 @@ import osimport unittestimport tempfilefrom pathlib import Path+from datetime import datetimefrom github import Github, Auth@@ -26,7 +27,14 @@ class LogCollectorTest(unittest.TestCase):self.github = Github(auth=Auth.Token(token=os.environ.get('GITHUB_TOKEN')))self.gh_repo = self.github.get_repo(full_name_or_id='openvinotoolkit/openvino')# Use the logs of the most recent successfull pipeline- self.wf_run = self.gh_repo.get_workflow_runs(status='success')[0]+ # Its "created_at" time should be within 60 days - the log retention window+ self.wf_run = None+ for run in self.gh_repo.get_workflow_runs(status='success'):+ if (datetime.now(run.created_at.tzinfo) - run.created_at).days < 45:+ self.wf_run = run+ break+ if not self.wf_run:+ raise RuntimeError('No suitable workflow run found for testing')print(f'Workflow run for testing: {self.wf_run}', flush=True)def test_log_collection(self) -> None: