hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.18k forks source link

tests/provider: Add concurrent sweepers #15334

Closed YakDriver closed 7 months ago

YakDriver commented 4 years ago

Community Note

Description

When running a test suite, sweepers run before to make sure the environment is clean. However, these sweepers can take a very long time to run. Adding concurrency, especially to long-running sweepers, is likely to improve sweeper performance.

Documentation

This is the documentation for writing and/or updating sweepers in the tests. Also, refer to the PRs below for examples.

Top 10 Longest Tests

6 Sweepers Running the Longest, April 7, 2021

Affected Resources

References

YakDriver commented 4 years ago

To sweep an individual resource on GovCloud:

SWEEP=us-gov-west-1 SWEEPARGS=-sweep-run=aws_db_instance make sweep
Tensho commented 3 years ago

@YakDriver I wonder, doesn't sweepers runner call dependencies sweep function in parallel? Just a note, bothaws_workspaces_directory and aws_workspaces_workspace resources take a significant amount of time to be destroyed even for one instance case.

YakDriver commented 3 years ago

@YakDriver I wonder, doesn't sweepers runner call dependencies sweep function in parallel?

Unfortunately, not currently.

github-actions[bot] commented 8 months ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] commented 6 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.