GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add hot reload regression test cases for implicit behavior by joe4dev · Pull Request #13183 · localstack/localstack

This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Conversation

@joe4dev

@joe4dev joe4dev commented Sep 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

  • Add assertion for the CodeSha256 to start with hot-reloading
  • Add assertion for the GetFunction>Code>Location to return a valid file URI pointing to the local hot-reload path

sidenote: Path.from_uri requires 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

  1. Start LocalStack in container dev mode using python -m localstack.dev.run
  2. Run the test aws.services.lambda_.test_lambda_developer_tools.TestHotReloading.test_hot_reloading against the running container

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@joe4dev
Add hot reload regression test for implicit behavior
73d20a2
@joe4dev joe4dev added this to the 4.9 milestone Sep 23, 2025
@joe4dev joe4dev self-assigned this Sep 23, 2025
@joe4dev joe4dev added the semver: patch Non-breaking changes which can be included in patch releases label Sep 23, 2025
@github-actions

github-actions Bot commented Sep 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Test Results - Preflight, Unit

22 258 tests  ±0   20 517 ✅ ±0   15m 30s ⏱️ - 1m 10s
     1 suites ±0    1 741 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit 0a394fc. ± Comparison against base commit 4be950c.

♻️ This comment has been updated with latest results.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Sep 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   3m 19s ⏱️ -1s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 0a394fc. ± Comparison against base commit 4be950c.

♻️ This comment has been updated with latest results.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joe4dev joe4dev added the docs: skip Pull request does not require documentation changes label Sep 23, 2025
@github-actions

github-actions Bot commented Sep 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Test Results (amd64) - Integration, Bootstrap

    5 files  ±    0      5 suites  ±0   2h 3m 25s ⏱️ - 32m 40s
3 444 tests  - 1 604  3 220 ✅  - 1 346  224 💤  - 258  0 ❌ ±0 
3 450 runs   - 1 604  3 220 ✅  - 1 346  230 💤  - 258  0 ❌ ±0 

Results for commit 0a394fc. ± Comparison against base commit 4be950c.

This pull request removes 1604 tests.
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_lambda_dynamodb
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_opensearch_crud
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_search_books
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_setup
tests.aws.scenario.kinesis_firehose.test_kinesis_firehose.TestKinesisFirehoseScenario ‑ test_kinesis_firehose_s3
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_destination_sns
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_infra
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_prefill_dynamodb_table
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input0-SUCCEEDED]
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input1-SUCCEEDED]
…

♻️ This comment has been updated with latest results.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Sep 23, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

LocalStack Community integration with Pro

    2 files  ±    0      2 suites  ±0   1h 34m 0s ⏱️ - 24m 6s
3 420 tests  - 1 254  3 192 ✅  - 1 160  228 💤  - 94  0 ❌ ±0 
3 422 runs   - 1 254  3 192 ✅  - 1 160  230 💤  - 94  0 ❌ ±0 

Results for commit 0a394fc. ± Comparison against base commit 4be950c.

This pull request removes 1254 tests.
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_lambda_dynamodb
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_opensearch_crud
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_search_books
tests.aws.scenario.bookstore.test_bookstore.TestBookstoreApplication ‑ test_setup
tests.aws.scenario.kinesis_firehose.test_kinesis_firehose.TestKinesisFirehoseScenario ‑ test_kinesis_firehose_s3
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_destination_sns
tests.aws.scenario.lambda_destination.test_lambda_destination_scenario.TestLambdaDestinationScenario ‑ test_infra
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_prefill_dynamodb_table
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input0-SUCCEEDED]
tests.aws.scenario.loan_broker.test_loan_broker.TestLoanBrokerScenario ‑ test_stepfunctions_input_recipient_list[step_function_input1-SUCCEEDED]
…

♻️ This comment has been updated with latest results.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joe4dev
Fix mount path assertion
0a394fc
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.
@joe4dev
joe4dev marked this pull request as ready for review September 23, 2025 12:14
@joe4dev
joe4dev requested review from dfangl, dominikschubert and gregfurman as code owners September 23, 2025 12:14
dfangl
dfangl approved these changes Sep 23, 2025
View reviewed changes

@dfangl dfangl left a comment

Copy link
Copy Markdown
Member

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!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@joe4dev
joe4dev merged commit abb44e3 into main Sep 23, 2025
@joe4dev
joe4dev deleted the add-hot-reload-regression-test branch September 23, 2025 12:20
@alexrashed alexrashed added the notes: skip Pull request does not have to be mentioned in the release notes label Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@dominikschubert dominikschubert Awaiting requested review from dominikschubert
@gregfurman gregfurman Awaiting requested review from gregfurman
1 more reviewer
@dfangl dfangl dfangl approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@joe4dev joe4dev

Labels

docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Milestone

4.9

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@joe4dev @dfangl @alexrashed
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.