Skip to content

Commit

Permalink
[OV JS] Activate win validation js api (openvinotoolkit#22534)
Browse files Browse the repository at this point in the history
Validation on windows wasn't activated fully here:
openvinotoolkit#21995
It's a fix.

---------

Co-authored-by: Ilya Lavrenov <[email protected]>
  • Loading branch information
vishniakov-nikolai and ilya-lavrenov authored Feb 2, 2024
1 parent 3fb591a commit fc70b39
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ jobs:
if-no-files-found: 'error'

- name: Upload openvino js package
if: ${{ 'false' }} # 128689
# if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
uses: actions/upload-artifact@v3
with:
name: openvino_js_package
Expand Down Expand Up @@ -364,8 +363,7 @@ jobs:
env:
OPENVINO_JS_DIR: "${{ github.workspace }}\\openvino\\src\\bindings\\js"
OPENVINO_JS_LIBS_DIR: "${{ github.workspace }}\\openvino\\src\\bindings\\js\\node\\bin"
if: ${{ 'false' }} # 128689
# if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API
if: fromJSON(needs.smart_ci.outputs.affected_components).JS_API

steps:
- name: Fetch OpenVINO JS sources
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/include/infer_request.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class InferRequestWrap : public Napi::ObjectWrap<InferRequestWrap> {
/** @brief Checks incoming Napi::Value and calls overloaded infer() method */
Napi::Value infer_dispatch(const Napi::CallbackInfo& info);

// 128760
// 131123
#ifndef _WIN32
/** @brief Checks incoming Napi::Value and asynchronously returns the result of inference. */
Napi::Value infer_async(const Napi::CallbackInfo& info);
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/src/infer_request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void InferRequestWrap::infer(const Napi::Object& inputs) {
Napi::Value InferRequestWrap::get_compiled_model(const Napi::CallbackInfo& info) {
return CompiledModelWrap::wrap(info.Env(), _infer_request.get_compiled_model());
}
// 128760
// 131123
#ifndef _WIN32
void FinalizerCallback(Napi::Env env, void* finalizeData, TsfnContext* context) {
context->native_thread.join();
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/tests/infer_request.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('InferRequest', () => {
});
});

// 128760
// 131123
if (os.platform() !== 'win32') {
it('Test inferAsync(inputData: { [inputName: string]: Tensor })', () => {
inferRequestAsync.inferAsync({ data: tensor }).then(result => {
Expand Down

0 comments on commit fc70b39

Please sign in to comment.