-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add hot reload regression test cases for implicit behavior #13183
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 (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 2h 3m 25s ⏱️ - 32m 40s Results for commit 0a394fc. ± Comparison against base commit 4be950c. This pull request removes 1604 tests.♻️ This comment has been updated with latest results. |
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 1h 34m 0s ⏱️ - 24m 6s Results for commit 0a394fc. ± Comparison against base commit 4be950c. This pull request removes 1254 tests.♻️ This comment has been updated with latest results. |
The test passed locally, but didn't match in CI: https://github.com/localstack/localstack/actions/runs/17940461254/job/51017715236?pr=13183#step:9:3229 ``` /var/lib/localstack/tmp/hot-reload-342b262a /tmp/localstack/tmp/hot-reload-342b262a ``` Using the `mount_path` should fix this issue in CI.
dfangl
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.
Makes sense to add an explicit assertion here!
Motivation
The heuristic in the AWS Toolkit integration (announced here) depends on the implicit assumption that it starts with
hot-reloading(see code here). We should add a test to make that assumption explicit.Changes
CodeSha256to start withhot-reloadingGetFunction>Code>Locationto return a valid file URI pointing to the local hot-reload pathsidenote:
Path.from_urirequires Python 3.13 (https://docs.python.org/3/library/pathlib.html#pathlib.Path.from_uri)disclaimer: I haven't tested the path assertion on Windows.
Testing
python -m localstack.dev.runaws.services.lambda_.test_lambda_developer_tools.TestHotReloading.test_hot_reloadingagainst the running container