Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

test: add file cache for node tests #120

Merged
merged 2 commits into from
Apr 10, 2019

Conversation

fs-eire
Copy link
Contributor

@fs-eire fs-eire commented Apr 3, 2019

This change introduce a memory file cache for node tests.

There are several hundreds of node test cases in suite test. The current test runner behavior is to use fetch() to request every .onnx .pb files (for models and inputs/outputs). This means a lot of HTTP requests, and it makes trouble when running tests in BrowserStack, which usually ends up with a timeout failure.

This change introduce a filePath-to-fileContent in-memory map as a file cache. The file content is preloaded and cooked into testdata.js, which reduces the request number significantly.

@fs-eire fs-eire merged commit 572301b into microsoft:master Apr 10, 2019
@fs-eire fs-eire deleted the test-file-cache branch April 10, 2019 00:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants