mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
tools/bigquery: Skip results upload if there are no results.
(Diffbased) PiperOrigin-RevId: 703297420
This commit is contained in:
committed by
gVisor bot
parent
b92307b4e6
commit
5ca21867d9
@@ -330,6 +330,9 @@ func NewSuite(name string, official bool) *Suite {
|
||||
|
||||
// SendBenchmarks sends the slice of benchmarks to the BigQuery dataset/table.
|
||||
func SendBenchmarks(ctx context.Context, suite *Suite, projectID, datasetID, tableID string, opts []option.ClientOption) error {
|
||||
if len(suite.Benchmarks) == 0 {
|
||||
return nil // Nothing to upload.
|
||||
}
|
||||
client, err := bq.NewClient(ctx, projectID, opts...)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to initialize client on project: %s: %v", projectID, err)
|
||||
|
||||
Reference in New Issue
Block a user