Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix edge port usages #9633

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 3 commits into from
Nov 14, 2023
Merged

Fix edge port usages #9633

merged 3 commits into from
Nov 14, 2023

Conversation

joe4dev
Copy link
Member

@joe4dev joe4dev commented Nov 14, 2023

Depends on #9600

Motivation

We previously removed the write-usage of EDGE_PORT but kept read-access (e.g., config.EDGE_PORT) in our codebase. Given the many occurrences, it was easy to miss a few write-usages, and read-access gets mixed up with internal vs. external access.
I just noticed some of these issues while reviewing #9600

Changes

This PR fixes these inconsistencies by migrating all usages.

  • Remove a few EDGE_PORT write usages we previously missed
  • Fix some mixed-up EDGE_PORT usages migrating them to the new networking API
  • Migrate usages of LOCALSTACK_HOSTNAME and EDGE_PORT in Lambda functions to AWS_ENDPOINT_URL. They are functionally equivalent.

Testing

I have already run the full pipeline with these changes on top of the commits from #9600 All tests were green except for one flake in community test_firehose_kinesis_to_s3. Subsequently, I rebased upon master for a clean PR view.

@joe4dev joe4dev added the semver: patch Non-breaking changes which can be included in patch releases label Nov 14, 2023
@joe4dev joe4dev added this to the 3.0 milestone Nov 14, 2023
@joe4dev joe4dev self-assigned this Nov 14, 2023
Copy link

github-actions bot commented Nov 14, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 20m 8s ⏱️
2 314 tests 2 015 ✔️ 299 💤 0
2 315 runs  2 015 ✔️ 300 💤 0

Results for commit d8ccd20.

♻️ This comment has been updated with latest results.

@coveralls
Copy link

coveralls commented Nov 14, 2023

Coverage Status

coverage: 84.009% (+0.008%) from 84.001%
when pulling d8ccd20 on fix-edge-port-usages
into 805920f on master.

@joe4dev joe4dev force-pushed the fix-edge-port-usages branch from 67a693c to edda81a Compare November 14, 2023 21:39
Copy link
Contributor

@simonrw simonrw left a comment

Choose a reason for hiding this comment

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

Looks like great changes. I think it's probably a wise choice to remove usages of EDGE_PORT completely so we are not tempted by its alluring charms again... 😂

Remove unnecessary default parameter

Co-authored-by: Simon Walker <[email protected]>
@joe4dev joe4dev force-pushed the fix-edge-port-usages branch from 82ca1eb to d8ccd20 Compare November 14, 2023 22:02
@joe4dev joe4dev mentioned this pull request Nov 14, 2023
1 task
@joe4dev joe4dev merged commit 125dbb9 into master Nov 14, 2023
@joe4dev joe4dev deleted the fix-edge-port-usages branch November 14, 2023 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants