Skip to content

Comments

Improve XML schema validation#18608

Merged
wborn merged 1 commit intoopenhab:mainfrom
holgerfriedrich:pr-schema-validation-2
Apr 26, 2025
Merged

Improve XML schema validation#18608
wborn merged 1 commit intoopenhab:mainfrom
holgerfriedrich:pr-schema-validation-2

Conversation

@holgerfriedrich
Copy link
Member

@andrewfg FYI
This finally fixes the issue mentioned in #18579 (comment).
Validation now takes place in subprojects under bundles, and is suppressed in directory bundles.
This speeds up the build and avoids that all xml files are validated in the beginning of the build and later again in each plugin.

@holgerfriedrich holgerfriedrich requested a review from a team as a code owner April 25, 2025 19:48
* Move validation to subprojects, skip on top level to avoid double
  execution using a marker file (regression, openhab#18579)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@holgerfriedrich holgerfriedrich force-pushed the pr-schema-validation-2 branch from bd1faec to 02db3e0 Compare April 25, 2025 19:50
@holgerfriedrich holgerfriedrich changed the title Improve XML schema validation (#18581) Improve XML schema validation Apr 25, 2025
@holgerfriedrich holgerfriedrich added the infrastructure Build system and Karaf related issues and PRs label Apr 25, 2025
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

Hopefully this would also make the builds fail less often, due to error 522 when validating the XML.

Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Thanks

@wborn wborn merged commit 8ecbbbf into openhab:main Apr 26, 2025
3 checks passed
@wborn wborn added this to the 5.0 milestone Apr 26, 2025
@holgerfriedrich holgerfriedrich deleted the pr-schema-validation-2 branch April 26, 2025 22:41
phenix1990 pushed a commit to phenix1990/openhab-addons that referenced this pull request Jul 31, 2025
* Move validation to subprojects, skip on top level to avoid double
  execution using a marker file (regression, openhab#18579)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Build system and Karaf related issues and PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants