Skip to content

test(flagd): add socket path tests#1153

Closed
aepfli wants to merge 3 commits intoopen-feature:mainfrom
open-feature-forking:test/add_socket_test
Closed

test(flagd): add socket path tests#1153
aepfli wants to merge 3 commits intoopen-feature:mainfrom
open-feature-forking:test/add_socket_test

Conversation

@aepfli
Copy link
Copy Markdown
Member

@aepfli aepfli commented Jan 11, 2025

  • finding, socket path is not supported for in_process

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
@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
Copy Markdown
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
Copy Markdown
Member

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

@aepfli
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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