Repository navigation
Typed errors (TE-O-01, part 3 of 3): the B-rep editor's p2 failures become named causes or reviewed defects (#19831) - #19914
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
#19831 is already claimed by someone else. If this PR duplicates their work, please close it or offer to help there. |
f561f2e to
06d2b8d
Compare
06d2b8d to
4ebdf81
Compare
4ebdf81 to
f26cc60
Compare
…ome named causes or reviewed defects (tangency-labs#19831) Stacked on part 1 (tangency-labs#19871). Every counted site of topology/brep/p1.rs keeps its status and becomes a named cause, a Defect with its reason, or is deleted where it cannot be reached; p1.rs leaves the topology phrase pin list. Co-Authored-By: Claude Code <noreply@anthropic.com>
…ome named causes or reviewed defects (tangency-labs#19831) Stacked on part 1 (tangency-labs#19871). Every counted site of topology/brep/p2.rs keeps its status and becomes a named cause, a Defect with its reason, or is deleted where it cannot be reached; p2.rs leaves the topology phrase pin list. Co-Authored-By: Claude Code <noreply@anthropic.com>
f26cc60 to
3822e23
Compare
Conflict in error/topology.rs: both sides added causes to the same kind() arms; kept both. NoTrimmedBSpline came in from tangency-labs#19962 word for word (same status, class and text); this branch's copy is dropped and p1 uses the one on main. Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
create_edge_edge_blend filed an edge use without edge as a defect. The edge uses are the caller's and B-rep links are not checked on the way in, as for the same condition in the corner blend, so it is a named invalid-input cause, TopologyFailure::EdgeuseWithoutEdge, keeping SM_ERR_INVALID_INPUT. Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
#19913 has landed. Merge main here and push, and it goes in once green. Update, to make the merge quicker: this is where it conflicts with current main:
git fetch https://github.com/tangency-labs/solidcraft.git main
git merge FETCH_HEAD
# resolve the files above, then
git add -A && git commit --no-edit && git push |
Co-Authored-By: Claude Code <noreply@anthropic.com>
4cf7c09
main's tangency-labs#19914 converted brep/p2.rs, so the topology phrase-cause pin list is empty; topology_failed and topology_missing lost their last callers and go, as geom_failed did. Co-Authored-By: Claude Code <noreply@anthropic.com>
Change
Part of #19831 (TE-O-01 of #19799), part 3 of 3: this pull request converts
topology/brep/p2.rs. It builds on part 1 (#19871, merged), which addedEditingDisabled,CurveNotBSplineand the per-cause test this one extends, and follows part 2 (#19913, merged).Each of the 16 counted sites keeps its status and ends as one outcome of section 6 of
solidcore/docs/failure-codes-and-reproduction.md:EditingDisabled,VertexNotInRegion { at_end },NotLamina,LaminaNeighbourBound,HitNotOnBoundary(classinvalid_input);CurveNotBSpline(classunsupported);NoRadialSector,NoMatingCurve(empty searches, rule 7),HitAtRayStart { distance, tolerance },CoincidenceUndecided(classfailed).Defect { why }where the check reads the B-rep's own links: the lamina edge use's face, and a vertex use that belongs to neither an edge nor a loop (a shell vertex returns before that branch).The line
topology/brep/p2.rsis gone fromthe_topology_phrase_cause_sites_only_shrink.Why one PR: it is one file of the three-part split, and its causes, their test and its pin line only make sense together.
Each site's outcome (lines on main at 11bf7c1)
Changes a default: no
Test change: the edit-lock test in
p2.rsasserted the old phrase; it now assertsEditingDisabled, status unchanged.Validation
Full gate (
sc_gate_v2.sh 1 te-19831-p2-v2 <worktree> <out-dir> --full) at 8a70217, stacked on part 2 at 4009e0c withmainad31644 merged in:RESULT pass. fmt, clippy-D warnings, wasm, panic sites,cargo nextestof the workspace (8237 run, 8237 passed, 0 failed, 59 skipped) and deny are green.Not run: the test suites of crates this change does not touch, doctests, publish dry run and the kernel rig, left to CI.
Units: topology.brep_p2
In scope: every counted site of
topology/brep/p2.rsand its pin lineOut of scope: the other files of #19831 (part 1 #19871, merged; part 2 #19913 for
p1.rs, merged)Screenshots of the behavior (when observable)
Nothing to show: no result changes, only the class and the message of a failure.
Integration status
Part 2 (#19913) has landed;
mainat e5199bc, which contains it, is merged into this branch, so the diff shows part 3 only. After that mergecargo xtask fast --no-testsand the goldens oftopology.brep_p2were run again; the full gate above is from before it.error/topology.rskeeps the causes of #19960, #18887, #19905, #19971 and #20010 and gives each new cause its row in the status table.HitAtRayStartstays its own cause beside #19905'sRayHitsAtStart: it carries the ray parameter and the tolerance the check compared.Co-written and tested with Claude Code (AI).
Summary by CodeRabbit