AlexsLemonade / refinebio

Refine.bio harmonizes petabytes of publicly available biological data into ready-to-use datasets for cancer researchers and AI/ML scientists.
https://www.refine.bio/
Other
128 stars 19 forks source link

Fix test_smasher AssertionError: Processor job failed, but for an incorrect reason issue #3212

Closed arkid15r closed 1 year ago

arkid15r commented 1 year ago

Context

In order to restore staging/prod deploy process CI/CD tests need to be fixed.

Problem or idea

======================================================================
FAIL: test_create_compendia (tests.processors.test_compendia.CompendiaTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/tests/processors/test_compendia.py", line 149, in test_create_compendia
    self.assertFailed(job, "k must be between 1 and min(A.shape)")
  File "/home/user/tests/utils.py", line 55, in assertFailed
    raise self.failureException(
AssertionError: Processor job failed, but for an incorrect reason.
We expected the reason to contain 'k must be between 1 and min(A.shape)' but the actual reason was 'Unhandled exception caught while running processor function _run_iterativesvd in pipeline: `k` must be an integer satisfying `0 < k < min(A.shape)`.'

Solution or next step

Resolve AssertionError.

arkid15r commented 1 year ago

Fixed in https://github.com/AlexsLemonade/refinebio/pull/3233