Skip to content

Commit

Permalink
Merge pull request #14 from cockroachdb/skipmerge
Browse files Browse the repository at this point in the history
stress: skip merging when there are no artifacts to merge
  • Loading branch information
rickystewart authored Feb 17, 2022
2 parents 43d99a9 + a3e0ed0 commit 94cf65c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ func run() error {

// Merge sharded artifacts.
for env, mergeProgram := range shardableArtifacts {
if len(filesToMerge[env]) == 0 {
fmt.Printf("stress: skipping merge for artifact %s\n", env)
continue
}
output, err := os.Create(os.Getenv(env))
if err != nil {
return err
Expand Down

0 comments on commit 94cf65c

Please sign in to comment.