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

OpenTelemetryInstrumenterMojoTest is sporadically failing #1636

Open
trask opened this issue Jan 6, 2025 · 2 comments
Open

OpenTelemetryInstrumenterMojoTest is sporadically failing #1636

trask opened this issue Jan 6, 2025 · 2 comments

Comments

@trask
Copy link
Member

trask commented Jan 6, 2025

see example at https://github.com/open-telemetry/opentelemetry-java-contrib/actions/runs/12638416021/job/35214627397

OpenTelemetryInstrumenterMojoTest > shouldInstrumentSampleApplication() FAILED
    java.lang.AssertionError: 
    Expecting actual:
      "Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
    	at org.json.JSONTokener.syntaxError(JSONTokener.java:507)
    	at org.json.JSONObject.<init>(JSONObject.java:222)
    	at org.json.JSONObject.<init>(JSONObject.java:406)
    	at org.example.SingleGetter.makeCall(SingleGetter.java:37)
    	at org.example.SingleGetter.main(SingleGetter.java:20)
    "
    to contain:
      "SUCCESS" 
        at io.opentelemetry.contrib.staticinstrumenter.plugin.maven.OpenTelemetryInstrumenterMojoTest.verifyApplicationByExampleRun(OpenTelemetryInstrumenterMojoTest.java:47)
        at io.opentelemetry.contrib.staticinstrumenter.plugin.maven.OpenTelemetryInstrumenterMojoTest.shouldInstrumentSampleApplication(OpenTelemetryInstrumenterMojoTest.java:29)
@cyrille-leclerc
Copy link
Member

@trask I think it's caused by the static-instrumenter build tool, not by the maven-extension.
Precisely, I think it's the OpenTelemetryInstrumenterMojoTest that is causing the problem.

@trask
Copy link
Member Author

trask commented Jan 6, 2025

thanks @cyrille-leclerc! 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants