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

test(flagd): add socket path tests #1153

Closed

Conversation

aepfli
Copy link
Member

@aepfli aepfli commented Jan 11, 2025

  • finding, socket path is not supported for in_process

Signed-off-by: Simon Schrottner <[email protected]>
@aepfli aepfli requested a review from a team as a code owner January 11, 2025 19:46
@Suite(failIfNoTests = false)
@IncludeEngines("cucumber")
// Not implemented in flagd
//@SelectFile("spec/specification/assets/gherkin/evaluation.feature")
Copy link
Member Author

Choose a reason for hiding this comment

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

again, this does not work for in_process connection

toddbaert
toddbaert previously approved these changes Jan 14, 2025
@toddbaert toddbaert self-requested a review January 14, 2025 19:23
@toddbaert
Copy link
Member

@aepfli I'm not sure if you noticed, but there's an OOM error in the CI.

@aepfli
Copy link
Member Author

aepfli commented Jan 14, 2025

Yes, I have seen it, and I am currently also investigating. This is an odd issue. How do you simulate a reconnect with an SSL socket? I am not sure this is something testable, as a socket connection is a file connection. and imho, if that gets delete, i don't think we can recover, wdyt?

@toddbaert
Copy link
Member

Yes, I have seen it, and I am currently also investigating. This is an odd issue. How do you simulate a reconnect with an SSL socket? I am not sure this is something testable, as a socket connection is a file connection. and imho, if that gets delete, i don't think we can recover, wdyt?

I think we should avoid reconnection tests for the file mode. I don't think they make sense and I don't even know if it's possible. Definitionally, a unix socket should be on a shared disk; if that disk is not accessible I think it's out of our hands and probably we don't need to support reconnection. Really the socket is to enable very fast local communication by avoiding the TCP stack.

@aepfli
Copy link
Member Author

aepfli commented Jan 15, 2025

Superseded by #1115

@aepfli aepfli closed this Jan 15, 2025
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.

5 participants