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

Attempt to stabilize OPC UA unit tests #1797

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

splatch
Copy link
Contributor

@splatch splatch commented Sep 30, 2024

Related to #1764.

@splatch splatch self-assigned this Sep 30, 2024
@splatch splatch requested a review from chrisdutz September 30, 2024 12:34
@splatch splatch force-pushed the stabilize-opc-ua-tests branch 3 times, most recently from d00c866 to 1737941 Compare October 14, 2024 12:21
@splatch
Copy link
Contributor Author

splatch commented Oct 14, 2024

@chrisdutz Looks like tests after above changes are better. Would you risk merging this to see how it will go with Jenkins? Can you give it a try on Mac/Parallels?

@chrisdutz
Copy link
Contributor

How about manually re-running the tests for 4-5 times ... if they remain unflaky, please merge them ... if they remain flaky, please don't enable them. I'd really like to have our build in a form again, that we can trust it and not blindly click "rerun failed" for 2-3 times before we start looking if it's really a problem.

@chrisdutz
Copy link
Contributor

Hmmm ... odd ... I had that error a few days ago ... as if Java forgot it's own options ... maybe just run again later.

@splatch
Copy link
Contributor Author

splatch commented Oct 14, 2024

The good thing is - build didn't fail due to opcua :-)

@splatch splatch force-pushed the stabilize-opc-ua-tests branch 2 times, most recently from 1ff40e0 to 4d8db15 Compare October 17, 2024 23:24
First and foremost - this commit switches OPC-UA tests to rely on dynamic port.

This implies also slight change to endpoint selection method and possibility to override desired endpoint port and host which might differ from host/port reported by OPC-UA server.
Because server is not aware of actual tcp port and host used by client, it is client duty to make proper decission when looking for endpoint.

Related to #1764.

Signed-off-by: Łukasz Dywicki <[email protected]>
@splatch splatch force-pushed the stabilize-opc-ua-tests branch from 4d8db15 to 896d869 Compare October 17, 2024 23:40
@splatch
Copy link
Contributor Author

splatch commented Oct 17, 2024

@chrisdutz Ping - looks like tests are a bit better on github, there are fewer failures coming from OPC-UA. Would you risk merging them now?

@splatch splatch merged commit 896d869 into develop Oct 18, 2024
12 checks passed
@splatch splatch deleted the stabilize-opc-ua-tests branch October 18, 2024 06:41
@chrisdutz
Copy link
Contributor

Well ... let's see ... if they start randomly failing the build there, I'll deactivate them again ... so let's consider them "on probation" ;-)

@splatch
Copy link
Contributor Author

splatch commented Oct 18, 2024

I see chunk tests are failing again, will have a closer look on them. Milo seems to be fine with testcontainers and randomized network port.

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