Skip to content

Align SB smoke test image with servlet containers #330

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

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

pavolloffay
Copy link
Member

No description provided.

Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
@pavolloffay
Copy link
Member Author

The undertow tests seems to be flaky

UndertowInstrumentationTest > postUrlEncoded() FAILED
    org.opentest4j.AssertionFailedError at UndertowInstrumentationTest.java:113

cc) @ryandens

@ryandens
Copy link
Member

ryandens commented Jul 6, 2021

The undertow tests seems to be flaky

UndertowInstrumentationTest > postUrlEncoded() FAILED
    org.opentest4j.AssertionFailedError at UndertowInstrumentationTest.java:113

cc) @ryandens

Thanks! I noticed this as well, still trying to zero in on the source of the flakiness, but working on this in the background. I have a suspicion that it's a thread-safety issue with how that test utilizes the in-memory exporter, so at least it doesn't seem to be an inconsistency issue with the production agent code 🤞

@pavolloffay
Copy link
Member Author

on JDK8 it fails randomly.

while ./gradlew clean :instrumentation:undertow:undertow-1.4:test; do :; done

@pavolloffay
Copy link
Member Author

I have a suspicion that it's a thread-safety issue with how that test utilizes the in-memory exporter, so at least it doesn't seem to be an inconsistency issue with the production agent code crossed_fingers

I would not be so sure bc spans are reported but the body attribute is missing.

@ryandens
Copy link
Member

ryandens commented Jul 6, 2021

I have a suspicion that it's a thread-safety issue with how that test utilizes the in-memory exporter, so at least it doesn't seem to be an inconsistency issue with the production agent code crossed_fingers

I would not be so sure bc spans are reported but the body attribute is missing.

Huh, interesting. Where are you seeing that? The test failure you posted (and that I've seen as well) shows the assertion in line 113 failing which is just asserting the size of the traces list? Do the logs show the trace reported without the body attribute? Or did you get a test failure with a different assertion error?

@pavolloffay
Copy link
Member Author

I get failures in my editor on line 117 ass well :/

    assertEquals(
        "{\"echo\": \"bar\"}",
        spanData.getAttributes().get(HypertraceSemanticAttributes.HTTP_RESPONSE_BODY));

@ryandens
Copy link
Member

ryandens commented Jul 6, 2021

Thanks! I hadn't gotten that one yet, but this will definitely help

@pavolloffay
Copy link
Member Author

The failing line 117 is my bad, wrongly initialized classpath in IDE, here is the fix for the flaky test #331

@pavolloffay pavolloffay merged commit 25b04c4 into hypertrace:main Jul 6, 2021
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