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

TPE resume test is not working. When enabled, it FAILED randomly. #28

Closed
aramoto99 opened this issue Aug 3, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@aramoto99
Copy link
Collaborator

aramoto99 commented Aug 3, 2022

The contents of the TPE resume test are presumed to be the same as the resume test of the Random search.
https://github.com/aistairc/aiaccel/blob/main/tests/resumption/sphere/test_sphere_tpe_resumption.py

To test the TPE, I made the following changes

class TestSphereRandomResumption(ResumptionTest):

    @classmethod
    def setup_class(cls):
        cls.search_algorithm = aiaccel.search_algorithm_tpe

And,

pytest -s -v tests/resumption/sphere/test_sphere_tpe_resumption.py

The result is sometimes success, sometimes failure.

Error message

FAILED tests/resumption/sphere/test_sphere_tpe_resumption.py::TestSphereRandomResumption::test_run - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/work/result/final_result.result'

I guess, #21 is not fixed completly.

This phenomenon can be reproduced (in some cases) in the current main branch by following the above procedure.

@aramoto99 aramoto99 added the bug Something isn't working label Aug 3, 2022
aramoto99 added a commit that referenced this issue Aug 5, 2022
@aramoto99
Copy link
Collaborator Author

This issue has been resolved with the integration of the database version.
#45

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

No branches or pull requests

1 participant