(hosts []nix.Host)
| 478 | } |
| 479 | |
| 480 | func execHealthCheck(hosts []nix.Host) error { |
| 481 | sshContext := createSSHContext() |
| 482 | |
| 483 | var err error |
| 484 | for _, host := range hosts { |
| 485 | if host.BuildOnly { |
| 486 | fmt.Fprintf(os.Stderr, "Healthchecks are disabled for build-only host: %s\n", host.Name) |
| 487 | continue |
| 488 | } |
| 489 | err = healthchecks.PerformHealthChecks(sshContext, &host, timeout) |
| 490 | } |
| 491 | |
| 492 | if err != nil { |
| 493 | err = errors.New("One or more errors occurred during host healthchecks") |
| 494 | } |
| 495 | |
| 496 | return err |
| 497 | } |
| 498 | |
| 499 | func execUploadSecrets(sshContext *ssh.SSHContext, hosts []nix.Host, phase *string) error { |
| 500 | for _, host := range hosts { |
no test coverage detected