Skip to content

test(export): pin the import's refusal of an unaddressed transition body ref - #2254

Merged
HuiJun merged 1 commit into
developfrom
test/transition-unaddressed-body-ref-coverage
Nov 15, 2026
Merged

HuiJun merged 1 commit into
developfrom
test/transition-unaddressed-body-ref-coverage

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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 body ref; 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 its sysx:positionalName and sysx:memberIndex removed 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 develop at dd08d75:

  • go build ./... and go vet ./... clean, gofmt -l . empty
  • make test-shard SHARD=export passes (includes the new assertions)
  • python3 scripts/changelog.py check and python3 scripts/check-doc-ids.py pass

The export-examples shard and the rest of the suite were not run locally for this head; CI covers them.

Checklist

  • make test and make lint pass locally (not run in full; see above)
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (none applies: test-only)
  • Changelog entry: none, the change is test-only
  • baselines regenerated and make docs-counts run if a gate count moved (none moved)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

🟢 Devin Review found nothing to fix · View findings

Devin Review

…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>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@HuiJun
HuiJun added this pull request to the merge queue Nov 15, 2026
Merged via the queue into develop with commit 0571f4f Nov 15, 2026
30 checks passed
@HuiJun
HuiJun deleted the test/transition-unaddressed-body-ref-coverage branch November 15, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant