Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load-test: delete testing data is only needed at end of tests, since each test uses unique resource prefix #686

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

PettitWesley
Copy link
Contributor

Why is this change needed?

Last week I made a change to speed up the tests and fix a timeout that had occurred by starting all tests first, then checking all results. Basically, run all in parallel vs serial.

However, the code currently deletes testing data in between each test runs, which no longer works since they run in parallel now.

When do we need to delete testing data?

There's already a delete_testing_resources phase after all testing runs are completed. That's the right place to delete test data.

The previous code to delete between test runs was entirely unnecessary. Each test run uses a unique log stream in CW or unique S3 key in S3.

Why is this change safe?

The previous code to delete between test runs was entirely unnecessary. Each test run uses a unique log stream in CW or unique S3 key in S3.

How was this change tested?

I used the commit here to check that the python syntax is correct and that the generated task defs are correct: PettitWesley@d5fd7c1

Since we do not have a test pipeline already available, its not possible to run the load tests prior to PR merge.

This change is needed to unblock the 2.31.12 release which multiple customers are waiting on.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ach test uses unique resource prefix

Signed-off-by: Wesley Pettit <[email protected]>
@PettitWesley PettitWesley requested a review from a team as a code owner June 13, 2023 20:22
@PettitWesley PettitWesley changed the title load-test: delete testing data is only needed at end of test, since each test uses unique resource prefix load-test: delete testing data is only needed at end of tests, since each test uses unique resource prefix Jun 13, 2023
def delete_testing_data(session):
# All testing data related to the plugin option will be deleted
if OUTPUT_PLUGIN == 'cloudwatch':
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "delete_testing_resources" only runs once, so its no longer necessary to check the plugin here. The delete happens just once at the end of the cloudwatch tests in the main "delete_testing_resources" routine.

@@ -0,0 +1,2 @@
# no content needed for stdout test
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is just meant for maintainence to explain why this file is empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants