Commit 62dbcca
ci(plugins): add Toolkit jar smoke tests to platform builds
After `./gradlew clean build` finishes, run the freshly built
Toolkit.jar through a few picocli subcommands so that runtime
class-loading errors in the fat jar are caught by CI rather than
slipping into a release.
Without this step, dependency-conflict bugs that survive `:plugins:test`
can still ship in the fat jar, because:
- the test classpath keeps source jars separate (classloader returns
the first match), but
- the fat jar merges class entries with last-write-wins, so a
different copy of a duplicated class can end up in the artifact.
The recent NoSuchMethodError on Options.maxBatchSize is exactly this
shape of bug: tests passed, fat jar broke. The smoke test catches it.
Smoke commands run on every platform build (macos / ubuntu-arm /
rockylinux-x86 / debian11-x86):
- `java -jar Toolkit.jar help` — exercises the top-level command tree
- `java -jar Toolkit.jar db --help` — loads all db subcommands
- `java -jar Toolkit.jar db archive -h` — directly exercises the
leveldb Options path that previously broke
- `java -jar Toolkit.jar keystore --help` — exercises the :crypto
module path added by the recent keystore migration
Each step adds ~10-15s; jobs run in parallel so PR critical path
increases by at most ~15s.1 parent cf6aa0e commit 62dbcca
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
| |||
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
87 | 105 | | |
88 | 106 | | |
89 | 107 | | |
| |||
127 | 145 | | |
128 | 146 | | |
129 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
130 | 157 | | |
131 | 158 | | |
132 | 159 | | |
| |||
172 | 199 | | |
173 | 200 | | |
174 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
175 | 211 | | |
176 | 212 | | |
177 | 213 | | |
| |||
0 commit comments