Skip to content

[add] tests refactoring per backend #296

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 21 commits into from
Feb 24, 2020
Merged

[add] tests refactoring per backend #296

merged 21 commits into from
Feb 24, 2020

Conversation

filipecosta90
Copy link
Collaborator

@filipecosta90 filipecosta90 commented Feb 20, 2020

@lantiga and @rafie this splits the tests per backend and the common ones. It also extends coverage and ensures slave sync when required. The whole purpose is to clean and make the tests clear and remove code duplicates

  • test/includes.py - has the methods to load models, check the env variables, etc...
  • test/tests_common.py - tests for common commands like tensorset
  • test/tests_onnx.py - tests for ONNX backend
  • test/tests_pytorch.py - tests for torch backend
  • test/tests_tensorflow.py - tests for TF backend
  • test/tests_tflite.py - tests for tflite backend

leak fixes:

@filipecosta90 filipecosta90 added this to the 1.0 milestone Feb 20, 2020
…del tests into normal and error behaviour handling -- prioritize leaks
@filipecosta90 filipecosta90 mentioned this pull request Feb 24, 2020
17 tasks
@filipecosta90 filipecosta90 requested a review from rafie February 24, 2020 10:05
@lantiga lantiga merged commit a79c10e into master Feb 24, 2020
@filipecosta90 filipecosta90 deleted the test.refactor branch February 24, 2020 14:46
lantiga pushed a commit that referenced this pull request May 6, 2020
 
[add] tests refactoring per backend (#296)

* [add] tests refactoring per backend

* [add] extended testing

* [add] added specific modelget and scriptget tests on slaves. added tests for ai.info on all backends

* [fix] disabled SCRIPTGET new test since it's hanging CI ( further investigation tbd )

* [fix] disabled SCRIPTGET new test since it's hanging CI ( further investigation tbd )

* [fix] fixing encoding issue on string comparison

* [add] refactored tests_common to test for tensorset and tensorget across all input formats and reply formats

* [add] added modelrun scriptrun disconnect test cases (test for client disconnect during work on background thread)

* [add] increased the GPU tests timeout since we added more tests

* [add] added valgrind options to RLTest. pruned testing.

* [add] added valgrind options to RLTest. pruned testing.

* [fix] fixed leak on RedisAI_ReplicateTensorSet

* [fix] fixed leak on ret->devicestr in RAI_ModelCreateTorch

* [fix] skipping modelrun and scriptrun disconnect on gpu test

* [add] tests prunning for ci

* [fix] fixing gpu tests for CI

* [add] hardened ensureSlaveSynced

* [fix] fixed Makefile in accordance to PR review, [add] splitted tf model tests into normal and error behaviour handling -- prioritize leaks

* Delete MakefileCopy
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

memleak on torchLoadModel small memleak on RedisAI_ReplicateTensorSet
3 participants