DataBiosphere / terra-notebook-utils

Utilities for the Terra notebook environment.
MIT License
7 stars 6 forks source link

Flaky test. #378

Open DailyDreaming opened 2 years ago

DailyDreaming commented 2 years ago

Some of the table function testing appears to be failing every few days or so without changes and is flaky:

https://biodata-integration-tests.net/xbrianh/terra-notebook-utils/-/jobs/168842

======================================================================
ERROR: test_table (__main__.TestTerraNotebookUtilsTable) [build table]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_table.py", line 37, in test_table
    tnu_table.put_rows(table, expected_rows.values())
  File "/builds/xbrianh/terra-notebook-utils/terra_notebook_utils/table.py", line 266, in put_rows
    return [tw.put_row(item) for item in items]
  File "/builds/xbrianh/terra-notebook-utils/terra_notebook_utils/utils.py", line 38, in __exit__
    self.prune_futures()
  File "/builds/xbrianh/terra-notebook-utils/terra_notebook_utils/utils.py", line 22, in prune_futures
    f.result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/builds/xbrianh/terra-notebook-utils/terra_notebook_utils/table.py", line 138, in _do_fiss_upload
    fiss().upload_entities(self._workspace_namespace,
  File "/root/venv/lib/python3.8/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.firecloud.org/api/workspaces/firecloud-cgl/terra-notebook-utils-tests/flexibleImportEntities
======================================================================
FAIL: test_table (__main__.TestTerraNotebookUtilsTable) [get table]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_table.py", line 49, in test_table
    self.assertEqual(expected_rows, fetched_rows)
AssertionError: {'f4b99639-5128-42fd-bd4c-205940a5f6dd': Ro[158083 chars]95})} != {'0046ac56-6ffb-412b-87b7-8b979975b7ba': Ro[128056 chars]x'})}
Diff is 492684 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_table (__main__.TestTerraNotebookUtilsTable) [destroy_table]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_table.py", line 56, in test_table
    self.assertEqual(0, len(fetched_rows))
AssertionError: 0 != 10
----------------------------------------------------------------------