pulumi/pkg/testing/integration
Julien c5842613a0
Add simple performance gate to integration tests (#17364)
Add a performance gate for PRs and merges to the master branch. The
performance tests can be run locally using `make test_performance`.

This PR adds an initial batch of performance tests, all using Python:

* TestPerfEmptyUpdate: an empty Python program that does nothibg
* TestPerfManyComponentUpdate: a Python program that creates 100
resources
* TestPerfParentChainUpdate: a Python program that creates 100
resources, parented in a chain

More tests for other scenarios and languages can be added to
`tests/performance/performance_test.go`.

The tests are run in a separate GitHub actions workflow so that we can
use binaries that are built without coverage instrumentation or race
detection, which could otherwise have an impact on performance. This
also ensures that we use the same setup in PRs and in the merge queue.

The thresholds used to determine if a test has passed or failed are
highly dependent on the GitHub Actions Runners. Initial thresholds have
been set by running the tests multiple times, taking the slowest run,
and adding 10% (rounded to 100ms). These thresholds are not perfect and
may need to be adjusted over time.

### TestPerfEmptyUpdate
5.06
5.11
4.82
4.95
5.74

### TestPerfManyComponentUpdate
16.7
17.1
16.62
16.28
16.29

### TestPerfParentChainUpdate
17.58
17.58
17.46
17.23
17.34

Fixes https://github.com/pulumi/pulumi/issues/15347
2024-11-04 21:26:27 +00:00
..
command.go upgrade to latest version of golangci-lint (#15977) 2024-04-19 06:20:33 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
program.go Add simple performance gate to integration tests (#17364) 2024-11-04 21:26:27 +00:00
program_test.go Attempt to run Windows tests on small runners (#15070) 2024-01-05 21:44:04 +00:00
pulumi.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
s3reporter.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00