Skip to content

Commit a99f66b

Browse files
authored
chore(ci): add timing information to airgap download in e2e tests (#2153)
1 parent 6cabbaf commit a99f66b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

e2e/airgap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ func maybeDownloadAirgapBundle(versionLabel string, destPath string, licenseID s
8282

8383
func downloadAirgapBundleOnNode(t *testing.T, tc cluster.Cluster, node int, versionLabel string, destPath string, licenseID string) error {
8484
for range 20 {
85+
start := time.Now()
8586
size, err := maybeDownloadAirgapBundleOnNode(tc, node, versionLabel, destPath, licenseID)
8687
if err != nil {
8788
// when we deploy the api to staging it interrupts the download
8889
t.Logf("failed to download airgap bundle for version %s on node %d with error %q, retrying", versionLabel, node, err)
8990
} else {
9091
if size > 1 { // more than a GB
91-
t.Logf("downloaded airgap bundle on node %d to %s (%.1f GB)", node, destPath, size)
92+
t.Logf("downloaded airgap bundle on node %d to %s (%.1f GB) in %s", node, destPath, size, time.Since(start))
9293
return nil
9394
}
9495
t.Logf("downloaded airgap bundle on node %d to %s (%.1f GB), retrying as it is less than 1GB", node, destPath, size)

0 commit comments

Comments
 (0)