Skip to content

Conversation

@alexander-yevsyukov
Copy link
Collaborator

@alexander-yevsyukov alexander-yevsyukov commented Dec 18, 2025

This PR addresses the #252 issue. The Validation Compiler was adjusted to use the new package at almost all occasions. In some places old interfaces have to be used during the transition process. The interfaces in the old package are now derived from the corresponding interfaces in the new package, and deprecated accordingly.

Other notable changes

  • The Compiler code was improved to use reference to classes or interfaces instead of string literals.
  • Tests that checked that the first event and rejection fields are assumed to be required were removed. This is so because we do not require these fields in v2.0. Only the first command message and entity state fields are assumed required.

Copilot AI review requested due to automatic review settings December 18, 2025 20:21
@alexander-yevsyukov alexander-yevsyukov linked an issue Dec 18, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 11.76471% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.92%. Comparing base (b0eea6c) to head (a876a29).
⚠️ Report is 11 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #253      +/-   ##
============================================
- Coverage     34.99%   34.92%   -0.07%     
  Complexity      276      276              
============================================
  Files           137      137              
  Lines          3049     3055       +6     
  Branches        244      244              
============================================
  Hits           1067     1067              
- Misses         1908     1914       +6     
  Partials         74       74              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR renames the io.spine.validate package to io.spine.validation to address issue #252. The changes update import statements and package declarations across the codebase, while maintaining backward compatibility through deprecated wrapper interfaces in the old package.

Key Changes:

  • Package renamed from io.spine.validate to io.spine.validation throughout the codebase
  • Deprecated wrapper interfaces added in the old package to maintain backward compatibility during transition
  • Version bumped from 2.0.0-SNAPSHOT.378 to 2.0.0-SNAPSHOT.380

Reviewed changes

Copilot reviewed 168 out of 168 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
version.gradle.kts Updated validation version to 2.0.0-SNAPSHOT.380
jvm-runtime/src/main/proto/spine/validate/*.proto Updated java_package option to io.spine.validation
jvm-runtime/src/main/java/io/spine/validation/*.java New package location for validation runtime classes
jvm-runtime/src/main/java/io/spine/validate/*.java Deprecated wrapper interfaces extending new package classes
Multiple test files Updated imports from io.spine.validate to io.spine.validation
java/src/main/kotlin/**/*.kt Updated imports and references to new validation package
pom.xml Updated dependency coordinates and versions
dependencies.md Generated timestamp updates reflecting new build
Comments suppressed due to low confidence (1)

tests/validating/src/test/kotlin/io/spine/test/options/AssumedRequiredITest.kt:1

  • Unused imports removed. These imports were used in the deleted test methods but are no longer needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Dec 18, 2025
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

import io.spine.validate.extractPlaceholders

P0 Badge Update placeholder extractor import to new package

The package rename to io.spine.validation removed extractPlaceholders from io.spine.validate, but this file still imports the old package. With no compatibility shim for that top-level function, the context module will fail to compile due to an unresolved reference; the import needs to point to io.spine.validation.extractPlaceholders instead.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 168 out of 168 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return validate(noParentPath, null);
}
@Deprecated
public interface ValidatableMessage extends io.spine.validation.ValidatableMessage {
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

ValidatableMessage has the same name as its supertype io.spine.validation.ValidatableMessage.

Copilot uses AI. Check for mistakes.
@alexander-yevsyukov alexander-yevsyukov merged commit ab54f67 into master Dec 19, 2025
13 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the io-spine-validation branch December 19, 2025 11:00
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.

Rename io.spine.validate to io.spine.validation

3 participants