Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Flaky test. #378

Open
DailyDreaming opened this issue Feb 4, 2022 · 0 comments
Open

Flaky test. #378

DailyDreaming opened this issue Feb 4, 2022 · 0 comments

Comments

@DailyDreaming
Copy link
Member

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
----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant