pulumi/pkg/resource/deploy/deploytest
Will Jones f0f7f74f17
Stream standard output and error when installing dependencies (#18404)
The `InstallDependencies` method of the language host gRPC interface
supports streaming back data for the standard output and error of the
processes being executed by the language host (e.g. `npm install` for
NodeJS). Presently however, we do not expose these streams in the
higher-level `LanguageHost` Go interface. This commit changes that,
having `LanguageHost`'s `InstallDependencies` method return a pair of
`io.Reader`s for standard output and error respectively, as well as a
channel that will be closed when the operation completes. This
transforms `InstallDependencies` to an asynchronous call and so call
sites are modified appropriately to drain the readers and block on the
`done` channel's closure. With this change, we can modify the language
conformance test server to capture standard output and error when
dependency installation goes wrong, making it easier to debug
conformance tests in the process.

Fixes #13941
2025-02-04 10:31:23 +00:00
..
analyzer.go Refactor: move plugin kind to apitype (#15946) 2024-04-25 17:30:30 +00:00
analyzer_test.go Refactor: move plugin kind to apitype (#15946) 2024-04-25 17:30:30 +00:00
backendclient.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
callbacks.go Engine support for remote transforms (#15290) 2024-02-21 16:30:46 +00:00
languageruntime.go Stream standard output and error when installing dependencies (#18404) 2025-02-04 10:31:23 +00:00
languageruntime_test.go Stream standard output and error when installing dependencies (#18404) 2025-02-04 10:31:23 +00:00
pluginhost.go Add GetRequiredPackages to the language host (#17894) 2024-12-02 20:24:23 +00:00
pluginhost_test.go Add GetRequiredPackages to the language host (#17894) 2024-12-02 20:24:23 +00:00
provider.go Add `Handshake` to the provider protocol (#17819) 2024-11-26 17:35:47 +00:00
provider_test.go Bump gRPC dependencies and migrate `grpc.Dial` (#17701) 2024-11-06 18:36:10 +00:00
resourcemonitor.go Bump gRPC dependencies and migrate `grpc.Dial` (#17701) 2024-11-06 18:36:10 +00:00
resourcemonitor_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
sink.go [ci] `pkg/resource/deploy` coverage (#14831) 2023-12-19 16:14:40 +00:00