Skip to content

fix: aws_batch integ test resources are now uniquely named by test run.#5666

Merged
mollyheamazon merged 1 commit intoaws:masterfrom
davlind-amzn:davlind_qm_test_fix
Mar 25, 2026
Merged

fix: aws_batch integ test resources are now uniquely named by test run.#5666
mollyheamazon merged 1 commit intoaws:masterfrom
davlind-amzn:davlind_qm_test_fix

Conversation

@davlind-amzn
Copy link
Copy Markdown
Collaborator

Description of changes: aws_batch integ test resources are now uniquely named by test run. This is required to prevent overlapping test runtimes (e.g. when multiple pysdk PRs are open) clobbering each other's AWS Batch test resources. Resource creation is also now simplified by eliminating the option to reuse resources between independent test executions (wasn't used prior).

Other changes:

  • Improved exception handling around integ tests, cleaning up resources when an exception is thrown during resource creation or test runtime.
  • Small syntax bug fix in the quota management example notebook.

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

yield resource_manager
except Exception as e:
print(f"Exception thrown while creating or yielding AWS Batch resources: {str(e)}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should raise exception here
add raise

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I intentionally didn't raise here because I want cleanup to still attempt if we catch an exception

@mollyheamazon mollyheamazon merged commit d9b47ef into aws:master Mar 25, 2026
17 of 23 checks passed
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.

2 participants