Skip to content

CVS-188392_CVS-188393_enable_automatic_detection_task_and_pooling - #4658

Open
ngrozae wants to merge 3 commits into
mainfrom
CVS-188392_CVS-188393_enable_automatic_detection_task_and_pooling
Open

ngrozae wants to merge 3 commits into
mainfrom
CVS-188392_CVS-188393_enable_automatic_detection_task_and_pooling

Conversation

@ngrozae

@ngrozae ngrozae commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

🛠 Summary

Add automatic task/pooling detection to testing

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI balanced review requested due to automatic review settings October 15, 2026 14:09

Copilot AI 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.

🟡 Changes recommended

The task-detection flag is unused, so tests supplying explicit tasks still bypass automatic detection.

1 open finding
What changed in this PR

Adds functional-test configuration for automatic task and pooling detection in OVMS.

Changes:

  • Adds default-enabled task and pooling detection flags.
  • Omits explicit pooling in Docker and binary launchers when detection is enabled.
  • Adds an embeddings pooling log-message constant.
File Description
tests/​functional/​object_model/​ovms_docker.py Applies pooling detection to Docker launches.
tests/​functional/​object_model/​ovms_binary.py Applies pooling detection to binary launches.
tests/​functional/​constants/​ovms_messages.py Adds a pooling log-message template.
tests/​functional/​config.py Defines task and pooling detection flags.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

huggingface_token = os.environ.get("TT_HUGGINGFACE_TOKEN") or get_token_value(huggingface_token_file_path, "")

""" TT_ENABLE_TASK_DETECTION - during model pull/export use task automatically detected by OVMS """
enable_task_detection = get_bool("TT_ENABLE_TASK_DETECTION", True)
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.

2 participants