pulumi/tests
bors[bot] fc27707511
Merge #11963
11963: chore: Update gocloud.dev, removing azure-sdk-for-go dep r=AaronFriel a=AaronFriel

Having previously made a pull request removing azure-sdk-for-go as a dependency of gocloud.dev, this PR updates the CLI to remove the transitive dependency.

Removing the dependency on azure-sdk-for-go reduces module cache weight by 492MiB. That's the apparent size of `~/go/pkg/mod/github.com/!azure` according to a disk usage utility.

This makes the new largest targets for reducing size:

```
258 MiB google.golang.org/api@v0.103.0
        - required by
250 MiB github.com/aws/aws-sdk-go@v1.44.151
        - required by pulumi/pkg/operations, an experimental function, not used
 83 MiB github.com/pierrec/lz4@v2.6.1+incompatible
        - required by gocloud.dev/secrets/hashivault
 25 MiB github.com/pulumi/pulumi-java
...
```

Returns rapidly diminish with most packages weighing under 1MiB after these.

Follow up work
==============

I've made an upstream issue with gocloud.dev to migrate off aws-sdk-go@v1:
- https://github.com/google/go-cloud/issues/3220

Moving storage backends to plugins would allow us to remove this and many other dependencies from the Pulumi CLI repository and remove conflicts between the Pulumi engine and providers. See:
- https://github.com/pulumi/pulumi-vault/issues/197


Co-authored-by: Aaron Friel <mayreply@aaronfriel.com>
2023-01-24 15:32:53 +00:00
..
benchmarks/go-alias-norm ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
examples [sdk/nodejs] - Add optional / backwards compatible generic types to dynamic.ResourceProvider. 2023-01-17 18:56:43 +01:00
integration Use plugin link and shimless for testprovider 2023-01-19 12:41:19 +00:00
testprovider [sdk/{go,nodejs,python}] Fix DeletedWith resource option 2023-01-15 16:30:26 -08:00
.gitignore ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
README.md updated readme 2023-01-03 08:30:05 -08:00
about_test.go test: fix regex used to test Go version output in about command. (#10499) 2022-08-29 11:53:03 -07:00
config_test.go ci: adjust test based on new yaml library 2022-12-10 14:26:14 -08:00
go.mod chore: Update gocloud.dev, removing azure-sdk-for-go dep 2023-01-24 00:52:43 -08:00
go.sum chore: Update gocloud.dev, removing azure-sdk-for-go dep 2023-01-24 00:52:43 -08:00
history_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
login_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
main_test.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
remote_test.go [cli] Test remote operations 2022-11-09 05:29:20 -08:00
roundtrip_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
stack_test.go Repair tests expecting nil slices 2023-01-11 21:53:04 -08:00

README.md

Integration Tests

This module provides integration tests for the Pulumi CLI.

The tests can be run via:

make test_all

Usage of Go build tags

In order to speed up integration tests in GitHub actions, Go build tags are used to conditionally compile the desired test cases.

// integration_nodejs_test.go
//go:build (nodejs || all) && !smoke

// integration_nodejs_smoke_test.go
//go:build nodejs || all