Skip to content

v7.3.1: Bounded PDF parser AI path, performance tests out of CI

Choose a tag to compare

@stovak stovak released this 19 Oct 02:39
· 1 commit to main since this release
6b29d67

SwiftCompartido v7.3.1

Summary

Patch release that bounds the PDF parser's Apple Intelligence path and takes performance tests out of CI. PDF imports can no longer stall for minutes on on-device inference: each model page request has a timeout, and the parser falls back to heuristics for the whole document on the first expiry.

Bug Fixes

  • PDFScreenplayParser.Options (useAIConversion, aiPageTimeout, default 30 s per page), a task-local PDFScreenplayParser.options, and a parse(from:options:progress:) overload. On the first page timeout the parser stops using the model and converts the document with heuristics; logged via os.Logger (subsystem SwiftCompartido). (#79)

Testing

  • ParsedFileServiceTests/testParsePDFFile() and PDFScreenplayParserTests pin .heuristicOnly and run deterministically in seconds; one small Apple-Intelligence-gated test (PDFScreenplayParserAIConversionTests) covers the model path and is excluded from CI. (#79)
  • Performance tests (XCTest measure{} / wall-clock timing and the SwiftCompartidoPerformanceTests target) no longer run in CI; make test-perf runs them locally. CI now calls make build / make test-ci, and the test suite skips draft PRs. (#78)
  • make test-one TEST=Target/Suite[/test()] runs a single suite or test.

Packaging

  • Package.swift flipped to remote-only pins for release (SwiftFijos 1.4.1, glosa-av 0.8.1).
  • Codemap refreshed (4586 nodes, 8429 edges).

Full Changelog: v7.3.0...v7.3.1