Repository navigation
jse: main, with validation that no longer copies the specification - #133
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, fromCPUHybridSolver.cpp): plain counter increments lose updates when the solvers run on several threads. The job fails onmainwithout 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