Commit cba693c
* test: add JUnit regressions for kherud open issues #80, #95, #98, #102
Adds four small JUnit tests proposed in the verification plan section of
docs/history/49be664_open_issues.md to upgrade the corresponding upstream
issues from LIKELY FIXED to FIXED:
- MemoryManagementTest#testOpenCloseLoopDoesNotLeak (#102) - 20-iteration
open/close loop; on Linux asserts VmRSS delta < 200 MB. Degenerates to
a no-crash smoke test on non-Linux hosts where /proc/self/status is
absent.
- MemoryManagementTest#testOpenCloseWithoutGeneration (#80) - 20 open +
immediate close without any generation, exercises the half-initialised
worker race closed by the double server.terminate() in jllama.cpp.
- LlamaModelTest#testIteratorTerminatesOnRepetitivePrompt (#95) - asserts
the iterator terminates within nPredict+1 steps on a deliberately
repetitive prompt.
- LlamaEmbeddingsTest#testNomicEmbedLoads (#98) - gated on system
property net.ladenthin.llama.nomic.path; reproduces the reporter's
batch/ubatch config plus the fix (enableEmbedding()), and asserts a
768-dim vector for nomic-embed-text-v1.5.
Wires up the optional nomic GGUF download in the linux-x86_64 Java test
job in .github/workflows/publish.yml. Other test jobs cleanly self-skip
via Assume because the system property is unset.
Documents the local native-build workflow in CLAUDE.md - per-host output
paths, mvn-cmake handoff, optional model handling, and the
restricted-network caveat for environments that block huggingface.co.
https://claude.ai/code/session_01LR7Gw1pyKS7wvxXfZjnxNW
* docs: record #80/#95/#98/#102 regression tests added in 713d426
Updates docs/history/49be664_open_issues.md to reflect that the four
JUnit regression tests called for in the verification plan have been
added on this branch:
- Deep-dive verdict guide now lists each test name and self-skip
behaviour next to its issue bullet
- Per-issue Status blocks for #80, #95, #98, #102 annotated as
"LIKELY FIXED -> FIXED on CI green" with the covering test
- Status overview table rows for the same four issues updated
- "What the original issues actually contain" feasibility table marks
all four as DONE with the commit reference
- "Concrete test plan" gains a status callout noting the as-shipped
implementation matches the sketches
- "Recommended sequencing" step 1 marked DONE and enumerates what
shipped; remaining steps (#86 docs, #103/#34 typed image API, Android
emulator CI) carried forward as the next deliverables
No code or behaviour change, documentation only.
https://claude.ai/code/session_01LR7Gw1pyKS7wvxXfZjnxNW
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 676ffaf commit cba693c
7 files changed
Lines changed: 387 additions & 37 deletions
File tree
- .github/workflows
- docs/history
- src/test/java/net/ladenthin/llama
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
389 | 391 | | |
390 | 392 | | |
391 | 393 | | |
| 394 | + | |
| 395 | + | |
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
| |||
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
407 | | - | |
| 411 | + | |
408 | 412 | | |
409 | 413 | | |
410 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
434 | 512 | | |
435 | 513 | | |
436 | 514 | | |
| |||
0 commit comments