You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Smoke tests for the [OpenTelemetry Spring starter](../../instrumentation/spring/starters/spring-boot-starter/README.md).
79
-
80
-
You can execute the tests in a JVM (`./gradlew smoke-tests-otel-starter:test`) or as Spring native tests (`./gradlew smoke-tests-otel-starter:nativeTest`).
79
+
Smoke tests for the [OpenTelemetry Spring starter](../../instrumentation/spring/starters/spring-boot-starter/README.md)
80
+
can be executed in a JVM (`./gradlew smoke-tests-otel-starter:test`) or as Spring native tests (`./gradlew smoke-tests-otel-starter:nativeTest`).
81
81
82
82
## GraalVM native test
83
83
@@ -100,22 +100,43 @@ old containers, images and volumes using `docker system prune --volumes`.
100
100
For some container environments, such as rootless Podman or a remotely hosted Docker,
101
101
testcontainers may need additional configuration to successfully run the tests.
102
102
The following environment variables can be used for configuration:
103
-
-`TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE` - The location of the Docker socket on the host. Default is `/var/run/docker.sock`
104
-
-`TESTCONTAINERS_HOST_OVERRIDE` - The hostname used for container-to-container communication. Default Docker is `localhost`, but rootless Podman uses `host.containers.internal`
103
+
-`TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE` - The location of the Docker socket on the host. Default is `/var/run/docker.sock`
104
+
-`TESTCONTAINERS_HOST_OVERRIDE` - The hostname used for container-to-container communication. Default Docker is `localhost`, but rootless Podman uses `host.containers.internal`
105
105
106
106
# Troubleshooting CI Test Failures
107
107
108
-
CI test logs are pretty big around 75MB. To make it easier to troubleshoot test failures, you can download the raw logs from the CI job and then look for
109
-
`Publishing build scan...` in the logs. Copy the URL from the logs and open it in a browser. This will give you a nice view of the test execution breakdown.
108
+
CI test logs are pretty large, sometimes exceeding 75MB. To make it easier to troubleshoot test failures, you can download or
109
+
view the raw logs from the CI job and then look for `Publishing build scan...` in the logs. There may be several occurrences
110
+
of this phrase, so look for the one that follows "BUILD FAILED".
111
+
112
+
Example:
113
+
114
+
```
115
+
2025-01-01T05:06:24.8710392Z BUILD FAILED in 15m 4s
Copy the gradle.com URL and open it in a browser. This will give you a nice view of the test execution breakdown.
110
124
111
125
## How to download the raw logs
112
126
113
127
1. Click on the `Details` link in one of the failing CI jobs under `Some checks were not successful` section of your PR.
114
128
2. Click on one of the failed tests in the left panel.
115
129
3. Click on the `Setting` gear in the top right corner of the logs panel.
116
130
4. Right click on 'View raw logs' and then 'Save link as' to save the page as a text file locally.
117
-
5. Once the file is downloaded, open it in a text editor and search for `Publishing build scan...` to find the URL.
131
+
5. Once the file is downloaded, open it in a text editor and search for `Publishing build scan...`that follows an occurrence of "BUILD FAILED" to find the URL.
118
132
6. Open the URL in a browser to view the test execution breakdown. It might prompt you to "Activate your Build Scan" the very 1st time, you can use your own email address and activate it via email.
119
133
120
134
Unfortunately, the Build Scan service hosted via Develocity has an allowed size limits of the free build scans. Once you exceed the limit, then you won't be able to view the scan anymore.
121
135
Then you can just use the raw logs to search for "FAILED" or "Task failed with an exception" to identify the failing tests.
136
+
137
+
# Using breakpoints in instrumentation
138
+
139
+
For instrumentation that has been migrated to use the [invokedynamic based instrumentation mechanism](https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/8999),
140
+
you can leverage breakpoints and standard debugging strategies by adding `-PtestIndy=true` to the gradle command:
0 commit comments