Skip to content

Commit c3ff64d

Browse files
authored
ci: put build results to cache for PR checks and fix log extraction in the transform-ya-junit script (#561)
* skip non existing files * ci: put build results to cache on PR builds
1 parent 6c56d36 commit c3ff64d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/scripts/tests/transform-ya-junit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_logs(self, cls, name):
101101
def filter_empty_logs(logs):
102102
result = {}
103103
for k, v in logs.items():
104-
if os.stat(v).st_size == 0:
104+
if not os.path.isfile(v) or os.stat(v).st_size == 0:
105105
continue
106106
result[k] = v
107107
return result

.github/workflows/pr_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ jobs:
122122
test_type: "unittest,py3test,py2test,pytest"
123123
test_threads: 52
124124
runner_label: auto-provisioned
125-
put_build_results_to_cache: false
125+
put_build_results_to_cache: true
126126
secrets: inherit

0 commit comments

Comments
 (0)