Commit e73aa05
authored
chore(examples): stop the master showcase from dating itself (#470)
* chore(examples): stop the master showcase from dating itself
The showcase was a v1.5 release-status report, re-committed at every release
since. It announced what "v1.5 lands", carried an action item to tag v1.5.0
once develop merged, confirmed a release window for June 2026, and quoted two
benchmark scenarios by name at figures typed in during v1.5. Its metadata
subject and footer named v1.5 as well. The class javadoc calls the document
fictional, but a reader of the PDF sees the real repository name, real
benchmark scenario names and real version numbers, so the props and the claims
were indistinguishable.
Substituting fresh values would have been wrong twice over: it rots again on
the same schedule, and "v1.5 lands the cinematic features" does not become true
by writing 2.1 - those features did land in 1.5.
So the narrative no longer names a version or a date, and the two facts worth
stating are read at render time instead. The version comes from the filtered
banner.properties, the speed figures from the committed perf baseline shown
with its capture date. The examples module now puts that baseline on its own
classpath from where the gate keeps it, rather than holding a second copy that
would drift from the first.
The approval seal reads SAMPLE where it read a quarter and a year, which also
makes the document's fictional half visible in the render rather than only in
the javadoc.
The version lookup moves to a shared helper. It existed only in the deck, and
the deck's own comment explains why it exists - a literal keeps announcing
whichever line it was typed on - which is the same failure this commit repairs
in a second file.
* fix(examples): guard the baseline resource and repair what the extraction left behind
Removing majorMinor from the deck deleted the method but not its javadoc, so
the block was left heading logo() and documenting an @param version that
method does not take.
The showcase javadoc promised "three pages of designed content"; the document
renders two.
The examples job gates on the `code` path filter, which did not list
baselines/. Now that the module renders figures from the committed baseline, a
baseline-only refresh would have changed generated output while skipping the
job that checks it.
PerfBaseline degraded inconsistently: a missing resource was swallowed while a
malformed one threw from a static initializer and would have taken down every
example in the module, not just the one quoting a figure. Loading now never
throws, and a scenario whose figures are absent or non-numeric is treated as
absent rather than read as 0.0 - which would have rendered a plausible
"0.0 ms avg, 0 docs/sec" instead of admitting nothing was measured.
That fallback is honest at render time and wrong to discover in a published
PDF, so PerfBaselineTest asserts the resource really is on the classpath with
the scenarios the showcase quotes. Verified by pointing the pom entry at a
filename that does not exist: on a clean build two of its three tests fail with
the intended message.1 parent fbc23cf commit e73aa05
12 files changed
Lines changed: 299 additions & 46 deletions
File tree
- .github/workflows
- assets/readme/examples
- examples
- src
- main/java/com/demcha/examples
- flagships
- support
- test/java/com/demcha/examples/support
- web/showcase
- pdf/flagships/default
- pptx/flagships/default
- screenshots/flagships/default
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
149 | 163 | | |
150 | 164 | | |
151 | 165 | | |
| |||
Lines changed: 3 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
119 | | - | |
| 116 | + | |
120 | 117 | | |
121 | 118 | | |
122 | 119 | | |
| |||
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
128 | | - | |
| 125 | + | |
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
| |||
912 | 909 | | |
913 | 910 | | |
914 | 911 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | 912 | | |
941 | 913 | | |
942 | 914 | | |
| |||
Lines changed: 43 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
93 | | - | |
| 103 | + | |
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
| |||
109 | 119 | | |
110 | 120 | | |
111 | 121 | | |
112 | | - | |
| 122 | + | |
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
| |||
165 | 175 | | |
166 | 176 | | |
167 | 177 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
174 | 184 | | |
175 | | - | |
| 185 | + | |
176 | 186 | | |
177 | | - | |
| 187 | + | |
| 188 | + | |
178 | 189 | | |
179 | 190 | | |
180 | 191 | | |
| |||
187 | 198 | | |
188 | 199 | | |
189 | 200 | | |
190 | | - | |
| 201 | + | |
191 | 202 | | |
192 | 203 | | |
193 | 204 | | |
| |||
222 | 233 | | |
223 | 234 | | |
224 | 235 | | |
225 | | - | |
| 236 | + | |
226 | 237 | | |
227 | 238 | | |
228 | 239 | | |
| |||
314 | 325 | | |
315 | 326 | | |
316 | 327 | | |
317 | | - | |
| 328 | + | |
318 | 329 | | |
319 | 330 | | |
320 | 331 | | |
| |||
328 | 339 | | |
329 | 340 | | |
330 | 341 | | |
331 | | - | |
332 | | - | |
333 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
334 | 345 | | |
335 | 346 | | |
336 | 347 | | |
| |||
360 | 371 | | |
361 | 372 | | |
362 | 373 | | |
363 | | - | |
| 374 | + | |
364 | 375 | | |
365 | 376 | | |
366 | 377 | | |
| |||
403 | 414 | | |
404 | 415 | | |
405 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
406 | 434 | | |
407 | 435 | | |
408 | 436 | | |
| |||
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments