Skip to content

Commit

Permalink
Ensure reproducible droplets
Browse files Browse the repository at this point in the history
e2e tests need to store the file mode when zipping the source

This stops the latest iteration of the BLOB_UNKNOWN flake on GKE / GAR

Co-authored-by: Giuseppe Capizzi <[email protected]>
  • Loading branch information
Kieron Browne and gcapizzi committed Jul 6, 2023
1 parent 086c52f commit 39f1f20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,12 @@ func zipAsset(src string) string {
return err
}

f, err := w.Create(rel)
fh := &zip.FileHeader{
Name: rel,
}
fh.SetMode(info.Mode())

f, err := w.CreateHeader(fh)
if err != nil {
return err
}
Expand Down

0 comments on commit 39f1f20

Please sign in to comment.