Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[NPUW] Polished NPUW tests fix and added NPUW tests paths to labeler (#27072)

Anastasiya(Asya) Pronina0663325041f1
diff --git a/.github/labeler.yml b/.github/labeler.yml
index 5421d669ed2..daa5375b175 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -76,6 +76,8 @@
'category: NPUW':
- 'src/plugins/intel_npu/src/plugin/npuw/**/*'
+- 'src/plugins/intel_npu/tests/functional/behavior/npuw/**/*'
+- 'src/plugins/intel_npu/tests/unit/behavior/npuw/**/*'
'category: HETERO':
- 'src/plugins/hetero/**/*'
diff --git a/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.cpp b/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.cpp
index 4c6c470d81e..950d80b2793 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.cpp
@@ -243,6 +243,7 @@ void MockPluginBase<DeviceType>::create_implementation() {
.WillByDefault([](const ov::AnyMap& remote_properties) -> ov::SoPtr<ov::IRemoteContext> {
OPENVINO_NOT_IMPLEMENTED;
});
+ // This method is utilized for remote tensor allocation in NPUW JustInferRequest and Weight bank.
ON_CALL(*this, get_default_context)
.WillByDefault([](const ov::AnyMap& remote_properties) -> ov::SoPtr<ov::IRemoteContext> {
return std::make_shared<MockRemoteContext>(device_name);
diff --git a/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.hpp b/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.hpp
index 2cad81b6c13..e8f9e134fcb 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.hpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/npuw/mocks/mock_plugins.hpp
@@ -23,6 +23,9 @@ namespace ov {
namespace npuw {
namespace tests {
+// Need for remote tensor allocation in NPUW JustInferRequest and Weight bank.
+// They utilize "create_host_tensor()" method.
+// TODO: Mock "create_host_tensor()" method and add tests for it.
class MockRemoteContext : public ov::IRemoteContext {
std::string m_name;