Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pkg/testing/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
// prepare
prepareCtx, prepareCancel := context.WithTimeout(ctx, 10*time.Minute)
defer prepareCancel()
sshAuth, repoArchive, err := r.prepare(prepareCtx)

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, default)

other declaration of repoArchive

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, default)

other declaration of sshAuth

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

other declaration of sshAuth

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

other declaration of repoArchive

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

other declaration of sshAuth

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, define)

other declaration of repoArchive

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, define)

other declaration of sshAuth

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, default)

other declaration of repoArchive

Check failure on line 136 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, default)

other declaration of sshAuth
if err != nil {
return Result{}, err
}
Expand All @@ -144,6 +144,19 @@
return Result{}, err
}

// VM provisioners need an SSH key in place before Provision runs, since
// they use it to seed the instances they create.
var sshAuth ssh.AuthMethod

Check failure on line 149 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, default)

sshAuth redeclared in this block

Check failure on line 149 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

sshAuth redeclared in this block

Check failure on line 149 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

sshAuth redeclared in this block

Check failure on line 149 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, define)

sshAuth redeclared in this block

Check failure on line 149 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, default)

sshAuth redeclared in this block
var repoArchive string

Check failure on line 150 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, default)

repoArchive redeclared in this block

Check failure on line 150 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

repoArchive redeclared in this block

Check failure on line 150 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

repoArchive redeclared in this block

Check failure on line 150 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, define)

repoArchive redeclared in this block

Check failure on line 150 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, default)

repoArchive redeclared in this block
if r.ip.Type() == common.ProvisionerTypeVM {
prepareCtx, prepareCancel := context.WithTimeout(ctx, 10*time.Minute)
sshAuth, repoArchive, err = r.prepare(prepareCtx, cacheDir)

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, default)

too many arguments in call to r.prepare

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, default)

undefined: cacheDir

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

too many arguments in call to r.prepare

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, define)

undefined: cacheDir

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, define)

too many arguments in call to r.prepare

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest, define)

undefined: cacheDir

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, default)

too many arguments in call to r.prepare

Check failure on line 153 in pkg/testing/runner/runner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest, default)

undefined: cacheDir
prepareCancel()
if err != nil {
return Result{}, err
}
}

// only send to the provisioner the batches that need to be created
var instances []StateInstance
var batches []common.OSBatch
Expand Down
Loading