This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Add hot reload regression test cases for implicit behavior#13183
Merged
Add hot reload regression test cases for implicit behavior#13183
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
approved these changes
Sep 23, 2025
Member
dfangl
left a comment
There was a problem hiding this comment.
Makes sense to add an explicit assertion here!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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