Skip to content

Commit c1d9c40

Browse files
committed
support nothing to upload
1 parent 1432261 commit c1d9c40

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/scripts/upload_tests_results.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,16 @@ def main():
241241
'test_name': row['test_name'],
242242
})
243243
print(f'upserting runs: {len(prepared_for_update_rows)} rows')
244-
245-
with ydb.SessionPool(driver) as pool:
246-
create_tables(pool, test_table_name)
247-
bulk_upsert(driver.table_client, full_path,
244+
if prepared_for_update_rows:
245+
with ydb.SessionPool(driver) as pool:
246+
create_tables(pool, test_table_name)
247+
bulk_upsert(driver.table_client, full_path,
248248
prepared_for_update_rows)
249+
print('tests updated')
250+
else:
251+
print('nothing to upsert')
249252

250-
print('tests updated')
253+
251254

252255

253256
if __name__ == "__main__":

0 commit comments

Comments
 (0)