-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
IaC: Load the AWS catalog from the platform or cached file #13179
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
Conversation
Test Results - Preflight, Unit22 380 tests +4 20 630 ✅ +4 15m 52s ⏱️ +4s Results for commit d70567f. ± Comparison against base commit f829e69. This pull request removes 13 and adds 17 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 2h 38m 33s ⏱️ Results for commit d70567f. ♻️ This comment has been updated with latest results. |
silv-io
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general! Just the latest version check is missing and some minor nitpicks in the tests.
Also kudos for finding an existing solution to the cache rather than implementing something new unnecessarily 🚀
| def _get_latest_localstack_version(self) -> str: | ||
| pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note We can add this functionality now that the endpoint for it will exist on the next deployment
| try: | ||
| latest_version = self._get_latest_localstack_version() | ||
| return latest_version != current_catalog_version | ||
| except Exception as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: After the latest version check is implemented, this should be scoped down to the actual Exceptions we'd want to handle IMO
silv-io
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for addressing the comments and adding the latest version request
# Conflicts: # tests/unit/utils/catalog/test_catalog.py
d0c979c to
d70567f
Compare
Motivation
This PR adds a way to load the catalog either from a saved local file or from the platform. The
RemoteCatalogLoaderwill be used only when the catalog plugin starts. If the platform returns a different version of LocalStack than the one in the cached catalog, the local catalog file is updated.Changes
RemoteCatalogLoaderwhich either loads catalog from cached file or from platformTODO
_get_latest_localstack_versionmethod