Skip to content

Verify blob version for cached model#32940

Merged
olpipi merged 11 commits intoopenvinotoolkit:masterfrom
olpipi:blob_verification
Jan 20, 2026
Merged

Verify blob version for cached model#32940
olpipi merged 11 commits intoopenvinotoolkit:masterfrom
olpipi:blob_verification

Conversation

@olpipi
Copy link
Copy Markdown
Contributor

@olpipi olpipi commented Nov 19, 2025

Details:

  • Add c++ struct to store openvino build version. Add a build number parser.
  • Parse compiled blob version and compare it with runtime version
  • Add tests

Tickets:

@github-actions github-actions bot added the category: inference OpenVINO Runtime library - Inference label Nov 19, 2025
@olpipi olpipi changed the title Verify blob version for cached model [WIP] Verify blob version for cached model Nov 19, 2025
@github-actions github-actions bot added the category: TEMPLATE OpenVINO Template plugin label Nov 19, 2025
@github-actions github-actions bot added category: Core OpenVINO Core (aka ngraph) and removed category: TEMPLATE OpenVINO Template plugin labels Nov 27, 2025
@olpipi olpipi marked this pull request as ready for review November 27, 2025 10:09
@olpipi olpipi requested a review from a team as a code owner November 27, 2025 10:09
@olpipi olpipi force-pushed the blob_verification branch from 65f945a to d3e6dab Compare December 2, 2025 17:04
@olpipi olpipi added the pr: needs tests PR needs tests updating label Dec 2, 2025
@olpipi olpipi requested a review from a team as a code owner December 3, 2025 15:15
@olpipi olpipi removed the pr: needs tests PR needs tests updating label Dec 3, 2025
@olpipi olpipi added this to the 2026.0 milestone Dec 3, 2025
@olpipi olpipi changed the title [WIP] Verify blob version for cached model Verify blob version for cached model Dec 3, 2025
@olpipi olpipi force-pushed the blob_verification branch from a8c0431 to 4e94903 Compare December 3, 2025 15:27
@olpipi olpipi requested a review from praasz December 3, 2025 15:28
@olpipi olpipi force-pushed the blob_verification branch from fabf116 to b621a82 Compare December 8, 2025 10:02
@olpipi olpipi requested a review from t-jankowski December 10, 2025 08:40
Comment on lines +84 to +89
bool is_version_compatible(const Version& comparing_version,
const Version& base_version,
const VersionCompatibilityPolicy& policy = {}) {
if (comparing_version > base_version) {
return false;
}
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.

Suggested change
bool is_version_compatible(const Version& comparing_version,
const Version& base_version,
const VersionCompatibilityPolicy& policy = {}) {
if (comparing_version > base_version) {
return false;
}
Make it explicit and if policy is not required we can add simpler version without 3rd parameter and call as first step in this function.
bool is_version_compatible(const Version& comparing_version,
const Version& base_version,
const VersionCompatibilityPolicy& policy) {

size_t max_build_diff = std::numeric_limits<size_t>::max();
};

inline bool is_version_compatible(const Version& older_version,
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.

Can some doxy for this utils be added?
To have quick hint which version is compatible with and how policy is used.

Is there a test where e.g OV version 27.0 introduce compatibility brake, all caches before 2027 are not compatible. Is possible to apply such change in code?

@olpipi olpipi force-pushed the blob_verification branch from ed94537 to 3c41d17 Compare January 7, 2026 15:31
@olpipi olpipi force-pushed the blob_verification branch from 4fde7a7 to c604a4f Compare January 19, 2026 09:47
@olpipi olpipi requested a review from praasz January 19, 2026 16:18
@praasz praasz self-assigned this Jan 20, 2026
@olpipi olpipi added this pull request to the merge queue Jan 20, 2026
Merged via the queue into openvinotoolkit:master with commit 9333582 Jan 20, 2026
211 checks passed
@olpipi olpipi deleted the blob_verification branch January 20, 2026 14:09
Naseer-010 pushed a commit to Naseer-010/openvino that referenced this pull request Feb 18, 2026
### Details:
- Add c++ struct to store openvino build version. Add a build number
parser.
 - Parse compiled blob version and compare it with runtime version
 - Add tests

### Tickets:
 - CVS-176170
 - CVS-176185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: Core OpenVINO Core (aka ngraph) category: inference OpenVINO Runtime library - Inference Code Freeze

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants