Skip to content

fix: take the upstream EDM into account when reading old schemas - #1019

Open
veprbl wants to merge 1 commit into
AIDASoft:masterfrom
veprbl:pr/upstream_edm
Open

fix: take the upstream EDM into account when reading old schemas#1019
veprbl wants to merge 1 commit into
AIDASoft:masterfrom
veprbl:pr/upstream_edm

Conversation

@veprbl

@veprbl veprbl commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This should make OLD_DESCRIPTIONS usable for downstream models.

BEGINRELEASENOTES

  • Take the upstream EDM into account when re-reading the old and current schemas, so that OLD_DESCRIPTIONS can be used together with UPSTREAM_EDM.

ENDRELEASENOTES

_read_old_schemas re-reads the current and the old datamodel definitions
through a fresh PodioConfigReader in order to compare them, but did not
pass the upstream EDM along. Validation of the freshly read models then
cannot resolve any type coming from the upstream EDM and code generation
fails with e.g.

  DefinitionError: position of component edm4eic::TrackPoint is not a
  builtin type, another component or one from the upstream EDM

This makes OLD_DESCRIPTIONS unusable for any datamodel that is built on
top of an upstream EDM. The comparison itself never needs the upstream
components, it is only the validation of the re-read models that trips
over them, so simply passing the upstream EDM along is enough.

Assisted-by: Claude Opus 5 <noreply@anthropic.com>
@jmcarcell

Copy link
Copy Markdown
Member

Can you expand on what is failing and how?

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.

2 participants