Repository navigation
Conversation
Signed-off-by: Markus Vahlenkamp <markus.vahlenkamp@nokia.com>
steiler
added a commit
to sdcio/sdc-lite
that referenced
this pull request
Nov 26, 2026
Pseudo-versions track sdcio/data-server#566 and sdcio/yang-parser#41 until those changes are released; released tags lack MustTracer and xpath.Tracer. Signed-off-by: Markus Vahlenkamp <markus.vahlenkamp@nokia.com>
Temporary pseudo-version so this branch builds against the unreleased xpath.Tracer API. Replace with the released yang-parser tag once it is cut. Signed-off-by: Markus Vahlenkamp <markus.vahlenkamp@nokia.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! 🚀 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.
Summary
Adds a
validation.WithMustTraceroption that records everymust-statement evaluation during validation: the program listing, each adapter call (Navigate,GetValue,BreadthSearch,FollowLeafRef) and the VM instruction stream, interleaved in order. This is intended for diagnosing unexpectedmustfailures, and is wired intosdc-lite config validate --trace-mustin the companion PR.pkg/tree/ops/validation/must_tracer.go:MustTracer/MustEvalTracerinterfaces,MustTraceMeta(path, keyless path, schema kind, owner, value, statement, error message),MustTraceOutcome/MustTraceStatus(passed,failed,compile_error,runtime_error,stack_underflow_ignored,skipped), andValidateOption.ValidateOptionintoValidateProcessorParameters.Validate'sctxis not seen by theSharedTaskPoolworkers, so context-based threading would not reach them.muststatements after a compile error, swallowedStack underflow) are emitted only when a tracer is set.Navigateswallowed errors are reported withfallback: "empty_nodeset".No behaviour change when no tracer is passed.
Cross-references
Merge order and CI
This PR uses the
TracerAPI that exists only in the yang-parser PR.go.modtherefore pinsgithub.com/sdcio/yang-parserto the pseudo-version of that PR's branch commit (v0.0.13-0.20261125102718-a0faee863f27) so CI can build.Before merging: replace the pseudo-version with the released yang-parser tag, once the yang-parser PR is merged and released.
Testing
go test -race ./pkg/tree/ops/validation/...go test ./data-server/...(against a localgo.workthat points at the yang-parser branch)