Repository navigation
test(csharp): pin parent-relative dotted reference-facet values - #699
Merged
Merged
Conversation
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.
What Changed
server/csharp/MetaObjects.Conformance.Tests/ReferenceFacetTests.csfor ADR-0059 parent-relative dotted values (..::Owner.child) in reference-facet attribute values: one resolves its owner from the declaring package and binds to the target node, one naming another type reportsERR_REF_WRONG_KIND, and one naming no node reportsERR_REF_UNRESOLVED.changelog.d/csharp-parent-relative-dotted-reference-tests.mddescribing the test-only change.Validation
Risk Assessment
✅ Low: The change adds only three tests and a changelog fragment with no source change, and tracing
..::Parcels.api,.dband.nobodyfromacme::subthrough the C# symbol table (which matches the TypeScript lookup) gives the asserted target, canonical spelling and error codes.Testing
Baseline
scripts/ci-local.sh --affected --strict-toolchainsalready passed at this commit. In this turn I randotnet test MetaObjects.Conformance.Tests --filter ReferenceFacetTests(47 of 47 passed, including the three new tests). Those tests run the C# loader in-process on synthetic models, which the rubric does not count as live, so each scenario is untested with live=false. The TypeScript-parity half of the intent was not checked in this run. No source or test files changed in this turn, so broad regression was not re-run and the worktree is clean...::Parcels.apifrom package acme::sub resolves its owner and binds the app node (A_parent_relative_dotted_value_resolves_its_owner)dotnet meta verifyon a disposable model. Not done this turn...::Parcels.db) reports ERR_REF_WRONG_KIND (A_parent_relative_dotted_value_naming_another_type_is_the_wrong_kind)..::Parcels.nobody) reports ERR_REF_UNRESOLVED with the quoted value (A_parent_relative_dotted_value_naming_no_node_is_unresolved)Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
..::Parcels.apifrom package acme::sub resolves its owner and binds the app node (A_parent_relative_dotted_value_resolves_its_owner)dotnet meta verifyon a disposable model. Not done this turn...::Parcels.db) reports ERR_REF_WRONG_KIND (A_parent_relative_dotted_value_naming_another_type_is_the_wrong_kind)..::Parcels.nobody) reports ERR_REF_UNRESOLVED with the quoted value (A_parent_relative_dotted_value_naming_no_node_is_unresolved)scripts/ci-local.sh --affected --strict-toolchainsscripts/ci-local.sh --affected --strict-toolchainsbaseline (passed, from the configured test command)cd server/csharp && dotnet test MetaObjects.Conformance.Tests --filter FullyQualifiedName~ReferenceFacetTests(47 passed)git status clean after run✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.