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

Fix SubtypesInstanceManager not loading subtypes lazily #10728

Merged
merged 1 commit into from Apr 29, 2024

Conversation

viren-nadkarni
Copy link
Member

@viren-nadkarni viren-nadkarni commented Apr 26, 2024

Background

SubtypesInstanceManager is supposed to lazily create a singleton instance of subtypes and return it. However a bug caused all subtypes to be instantiated eagerly if any subtype was requested.

This was identified when the Libvirt EC2 VM manager was being instantiated in the CI (which would fail since CI runners do not have a Libvirt socket) despite not being enabled explicitly in code or configuration.

Changes

Fix SubtypesInstanceManager so that only the requested subtype is instantiated.

@viren-nadkarni viren-nadkarni self-assigned this Apr 26, 2024
@viren-nadkarni viren-nadkarni added the semver: patch Non-breaking changes which can be included in patch releases label Apr 26, 2024
Copy link

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 33m 40s ⏱️ + 3m 13s
2 922 tests ±0  2 632 ✅ ±0  290 💤 ±0  0 ❌ ±0 
2 924 runs  ±0  2 632 ✅ ±0  292 💤 ±0  0 ❌ ±0 

Results for commit 06e1ab0. ± Comparison against base commit fcd5927.

@viren-nadkarni viren-nadkarni marked this pull request as ready for review April 26, 2024 10:55
Copy link
Member

@whummer whummer left a comment

Choose a reason for hiding this comment

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

Great catch, thanks for fixing this @viren-nadkarni ! 🙌

@viren-nadkarni viren-nadkarni merged commit 0aebc1e into master Apr 29, 2024
36 of 37 checks passed
@viren-nadkarni viren-nadkarni deleted the ec2-libvirt-vm-manager branch April 29, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants