jamesnetherton opened a new pull request, #9632:
URL: https://github.com/apache/camel-quarkus/pull/9632
### Problem
The `integration-tests-alternative-platform (windows-latest)` CI job
intermittently fails on `Langchain4jIngestTikaTest.pdfIsParsedAndIngested` with
a 3-minute `ConditionTimeoutException`.
The root cause is PDFBox: the first PDF parse on a Windows runner triggers
`FileSystemFontProvider` to scan the system fonts and build its on-disk cache
("147 new font files found, font cache will be re-built"). On Windows CI
runners this build is pathologically slow (~3 min) and the saved cache restore
is unreliable — the same problem already documented in `FopTest` and `PdfTest`.
It surfaced in `langchain4j-ingest` only because that module happens to
parse a PDF *first* in the reactor (module order), so it races the very cache
build it kicks off. `TikaTest` looked fine only because `langchain4j-ingest`
had already built the cache earlier in the same run.
The fixture is not the differentiator: a freshly-built Standard14 Helvetica
PDF triggers the identical scan on parse, so regenerating `pump.pdf` does not
help.
### Fix
Skip the font-cache-building tests on GitHub Actions Windows runners,
mirroring the existing precedent in `FopTest` and `PdfTest`:
```java
Assumptions.assumeFalse(OS.current().equals(OS.WINDOWS) &&
"true".equals(System.getenv("CI")));
```
- `TikaTest`: whole-class `@BeforeEach` guard (all its PDF tests build the
cache; future PDF tests are auto-covered).
- `Langchain4jIngestTikaTest`: method-level guard on
`pdfIsParsedAndIngested` only — the other 8 tests parse HTML (no PDFBox font
cache) and keep their Windows coverage.
Linux JVM + native coverage (including the native `Langchain4jIngestTikaIT`)
is unaffected; the scan is fast and reliable there.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]