Skip to content

Conversation

dominikschubert
Copy link
Member

@dominikschubert dominikschubert commented Feb 14, 2023

This seemed to misbehave previously because we sometimes mutate/set environment variables during startup.

Example

Setting PERISTENCE=1 will still log the deprecation warning for DATA_DIR even though it hasn't been explicitly set.

Changes

  • Remove manual setting of DATA_DIR env variable when PERSISTENCE=1
  • Copy the environment directly after we finish loading any profiles. This copy is then used in when determining deprecations instead of using the current environment. Talked with @alexrashed about this and we decided against this for now. Instead removed the line that was causing the specifically observed issue with the environment variable DATA_DIR being set manually as a fallback.

@thrau & @giograno Do you remember why this was added? What are the potential regressions we'd be creating by removing this?

@dominikschubert dominikschubert self-assigned this Feb 14, 2023
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests February 14, 2023 16:46 — with GitHub Actions Inactive
@thrau thrau removed their request for review February 14, 2023 17:49
@thrau
Copy link
Member

thrau commented Feb 14, 2023

i'll let alex sign off this one

@github-actions
Copy link

github-actions bot commented Feb 14, 2023

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 40m 41s ⏱️ + 9m 53s
1 738 tests ±0  1 383 ✔️  - 1  355 💤 +1  0 ±0 
2 456 runs  ±0  1 759 ✔️  - 1  697 💤 +1  0 ±0 

Results for commit de03048. ± Comparison against base commit 44c6718.

♻️ This comment has been updated with latest results.

@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests February 14, 2023 18:53 — with GitHub Actions Inactive
@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests February 15, 2023 09:13 — with GitHub Actions Inactive
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.

I couldn't find any references which would still depend on the DATA_DIR env variable, so from my point of view it should be save to remove it. 🚀
But maybe there's something we didn't think about, @thrau @giograno?

@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests February 16, 2023 21:23 — with GitHub Actions Inactive
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

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

let's merge and see what breaks :-)

@dominikschubert dominikschubert temporarily deployed to localstack-ext-tests February 21, 2023 18:15 — with GitHub Actions Inactive
@coveralls
Copy link

Coverage Status

Coverage: 84.988% (-0.007%) from 84.995% when pulling de03048 on fix-deprecation-check into 44c6718 on master.

@dominikschubert dominikschubert merged commit d823fe5 into master Feb 21, 2023
@dominikschubert dominikschubert deleted the fix-deprecation-check branch February 21, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants