Skip to content

Commit

Permalink
[e2e] move remote to command in gpu test
Browse files Browse the repository at this point in the history
  • Loading branch information
pducolin committed Dec 27, 2024
1 parent 5557cba commit 09a972e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/new-e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ require (
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
github.com/pulumi/esc v0.10.0 // indirect
github.com/pulumi/pulumi-command/sdk v1.0.1
github.com/pulumi/pulumi-command/sdk v1.0.1 // indirect
github.com/pulumi/pulumi-docker/sdk/v4 v4.5.7 // indirect
github.com/pulumi/pulumi-libvirt/sdk v0.5.3 // indirect
github.com/pulumi/pulumi-random/sdk/v4 v4.16.7 // indirect
Expand Down
6 changes: 2 additions & 4 deletions test/new-e2e/tests/gpu/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

"github.com/pulumi/pulumi-command/sdk/go/command/remote"

"github.com/DataDog/test-infra-definitions/common/utils"
"github.com/DataDog/test-infra-definitions/components/command"
"github.com/DataDog/test-infra-definitions/components/datadog/agent"
Expand Down Expand Up @@ -154,7 +152,7 @@ func gpuInstanceProvisioner(params *provisionerParams) provisioners.Provisioner
return fmt.Errorf("validateDockerCuda failed: %w", err)
}
// incident-33572: log the output of the CUDA validation command
pulumi.All(dockerCudaValidateCmd.Stdout, dockerCudaValidateCmd.Stderr).ApplyT(func(outputs []string) error {
pulumi.All(dockerCudaValidateCmd.StdoutOutput(), dockerCudaValidateCmd.StderrOutput()).ApplyT(func(outputs []string) error {
stdout := outputs[0]
stderr := outputs[1]
err := ctx.Log.Info(fmt.Sprintf("Docker CUDA validation stdout: %s", stdout), nil)
Expand Down Expand Up @@ -240,7 +238,7 @@ func downloadDockerImages(e aws.Environment, vm *componentsremote.Host, images [
return cmds, nil
}

func validateDockerCuda(e aws.Environment, vm *componentsremote.Host, dependsOn ...pulumi.Resource) (*remote.Command, error) {
func validateDockerCuda(e aws.Environment, vm *componentsremote.Host, dependsOn ...pulumi.Resource) (command.Command, error) {
return vm.OS.Runner().Command(
e.CommonNamer().ResourceName("docker-cuda-validate"),
&command.Args{
Expand Down

0 comments on commit 09a972e

Please sign in to comment.