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

Check usage of ports to be forwarded before running E2E test #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wwalexander
Copy link
Contributor

I ran into a frustrating issue where Docker Compose silently failed to establish a port forward due to an existing Redis instance already running on that port, causing hard to debug test failures. I spent some time working on an improved test setup based on Acyl, but after overcoming several hurdles got stuck on replicating the Envoy configuration, which failed with deprecation errors when running via DQA. Envoy is complex enough that we have decided to wait on putting any more hours into this until we make a longer-term plan for rate limiting.

For now, I've made this PR, which uses lsof to check if any of the ports used in the Docker Compose config are already open before running the tests.

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.

2 participants