• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hrzndhrn / xema / 71b790f3881e92cdec964f4060ca759e495e3b81-PR-185
98%
main: 98%

Build:
Build:
LAST BUILD BRANCH: fix/otp28-regex-serialization
DEFAULT BRANCH: main
Ran 11 Mar 2026 04:36PM UTC
Jobs 1
Files 19
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Mar 2026 03:50PM UTC coverage: 98.074% (-0.1%) from 98.218%
71b790f3881e92cdec964f4060ca759e495e3b81-PR-185

Pull #185

github

André Graf
Fix regex pattern serialization on OTP 28+

OTP 28 migrated from PCRE to PCRE2, changing compiled regex internals
from binary blobs to node-local references. These references become
stale after :erlang.term_to_binary/:erlang.binary_to_term across VM
restarts, causing ArgumentError in Regex.match?/2.

On OTP 28+, compile patterns with the :export option to produce
portable :re_exported_pattern tuples that survive serialization. Strip
:export from the Regex opts so the E modifier doesn't appear in
inspect output, error messages, or Xema.source/0.

Also handle Regex structs passed as pattern_properties keys, upgrading
them to exported form when needed.
Pull Request #185: Fix regex pattern serialization on OTP 28+

8 of 9 new or added lines in 1 file covered. (88.89%)

1 existing line in 1 file now uncovered.

1273 of 1298 relevant lines covered (98.07%)

6519.64 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.86
-3.06% lib/xema/schema.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.86
-3.06% lib/xema/schema.ex
Jobs
ID Job ID Ran Files Coverage
1 71b790f3881e92cdec964f4060ca759e495e3b81-PR-185.1 11 Mar 2026 04:36PM UTC 19
98.07
GitHub Action Run
Source Files on build 71b790f3881e92cdec964f4060ca759e495e3b81-PR-185
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #185
  • PR Base - main (#E0843C79...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc