Skip to content

integ-test: skip LMI test and improve test quality#8554

Merged
vicheey merged 5 commits intodevelopfrom
integ-fix
Jan 12, 2026
Merged

integ-test: skip LMI test and improve test quality#8554
vicheey merged 5 commits intodevelopfrom
integ-fix

Conversation

@roger-zhangg
Copy link
Copy Markdown
Member

Which issue(s) does this change fix?

Why is this change necessary?

The integration tests were generating numerous ResourceWarning messages about unclosed files and sockets:

  • sys:1: ResourceWarning: unclosed <socket.socket ...>
  • sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper ...>
  • subprocess X is still running warnings

Deprecation warning on python3.9

LMI tests are not correctly skipped

How does it address the issue?

Close process/handles on teardown
update to python3.11 for testing
LMI skipped at class level

What side effects does this change have?

Mandatory Checklist

PRs will only be reviewed after checklist is complete

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@roger-zhangg roger-zhangg requested a review from a team as a code owner January 9, 2026 02:01
@roger-zhangg
Copy link
Copy Markdown
Member Author

roger-zhangg commented Jan 9, 2026


self.assertTrue(lmi_subnet_id, "LMI_SUBNET_ID environment variable must be set")
self.assertTrue(lmi_security_group_id, "LMI_SECURITY_GROUP_ID environment variable must be set")
self.assertTrue(lmi_operator_role_arn, "LMI_OPERATOR_ROLE_ARN environment variable must be set")
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.

why are we deleting this?

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.

This was added before SAM able to create operator role automatically. We can now remove this role since we will test automatic role creation.

@vicheey vicheey added this pull request to the merge queue Jan 12, 2026
Merged via the queue into develop with commit dc03b1c Jan 12, 2026
42 checks passed
@vicheey vicheey deleted the integ-fix branch January 13, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants