Skip to content
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

A try fixing Lambda persistence #8643

Merged
merged 3 commits into from Jul 7, 2023
Merged

A try fixing Lambda persistence #8643

merged 3 commits into from Jul 7, 2023

Conversation

dfangl
Copy link
Member

@dfangl dfangl commented Jul 6, 2023

Motivation

With PR #8235 , the persistence tests broke.

It seems, that connecting to the bucket from different accounts, made some problems with remote fetched layers. It is not quite clear what causes this behavior (maybe some cross account problem in s3?), but it needs to be solved ASAP to unblock the pipeline.

Changes

  • All code archive buckets are moved to some random account. This is parity with AWS

@giograno

@dfangl dfangl added the semver: patch Non-breaking changes which can be included in patch releases label Jul 6, 2023
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 27m 2s ⏱️
2 187 tests 1 853 ✔️ 334 💤 0
2 188 runs  1 853 ✔️ 335 💤 0

Results for commit cd3db26.

♻️ This comment has been updated with latest results.

@coveralls
Copy link

coveralls commented Jul 6, 2023

Coverage Status

coverage: 82.815% (+0.01%) from 82.802% when pulling 04217ae on lambda-pers-test into b78b678 on master.

Copy link
Member

@joe4dev joe4dev left a comment

Choose a reason for hiding this comment

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

Hiding the LocalStack-internal Lambda S3 buckets makes sense 👍

@@ -64,6 +64,9 @@
SNAP_START_SUPPORTED_RUNTIMES = [Runtime.java11, Runtime.java17]


BUCKET_ACCOUNT = "949334387222"
Copy link
Member

Choose a reason for hiding this comment

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

It would be helpful to add a comment clarifying that this is just some random account

Copy link
Member Author

Choose a reason for hiding this comment

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

Will add!

@@ -64,6 +64,9 @@
SNAP_START_SUPPORTED_RUNTIMES = [Runtime.java11, Runtime.java17]


BUCKET_ACCOUNT = "949334387222"
Copy link
Member

Choose a reason for hiding this comment

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

✅ We don't get any conflicts in multi-account setups because the account_id is used as namespace

@@ -64,6 +64,9 @@
SNAP_START_SUPPORTED_RUNTIMES = [Runtime.java11, Runtime.java17]


BUCKET_ACCOUNT = "949334387222"
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ This change breaks all existing Lambda pods or persisted lambda functions. This is a breaking change and should be labeled at least as semver:minor

Copy link
Member

Choose a reason for hiding this comment

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

The recent cross-account enhancements as well, so good to batch them: 28427b9

Copy link
Member Author

Choose a reason for hiding this comment

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

This is actually a fix for that PR, as it broke persistence for remote fetched layers. Not exactly sure why currently, but it blocks the -ext pipeline.

@@ -64,6 +64,9 @@
SNAP_START_SUPPORTED_RUNTIMES = [Runtime.java11, Runtime.java17]


BUCKET_ACCOUNT = "949334387222"
Copy link
Member

Choose a reason for hiding this comment

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

"Hiding" LocalStack-internal lambda buckets basically addresses this question #8494

@dfangl dfangl added semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases and removed semver: patch Non-breaking changes which can be included in patch releases labels Jul 7, 2023
@dfangl dfangl merged commit aed172f into master Jul 7, 2023
10 of 11 checks passed
@dfangl dfangl deleted the lambda-pers-test branch July 7, 2023 07:49
@dfangl dfangl added this to the 2.2 milestone Jul 17, 2023
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.

None yet

3 participants