Skip to content

[2685] Avoid misleading validation diagnostics - #2688

Open
adaussy wants to merge 1 commit into
mainfrom
ada/feature/2685
Open

adaussy wants to merge 1 commit into
mainfrom
ada/feature/2685

Conversation

@adaussy

@adaussy adaussy commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Bug: #2685

#2685

PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW

Auto review

  • Have you reviewed this PR? Please do a first quick review, It is very useful to detect typos and missing copyrights, check comments, check your code... The reviewer will thank you for that :)

Project management

  • Has the pull request been added to the relevant milestone?
  • Have the queue: and review-window: labels been added to the pull request? (In case of doubt, start with the labels queue: triage and review-window: unscheduled)
  • Have the relevant issues been added to the pull request?
  • Have the relevant labels been added to the issues? (package:, type:)
  • Have the relevant issues been added to the same project milestone as the pull request?

Changelog and release notes

  • Has the CHANGELOG.adoc + doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc been updated to reference the relevant issues?
  • Have the relevant API breaks been described in the CHANGELOG.adoc?
  • Are the new / upgraded dependencies mentioned in the relevant section of the CHANGELOG.adoc?
  • In case of a change with a visual impact, are there any screenshots in the doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?
  • In case of a key change, has the change been added to Key highlights section in doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?

Documentation

  • Have you included an update of the documentation in your pull request? Please ask yourself if an update (installation manual, user manual, developer manual...) is needed and add one accordingly.

Tests

  • Is the code properly tested? Any pull request (fix, enhancement or new feature) should come with a test (or several). It could be unit tests, integration tests or cypress tests depending on the context. Only doc and releng pull request do not need for tests.

@adaussy adaussy added this to the 2026.12.0 milestone Nov 27, 2026
@adaussy adaussy self-assigned this Nov 27, 2026
@adaussy adaussy added queue: triage A reviewer needs to evaluate the capacity to review this PR review-window: unscheduled The PR is not scheduled for review labels Nov 27, 2026
@adaussy

adaussy commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Validation on the Batmobile template

I compared the validator before and after this change using the same Batmobile JSON template, standard libraries and dependencies. The comparison calls the backend validation service on an isolated EMF context containing 742 model objects; standard library resources are available for resolution but excluded from validation.

The completed comparison excludes validateNamespaceDistinguishibility from both versions. The original full validation was still running after 207 seconds. Thread samples pointed to pairwise membership comparisons repeatedly computing effective names and traversing inheritance. This is a pre-existing performance problem that should be investigated separately.

Diagnostic changes

Across the remaining 15,004 constraint evaluations:

Result Count
Diagnostics before 1,588
Diagnostics after 1,360
Removed 228
Added 0
Unchanged 1,360

All 228 removed diagnostics correspond to unsuccessful or non-Boolean evaluations. They were previously presented as model violations without a reliable semantic conclusion.

The change also logs 11 unsuccessful checks that previously returned true and produced no model diagnostic. These failures are now identifiable by rule and affected element.

This supports the intended behavior: successfully evaluated model violations remain unchanged, while inconclusive checks no longer produce misleading diagnostics. It does not establish that the Batmobile model is fully valid or that the affected rules have been repaired.

Logging and performance

The existing 977 AQL warning events remain. The validator adds 239 contextual warnings, increasing the captured log volume from approximately 1.18 MB to 1.30 MB per validation. These technical warnings are not returned as user-facing model diagnostics.

After one warm-up pair, three measured pairs were executed in alternating order, with synchronous logging to a local file:

Metric Before After
Median validation time 40.57 s 39.41 s
Observed range 40.26–41.70 s 38.05–39.69 s
Cumulative validation-thread allocations 38.25 GB 37.28 GB

There is no observed performance regression on this sample; the median decreases by approximately 2.9%. Allocations are cumulative temporary allocations, not retained heap usage—the maximum heap was 2 GiB.

Scope and limitations

  • Both versions use identical model data, including two pre-existing unresolved typing targets.
  • The comparison covers the backend service, not the HTTP/UI pipeline.
  • Performance figures exclude validateNamespaceDistinguishibility and cannot be interpreted as full-validation timings.
  • Focused regression tests also cover successful Boolean results, failed evaluations returning true, non-Boolean results, continued execution after a failed check, and application-service diagnostic filtering.

@adaussy
adaussy marked this pull request as ready for review November 27, 2026 14:37
Bug: #2685
Signed-off-by: Arthur Daussy <arthur.daussy@obeo.fr>
@AxelRICHARD AxelRICHARD added queue: scheduled A reviewer and review window have been allocated for this PR review-window: week 4 The PR is scheduled for review in the fourth week of the iteration and removed queue: triage A reviewer needs to evaluate the capacity to review this PR review-window: unscheduled The PR is not scheduled for review labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

queue: scheduled A reviewer and review window have been allocated for this PR review-window: week 4 The PR is scheduled for review in the fourth week of the iteration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid misleading validation diagnostics when AQL constraints cannot be evaluated reliably

3 participants