Skip to content

refactor: delete traces of legacy metadata#127

Merged
sovrasov merged 7 commits into
mainfrom
vs/del_meta
May 21, 2026
Merged

refactor: delete traces of legacy metadata#127
sovrasov merged 7 commits into
mainfrom
vs/del_meta

Conversation

@sovrasov
Copy link
Copy Markdown
Contributor

@sovrasov sovrasov commented May 20, 2026

Summary

  • deletes fallbacks to read metadata

Why

  • metadata was not used for quite a while, instead manifest is utilized

Validation

Breaking changes

  • Old models that have metadata only configuration are now not supported

@sovrasov sovrasov marked this pull request as ready for review May 21, 2026 10:59
@sovrasov sovrasov requested a review from a team as a code owner May 21, 2026 10:59
Copilot AI review requested due to automatic review settings May 21, 2026 10:59
Copy link
Copy Markdown
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 removes remaining support for legacy on-disk “metadata” files in the inference stack, standardizing model loading and runner selection around manifest.json.

Changes:

  • Removed metadata.yaml / metadata.json fallback loading and legacy upgrade logic (Manifest.from_legacy_metadata).
  • Updated unit tests and fixtures to write/read manifest.json instead of legacy metadata.
  • Simplified runner factory docs/code to focus on manifest-based runner selection.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/unit/inference/test_model.py Updates tests/helpers to generate manifest.json and removes legacy metadata test cases.
tests/unit/inference/test_manifest.py Removes tests for legacy metadata → manifest upgrade path.
tests/unit/inference/test_callbacks.py Updates callback wiring tests to use manifest.json.
src/physicalai/inference/runners/factory.py Updates runner factory documentation and renames legacy-oriented variables.
src/physicalai/inference/model.py Removes legacy metadata fallback loading and legacy backend extraction.
src/physicalai/inference/manifest.py Deletes Manifest.from_legacy_metadata implementation.

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

Comment thread tests/unit/inference/test_model.py Outdated
Comment thread src/physicalai/inference/runners/factory.py Outdated
Comment thread src/physicalai/inference/model.py
sovrasov and others added 4 commits May 21, 2026 20:45
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
samet-akcay
samet-akcay previously approved these changes May 21, 2026
@sovrasov sovrasov merged commit 011a4eb into main May 21, 2026
16 checks passed
@sovrasov sovrasov deleted the vs/del_meta branch May 21, 2026 12:13
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.

4 participants