Repository navigation
test(export): pin the import's refusal of an unaddressed transition body ref - #2254
Merged
Merged
Conversation
…n is refused — pin the import's refusal of a referenced element without an address, the case the transitionLink rule never reaches Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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 and why
No tracking issue.
Restores test coverage dropped by #2242. That PR removed the uuid-form sub-case of
TestTransitionBodyBareReferenceSurvivesBesideTheTransitionLink(tests/export/transition_succession_test.go) for a transition bodyref;whose graph states neither an address nor a member index, because the import does not accept such a graph.This PR pins what the import actually does with it: a uuid-form graph that links the
ref;as a body member but has itssysx:positionalNameandsysx:memberIndexremoved is refused with "it is referenced but carries no sysml:qualifiedName". The import names every referenced element from its address before it reads a transition's members, so this refusal is the behaviour a reader of that graph gets.Test-only: one file, +31 lines. No production code, baseline or documentation changes.
How it was verified
On this head, cut from
developat dd08d75:go build ./...andgo vet ./...clean,gofmt -l .emptymake test-shard SHARD=exportpasses (includes the new assertions)python3 scripts/changelog.py checkandpython3 scripts/check-doc-ids.pypassThe
export-examplesshard and the rest of the suite were not run locally for this head; CI covers them.Checklist
make testandmake lintpass locally (not run in full; see above)make docs-countsrun if a gate count moved (none moved)F4,K5) in the body, docs, or changelog🟢 Devin Review found nothing to fix · View findings