Skip to content

jse: main, with validation that no longer copies the specification - #133

Merged
danielepanozzo merged 2 commits into
mainfrom
deps/jse-main
Nov 18, 2026
Merged

danielepanozzo merged 2 commits into
mainfrom
deps/jse-main

Conversation

@danielepanozzo

@danielepanozzo danielepanozzo commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Moves the json-spec-engine pin from 81c4dc4 to its current main, 1ca70f0, which brings two changes:

With #131, a solver created again with the same parameters already skips validation. The first creation still validates. With this pin it takes about 1 ms instead of 21 ms (DenseNewton with Eigen::LDLT, macOS arm64, Release).

The unit tests pass (26/26). The wildmeshing toolkit pins the same jse commit (wildmeshing/wildmeshing-toolkit#1193), and its recipes take precedence over this one when polysolve is built inside it.

Coverage job: this also carries 7a15caf from #130, "Use atomic coverage counters" (-fprofile-update=atomic). The runner's lcov 2.4 stops on a negative line count (deque.tcc, from CPUHybridSolver.cpp): plain counter increments lose updates when the solvers run on several threads. The job fails on main without it. The two PRs make the same change, so they merge in either order without a conflict.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ULwCy3KGG3sBouB7ZLaXwF

danielepanozzo and others added 2 commits November 17, 2026 17:10
json-spec-engine main (1ca70f0) has two changes since the pinned
81c4dc4:

- json-spec-engine#9: rules are indexed by pointer once per call instead
  of being copied for every node of the input, about 170x faster with
  byte-identical results (validity, defaults, error log). The first
  creation of a solver, the one that still validates since #131, takes
  1 ms instead of 21 ms (DenseNewton with Eigen::LDLT).
- json-spec-engine#8: clearer error messages when an input entry
  matches no rule. Only the messages change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULwCy3KGG3sBouB7ZLaXwF
Coverage now fails on ubuntu-latest (Ubuntu 26.04, gcov 15): the solvers
run on several threads, plain counter increments lose updates, gcov
reports negative counts, and lcov 2 treats those as an error. The line
it trips on changes between runs. -fprofile-update=atomic makes the
increments atomic.

(cherry picked from commit 7a15caf)
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.36%. Comparing base (98d2db2) to head (2e71cf2).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
- Coverage   78.12%   77.36%   -0.76%     
==========================================
  Files          56       53       -3     
  Lines        3145     3071      -74     
  Branches      413      402      -11     
==========================================
- Hits         2457     2376      -81     
- Misses        688      695       +7     
Flag Coverage Δ
polysolve 77.36% <ø> (-0.76%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielepanozzo
danielepanozzo merged commit 2c11064 into main Nov 18, 2026
17 checks passed
@danielepanozzo
danielepanozzo deleted the deps/jse-main branch November 18, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants