feat(sysml-api): add API challenge harness#36
Draft
de4sdv wants to merge 5 commits into
Draft
Conversation
Owner
Author
Stale review — status checkThis draft PR is 2 weeks old (last updated June 26) and is behind What's here: SysML v2 API challenge harness — Path forward:
Tagging @OrkunYilmaz for a decision. |
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
Accept: text/html..sysmldocument.Live evidence
http://127.0.0.1:9000accepted the staged DE4SDV context graph.passed-with-warnings— semantic elements pass; warnings are expected because API Services reassigns element IDs.GET /api/editingcontexts/{editingContextId}/documents/{documentId}Accept: text/htmlfailed-lossy.General Viewand exported representation content to:/tmp/de4sdv-syson-existing/system-context.view.json/tmp/de4sdv-syson-existing/system-context.svg/tmp/de4sdv-syson-existing/system-context.manifest.jsonRoundtrip command exercised
Observed report summary:
{ "summary": {"status": "passed-with-warnings"}, "legs": { "api_seed": "passed-with-warnings", "api_to_textual_snapshot": "passed", "syson_import": "passed", "syson_native_textual_export": "failed-lossy", "syson_supported_graph_export": "passed-with-warnings", "api_reimport": "passed-with-warnings", "semantic_diff": "passed" }, "native_export": {"dependency_count": 0, "bytes": 638} }View publication command exercised
Important limitation: this is tool-specific SysON/Sirius representation publication, not native SysML v2 API view roundtrip. The helper reads
representation_contentfrom the local SysON PostgreSQL container because GraphQL exposes view metadata while the full diagram payload is delivered through Sirius Web diagram runtime/subscription state.Validation
python -m py_compile scripts/syson_exchange.py scripts/sysml_api_challenge.pypython -m unittest discover -s tests -p 'test*.py' -vpython scripts/check_repo.pypython scripts/smoke_test.pygit diff --check