Skip to content

remove legacy runtime in localstack/service/infra.py #11202

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

Merged
merged 8 commits into from
Jul 15, 2024

Conversation

thrau
Copy link
Member

@thrau thrau commented Jul 14, 2024

Motivation

This is a PR to remove the code that was deprecated by #10942.

I left signal_supervisor_restart() in the legacy module (it's still referenced in ext), but added a TODO.

Considering this a minor change since we never documented LEGACY_RUNTIME and have, to my knowledge, not needed it so far.

Changes

  • infra.py has been completely removed in favor of the new runtime framework

Testing

One thing needs manual testing, namely the kill function of the health endpoint

  • run python -m localstack.dev.run -e DEBUG=1
  • observe that curl -X POST -H 'Content-Type: application/json' localhost.localstack.cloud:4566/_localstack/health -d '{"action": "kill"}' still works

@thrau thrau added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Jul 14, 2024
Copy link

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 21s ⏱️
404 tests 352 ✅  52 💤 0 ❌
808 runs  704 ✅ 104 💤 0 ❌

Results for commit b0d3431.

Copy link

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 34m 12s ⏱️ -38s
3 180 tests ±0  2 779 ✅ ±0  401 💤 ±0  0 ❌ ±0 
3 182 runs  ±0  2 779 ✅ ±0  403 💤 ±0  0 ❌ ±0 

Results for commit b0d3431. ± Comparison against base commit ab9613a.

@thrau thrau marked this pull request as ready for review July 14, 2024 20:10
@thrau thrau requested review from alexrashed and silv-io as code owners July 14, 2024 20:10
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Awesome! Really great migration / complete refactoring of such a fundamental component under the hood! 🚀

@thrau thrau merged commit 0e208ab into master Jul 15, 2024
47 of 48 checks passed
@thrau thrau deleted the remove-legacy-runtime branch July 15, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants