ci_results_archiver: shard BQ uploads
Change-Id: Ic00cb147b499f955e450a0c16935b8e41e9ba25b
Bug: b:233065164
diff --git a/.gitignore b/.gitignore
index 41e7fcf..083d206 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,6 @@
/.coverage
/chromite/*
/cmd/*
+
+chromite/
+.idea/
\ No newline at end of file
diff --git a/ci_results_archiver/bigquery_dumper.py b/ci_results_archiver/bigquery_dumper.py
index 6520612..d0e215d 100644
--- a/ci_results_archiver/bigquery_dumper.py
+++ b/ci_results_archiver/bigquery_dumper.py
@@ -32,6 +32,6 @@
if not table_suffixes:
return
for table_suffix in sorted(table_suffixes):
- destination_url = 'gs://%s/archives/%s%s.json.gz' % (
+ destination_url = 'gs://%s/archives/%s%s-*.json.gz' % (
self._bucket_name, self._table_spec.table_prefix, table_suffix)
self._bigquery_tables.ExportToStorage(table_suffix, destination_url)