Skip to content

E2E demo support#9

Open
Lurkerpas wants to merge 1 commit intomainfrom
feature-mbep#60-e2e-workflow
Open

E2E demo support#9
Lurkerpas wants to merge 1 commit intomainfrom
feature-mbep#60-e2e-workflow

Conversation

@Lurkerpas
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds End-to-End (E2E) demo support for generating sequence diagrams from MSC (Message Sequence Chart) files using the SpaceCreator tool. The implementation provides an example of how to automatically generate documentation with embedded E2E diagrams from project artifacts.

Changes:

  • Added shell script and template to generate E2E documentation with diagrams
  • Added sample MSC file demonstrating CAN communication sequence
  • Updated project file to include the new MSC file

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
examples/generate_e2e.sh Shell script to execute template processor for both MD and DOCX output formats
examples/e2e-demo.tmplt Mako template with Python code to discover MSC files, generate diagrams via SpaceCreator, and produce markdown documentation
examples/demo-project/demo-project.pro Updated DISTFILES to include the new can-acquisition.msc file
examples/demo-project/can-acquisition.msc Sample MSC file defining a CAN acquisition sequence with four service instances

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +15 to +18
for candidate in ["interfaceview.xml"]:
if os.path.exists(candidate):
interfaceview_xml = candidate
break
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The loop iterates over a list with only one element. This loop structure is unnecessary and could be simplified to a direct if statement: 'if os.path.exists("interfaceview.xml"): interfaceview_xml = "interfaceview.xml"'. Alternatively, if multiple candidates were intended, the list could be expanded.

Suggested change
for candidate in ["interfaceview.xml"]:
if os.path.exists(candidate):
interfaceview_xml = candidate
break
if os.path.exists("interfaceview.xml"):
interfaceview_xml = "interfaceview.xml"

Copilot uses AI. Check for mistakes.
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.

4 participants