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

Unit tests on Windows run forever #296

Closed
niklassiemer opened this issue Jul 28, 2021 · 4 comments · Fixed by #308
Closed

Unit tests on Windows run forever #296

niklassiemer opened this issue Jul 28, 2021 · 4 comments · Fixed by #308
Assignees
Labels
bug Something isn't working

Comments

@niklassiemer
Copy link
Member

And if I cancel them, they have e.g. the following error: (#289). Right now, we have more failed CI runs in our master than successful ones! Can someone relate the problems on Windows to some recent changes in the data base code?

Traceback (most recent call last):
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\database\generic.py", line 578, in get_item_by_id
    return self.__get_items("id", int(item_id))[-1]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Miniconda\envs\test\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "C:\Miniconda\envs\test\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\job\generic.py", line 1663, in multiprocess_wrapper
    job_wrap = JobWrapper(
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\job\wrapper.py", line 50, in __init__
    self.job = pr.load(int(job_id))
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\project\generic.py", line 757, in load
    return self.load_from_jobpath(
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\project\generic.py", line 777, in load_from_jobpath
    job = jobpath(db=self.db, job_id=job_id, user=self.user)
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\job\path.py", line 468, in __init__
    db_entry = db.get_item_by_id(job_id)
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\database\generic.py", line 585, in get_item_by_id
    raise IndexError(
IndexError: ('Error when trying to find elements by given Job ID: ', IndexError('list index out of range'))
Coverage.py warning: Module pyiron_atomistics was never imported. (module-not-imported)
Coverage.py warning: No data was collected. (no-data-collected)
EProcess Process-2:
Traceback (most recent call last):
  File "C:\Miniconda\envs\test\lib\site-packages\pyiron_base\database\generic.py", line 578, in get_item_by_id
    return self.__get_items("id", int(item_id))[-1]
IndexError: list index out of range
@niklassiemer niklassiemer added the bug Something isn't working label Jul 28, 2021
@niklassiemer
Copy link
Member Author

Looking through the last merged PRs it seems like PR #241 introduced the breaking of the CI for Windows.

@niklassiemer niklassiemer linked a pull request Aug 2, 2021 that will close this issue
@jan-janssen
Copy link
Member

But why did it work when we disabled the non_modal tests?

@niklassiemer
Copy link
Member Author

It was more related to change which branch is tested. In that branch I changed what is tested: branch itself instead of the merge see #302

@jan-janssen
Copy link
Member

ok, thanks again for looking into this @niklassiemer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants