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

fix flaky failure in CI for RichErrorModelTest #292

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

laglangyue
Copy link
Contributor

@laglangyue laglangyue commented Apr 13, 2024

motivation

close #291
client should wait http server start, and need to stop http finally.

how

add wait and stop

@laglangyue
Copy link
Contributor Author

@@ -94,6 +92,8 @@ public void testManualApproach() throws Exception {
} finally {
if (client != null) client.close();
sys.terminate();
serverBinding.unbind();
Copy link
Member

Choose a reason for hiding this comment

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

should we waiting on the unbind future too?

Copy link
Member

@He-Pin He-Pin left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -52,8 +53,7 @@ private CompletionStage<ServerBinding> run(ActorSystem sys) throws Exception {
public void testManualApproach() throws Exception {
Config conf = ConfigFactory.load();
ActorSystem sys = ActorSystem.create("HelloWorld", conf);
run(sys);

ServerBinding serverBinding = run(sys).toCompletableFuture().get(60, TimeUnit.SECONDS);
Copy link
Member

Choose a reason for hiding this comment

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

I think 3 seconds should enough

Copy link
Member

Choose a reason for hiding this comment

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

agree, but it's a timeout, so it's no problem if it's a little generous

@@ -52,8 +53,7 @@ private CompletionStage<ServerBinding> run(ActorSystem sys) throws Exception {
public void testManualApproach() throws Exception {
Config conf = ConfigFactory.load();
ActorSystem sys = ActorSystem.create("HelloWorld", conf);
run(sys);

ServerBinding serverBinding = run(sys).toCompletableFuture().get(60, TimeUnit.SECONDS);
Copy link
Member

Choose a reason for hiding this comment

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

agree, but it's a timeout, so it's no problem if it's a little generous

@He-Pin He-Pin merged commit 7f4b94c into apache:main Apr 13, 2024
20 checks passed
@laglangyue laglangyue deleted the fix-ci-RichErrorModelTest branch April 18, 2024 07:34
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.

Investigate flaky failure in CI for RichErrorModelTest
3 participants