Repository navigation
Commit 9d3ecdb
test: Fix follow-ups from the sample tests stack review
Fix issues the review of the sample tests stack found in the new
in-module end-to-end tests:
- MockSentryServer keeps the error when it can't read a body and
rethrows it while waiting, so a serialization bug no longer looks
like a missing envelope.
- ChildJvmApp only takes a port that two reads agree on. A partly
written port such as "54" of "54321" parsed and pointed the test
at the wrong port.
- The agentless test starts a span through the OpenTelemetry API and
checks that it reaches Sentry. Before, it passed with the
OpenTelemetry wiring broken.
- The Person tests use id 11 and match their transaction by URL, so
envelopes from the tracing tests' /person/1 calls can't satisfy them.
- The Boot 2 Kafka test shares the suite's context and broker, as on
Boot 3 and 4. Its second context re-ran Sentry.init and made later
tests depend on the run order. Boot 2.4 to 2.6 were the reason for
the split and are gone.
- Tests fail clearly when a system property the Gradle task sets is
missing, rather than running with -javaagent:null.
- Remove the Boot 2 version gating from the samples, the runner's
files from .gitignore, and the unused jackson-kotlin entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent e48e7ab commit 9d3ecdb
28 files changed
Lines changed: 202 additions & 214 deletions
File tree
- .claude/skills/test
- gradle
- sentry-opentelemetry
- sentry-opentelemetry-agentless/src/test/kotlin/io/sentry/opentelemetry/agentless
- sentry-opentelemetry-agent/src/test/kotlin/io/sentry/opentelemetry/agent
- sentry-samples
- sentry-samples-spring-boot-opentelemetry-noagent
- sentry-samples-spring-boot-opentelemetry
- sentry-samples-spring-boot-webflux
- sentry-samples-spring-boot
- sentry-spring-boot-4/src
- integrationTestOtelAgent/kotlin/io/sentry/spring/boot4/otelagentintegrationtest
- integrationTestOtelNoAgent/kotlin/io/sentry/spring/boot4/otelnoagentintegrationtest
- integrationTestOtlp/kotlin/io/sentry/spring/boot4/otlpintegrationtest
- integrationTest/kotlin/io/sentry/spring/boot4/integrationtest
- sentry-spring-boot-jakarta/src
- integrationTestOtelAgent/kotlin/io/sentry/spring/boot/jakarta/otelagentintegrationtest
- integrationTestOtelNoAgent/kotlin/io/sentry/spring/boot/jakarta/otelnoagentintegrationtest
- integrationTest/kotlin/io/sentry/spring/boot/jakarta/integrationtest
- sentry-spring-boot/src
- integrationTestOtelAgent/kotlin/io/sentry/spring/boot/otelagentintegrationtest
- integrationTestOtelNoAgent/kotlin/io/sentry/spring/boot/otelnoagentintegrationtest
- integrationTest/kotlin/io/sentry/spring/boot/integrationtest
- sentry-test-support/src
- main/kotlin/io/sentry/test
- test/kotlin/io/sentry/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
141 | 150 | | |
142 | 151 | | |
143 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 28 | | |
41 | 29 | | |
42 | 30 | | |
| |||
49 | 37 | | |
50 | 38 | | |
51 | 39 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 40 | + | |
55 | 41 | | |
56 | 42 | | |
57 | 43 | | |
| |||
63 | 49 | | |
64 | 50 | | |
65 | 51 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 52 | + | |
69 | 53 | | |
70 | 54 | | |
71 | 55 | | |
72 | 56 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 57 | + | |
| 58 | + | |
77 | 59 | | |
78 | 60 | | |
79 | 61 | | |
| |||
101 | 83 | | |
102 | 84 | | |
103 | 85 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 28 | | |
41 | 29 | | |
42 | 30 | | |
| |||
48 | 36 | | |
49 | 37 | | |
50 | 38 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 39 | + | |
54 | 40 | | |
55 | 41 | | |
56 | 42 | | |
| |||
62 | 48 | | |
63 | 49 | | |
64 | 50 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 51 | + | |
68 | 52 | | |
69 | 53 | | |
70 | 54 | | |
71 | 55 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 56 | + | |
| 57 | + | |
76 | 58 | | |
77 | 59 | | |
78 | 60 | | |
| |||
101 | 83 | | |
102 | 84 | | |
103 | 85 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 86 | | |
118 | 87 | | |
119 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 28 | | |
39 | 29 | | |
40 | 30 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 31 | + | |
44 | 32 | | |
45 | 33 | | |
46 | 34 | | |
47 | 35 | | |
48 | 36 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 37 | + | |
52 | 38 | | |
53 | 39 | | |
54 | 40 | | |
| |||
74 | 60 | | |
75 | 61 | | |
76 | 62 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 63 | | |
87 | 64 | | |
88 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 28 | | |
41 | 29 | | |
42 | 30 | | |
| |||
48 | 36 | | |
49 | 37 | | |
50 | 38 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 39 | + | |
54 | 40 | | |
55 | 41 | | |
56 | 42 | | |
| |||
60 | 46 | | |
61 | 47 | | |
62 | 48 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 49 | + | |
| 50 | + | |
67 | 51 | | |
68 | 52 | | |
69 | 53 | | |
70 | 54 | | |
71 | 55 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 56 | + | |
75 | 57 | | |
76 | 58 | | |
77 | 59 | | |
| |||
108 | 90 | | |
109 | 91 | | |
110 | 92 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
0 commit comments