Trouble Connecting to LocalStack from GitHub CI | Connect to 127.0.0.1:4566 [/127.0.0.1] failed: Connection refused #106595
Replies: 2 comments
-
Add a step in your GitHub Actions workflow before your tests run to check connectivity to the LocalStack service. You could use simple tools like curl to see if the port is open:
Temporarily hardcode the TARGET_HOST in your test setup to localstack to rule out any environment variable issues. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the suggestion, Vontanne Hovhannes! I went through different options and pinpointed the issue. By default, the spark.hadoop.fs.s3a.endpoint property was connecting to localhost, overriding the TEST_MOCK_SERVICES_HOST environment variable set to localstack. The problem was resolved by configuring s3.endpoint correctly for localstack. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Hello,
Has anybody noticed similar issue when running 'localstack' application in a service container and access the application from the GitHub Actions host. I'm trying to set up LocalStack within GitHub CI pipeline, but I'm encountering following error.
CI workflow
Basically I'm trying to run pytest for my airflow codebase and it works fine when running in locally.
Here I access the env value in test file
Dont know why --network and --endpoint options are not supported here
Beta Was this translation helpful? Give feedback.
All reactions