mirror of https://github.com/pulumi/pulumi.git
5562de4ced
11069: ci: Implement smoke tests for pkg/cmd, fix examples smoke tests r=AaronFriel a=AaronFriel Mitigate test timeouts on Windows ([recent job that timed out](https://github.com/pulumi/pulumi/actions/runs/3276024063)) and long test delays due to non-parallelizable tests on macOS. For context: integration tests run on Linux and run all tests, the smoke tests are a subset of tests that run on macOS & Windows which set the build tag "smoke", causing some test files to be skipped. These tests tend to come in pairs of files, `_test.go` and `_smoke_test.go`. This PR fixes the `examples_test.go` which had the build flags reversed, and moves one test which checks stdout behavior to the smoke tests. This PR also adds smoke test files for `pkg/cmd` to move some tests onto the Linux runners only, which we run with greater parallelism. This removes some of the slower and non-parallelizable tests from the Windows runner, which was one of the slowest jobs: ``` TestCreatingPolicyPackWithPromptedName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 1m27.23s pass TestCreatingPolicyPackWithArgsSpecifiedName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 1m21.08s pass TestCreatingStackWithArgsSpecifiedName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 29.15s pass TestCreatingProjectWithPromptedName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 25.74s pass TestCreatingProjectWithArgsSpecifiedName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 25.4s pass TestCreatingStackWithArgsSpecifiedOrgName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 25.[33](https://github.com/pulumi/pulumi/actions/runs/3275822919/jobs/5391232488#step:39:34)s pass TestCreatingProjectWithPulumiBackendURL github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 25.33s pass TestCreatingStackWithArgsSpecifiedFullNameSucceeds github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 25.06s pass TestCreatingStackWithPromptedOrgName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 25.06s pass TestCreatingStackWithPromptedName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 24.88s pass TestCreatingProjectWithDefaultName github.com/pulumi/pulumi/pkg/v3/cmd/pulumi 24.76s pass ``` Co-authored-by: Aaron Friel <mayreply@aaronfriel.com> |
||
---|---|---|
.. | ||
benchmarks/go-alias-norm | ||
examples | ||
integration | ||
testprovider | ||
.gitignore | ||
README.md | ||
about_test.go | ||
config_test.go | ||
go.mod | ||
go.sum | ||
history_test.go | ||
login_test.go | ||
main_test.go | ||
stack_test.go |
README.md
Integration Tests
This module provides integration tests for the Pulumi CLI.
The tests can be run via:
make test_all