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

extend InstrumentationTest timeout to reduce flakeyness #3436

Merged

Conversation

jackshirazi
Copy link
Contributor

@jackshirazi jackshirazi commented Nov 22, 2023

What does this PR do?

lots of tests are hitting a timeout on InstrumentationTest but it's passing fine when run manually.

In the end I commented out the test. It's odd that it's started happening but there is no guarantee that the class will be unloaded in any time period, I think I'd have to set metaspace to some small value and it's easier to just stop doing the test

@jackshirazi
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/docs

@jackshirazi jackshirazi requested a review from a team November 23, 2023 09:13
@jackshirazi jackshirazi enabled auto-merge (squash) November 23, 2023 09:13
@@ -421,7 +421,8 @@ void testPluginClassLoaderGCdAfterUndoingInstrumentation() {
await().untilAsserted(() -> assertThat(pluginClassLoader.get()).isNull());
}

@Test
//this is failing from unspecified - likely metaspace specific GC not happening - in CI
// @Test
Copy link
Member

Choose a reason for hiding this comment

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

[minor] maybe better to use @Ignore here, and keep the comment so we have a clue about the reason it's disabled.

Comment on lines +445 to +448
long start = System.currentTimeMillis();
while(System.currentTimeMillis()-start < 10_000) {

}
Copy link
Member

Choose a reason for hiding this comment

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

[minor] let's remove this if we disable the test for now.

@jackshirazi jackshirazi merged commit 97569b0 into elastic:main Nov 23, 2023
11 checks passed
jackshirazi added a commit to jackshirazi/apm-agent-java that referenced this pull request Nov 23, 2023
videnkz pushed a commit to videnkz/apm-agent-java that referenced this pull request Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants