Skip to content

Fix Go SDK generation for metamodel V3.2 - #841

Open
chris-koo wants to merge 1 commit into
eclipse-aascw:mainfrom
chris-koo:chriskoo/fix-golang-v3.2-generation
Open

chris-koo wants to merge 1 commit into
eclipse-aascw:mainfrom
chris-koo:chriskoo/fix-golang-v3.2-generation

Conversation

@chris-koo

Copy link
Copy Markdown

Closes #840

Generated V3.2 verification fails to compile when descendant slices
are passed to base-interface slice parameters. Valid reference
identifiers also fail verification, while XML round-trips fail on
formatting whitespace and equivalent lexical representations.

We convert mismatching read-only verification slices, preserving
nil, and retain escaping for encoded regex metacharacters.

We skip formatting whitespace before XML closing tags and compare
decoded round-trip values. Equivalent forms such as 42.0 and 42
can pass while changes to the data still fail.

We format relative diagnostic paths with as_posix() so Windows
and Linux produce the same error messages.

We add regression coverage and regenerate the affected goldens.

Validation

  • Black, ssort, and mypy pass.
  • All 40 Go golden tests pass, including the Windows diagnostic-path
    case.
  • Go helper and regex regression tests pass.
  • All 38 Go generator cases compile; the 35 cases with fixtures
    pass their live tests.
  • The generated V3.2 SDK compiles and all 1,716 SDK tests pass,
    using separately corrected V3.2 testdatagen fixtures.

We convert read-only verification slices such as ``[]ISomeItem``
to ``[]IAbstractItem`` so V3.2 verification compiles. We also
escape encoded regex metacharacters such as ``\x5B`` so valid
reference identifiers pass verification.

We tolerate whitespace between XML elements and compare decoded
round-trip values, allowing equivalent forms such as ``42.0`` and
``42``. We add regression coverage and regenerate affected goldens.

Validation: Black, ssort, mypy; 49 unit/golden tests; 38 Go cases;
1,716 V3.2 SDK tests with corrected testdatagen fixtures.
@mristin

mristin commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Hi @chris-koo !

Thanks a lot for this submission! Would you please split it up in separate PRs so that we can review them in isolation? I also expect more problems with V3.2, sosplitting up into smaller fixes would make it easier to figure out better PR titles and descriptions.

@aaronzi @empwilli can you please guide @chris-koo if needed since my availability is limited at the moment?

@aaronzi

aaronzi commented Oct 9, 2026

Copy link
Copy Markdown
Member

Yes, will do @mristin. Christian is from my team.

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.

Generated Go SDK for metamodel V3.2 fails compilation and tests

3 participants