Commit eee6f2f
authored
fix(benchmarks): rebuild every branch-versioned module before an A/B run (#465)
* fix(benchmarks): rebuild every branch-versioned module before an A/B run
The A/B scripts installed only the engine, but the benchmark module resolves
render-pdf and templates — plus the templates tests-classifier jar, which is
never published — at the branch's own version. Both sides therefore took those
two jars from ~/.m2, and whenever the compared branches share a version, which
is the normal case for two branches cut from develop, they took the *same*
ones: any change in the PDF backend or the templates module measured a delta of
exactly zero. A stale backend jar built against the other branch's core could
also throw NoSuchMethodError mid-run instead of reporting a number.
Both modules are now installed per branch, guarded by the presence of their
pom so a pre-split layout, where the root build produces them, still works.
Mirrors the install sequence the CI performance job already uses.
* docs(benchmarks): say what an A/B run actually rebuilds, and stop compiling render-pdf's tests
The A/B section still told readers each branch is rebuilt with
install -pl :graph-compose-core "so the benchmark measures that branch's
engine" - the sentence the install fix invalidates, and the only place stating
what gets rebuilt.
render-pdf now installs with -Dmaven.test.skip=true rather than -DskipTests.
Only its main jar is needed, but -DskipTests still compiles its whole test
tree, so a branch whose render-pdf tests do not compile would abort the entire
A/B at the install step with the output sent to /dev/null. templates keeps
-DskipTests, because the benchmark resolves its tests-classifier jar and
maven.test.skip would not produce one.1 parent 5c4be1b commit eee6f2f
3 files changed
Lines changed: 43 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
160 | 181 | | |
161 | 182 | | |
162 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
331 | 347 | | |
332 | 348 | | |
333 | 349 | | |
| |||
0 commit comments