Skip to content

Unhide warning when schema test is skipped - #1658

Merged
scpeters merged 6 commits into
mainfrom
scpeters/unhide_schema_test_skipped_warning
Aug 14, 2026
Merged

Unhide warning when schema test is skipped#1658
scpeters merged 6 commits into
mainfrom
scpeters/unhide_schema_test_skipped_warning

Conversation

@scpeters

Copy link
Copy Markdown
Member

🦟 Bug fix

Unhides a warning added in #1655

Summary

The schema integration test fails when run with very new versions of xmllint. This was discovered when adding CI with Ubuntu 26.04 in #1655, and logic to disable the test with a warning was added in that PR. Unfortunately, the warning is not currently being reported due to the order in which gz_build_warning is processed in gz_configure_build even though the test is skipped:

This unhides the warning by switching to message(WARNING ""), in a similar manner to gazebosim/gz-transport#565.

Checklist

  • Signed all commits for DCO
  • Added a screen capture or video to the PR description that demonstrates the fix (as needed)
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • Updated Bazel files (if adding new files). Created an issue otherwise.
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.

Backports: If this is a backport, please use Rebase and Merge instead.

Signed-off-by: Steve Peters <scpeters@intrinsic.ai>
@scpeters

Copy link
Copy Markdown
Member Author

From Ubuntu Resolute CI:

  CMake Warning at test/integration/CMakeLists.txt:89 (message):
    xmllint version is too new (21502).  schema_test won't be run

@scpeters
scpeters marked this pull request as ready for review May 12, 2026 20:54
@scpeters
scpeters requested a review from azeey as a code owner May 12, 2026 20:54
Comment thread test/integration/CMakeLists.txt Outdated

@caguero caguero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me. A few comments on the surrounding xmllint block.

Comment thread test/integration/CMakeLists.txt Outdated
Comment thread test/integration/CMakeLists.txt Outdated
@github-project-automation github-project-automation Bot moved this from Inbox to In review in Core development Aug 13, 2026
Add TODO with link to bug to convert back to WARNING
when bug is fixed on Ubuntu 26.04

Signed-off-by: Steve Peters <scpeters@intrinsic.ai>
* Quote string variables in case they are empty
* Warn on empty version string
* Warn on version string below 10000 to handle
  dot-decimal strings such as 2.15.1 instead of
  21501

Signed-off-by: Steve Peters <scpeters@intrinsic.ai>
@scpeters
scpeters enabled auto-merge (squash) August 14, 2026 01:15
@scpeters
scpeters merged commit 2ace536 into main Aug 14, 2026
15 checks passed
@scpeters
scpeters deleted the scpeters/unhide_schema_test_skipped_warning branch August 14, 2026 01:44
@github-project-automation github-project-automation Bot moved this from In review to Done in Core development Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants