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

The Windows CI fails due to timeout. #5099

Closed
HideakiImamura opened this issue Nov 7, 2023 · 6 comments
Closed

The Windows CI fails due to timeout. #5099

HideakiImamura opened this issue Nov 7, 2023 · 6 comments
Labels
bug Issue/PR about behavior that is broken. Not for typos/examples/CI/test but for Optuna itself.

Comments

@HideakiImamura
Copy link
Member

HideakiImamura commented Nov 7, 2023

Expected behavior

I have been observing an issue for the past few days where the Windows CI randomly fails due to timeout, regardless of whether it's a PR or on schedule. It looks something like the following CI: https://github.com/optuna/optuna/actions/runs/6777581250/job/18421473256#step:8:15

All of the CIs appear to fail on the first test case of the visualization features using matplotlib. I have no windows machine to reproduce the error on my local environment.

Environment

  • Optuna version: the current master 523dcc2
  • Python version: 3.9
  • OS: Windows Server 2022
  • (Optional) Other libraries and their versions:

Error messages, stack traces, or logs

Here is the CI's output.

Run pytest -m "not integration"
============================= test session starts =============================
platform win32 -- Python 3.9.13, pytest-7.4.3, pluggy-1.3.0
rootdir: D:\a\optuna\optuna
configfile: pyproject.toml
plugins: jaxtyping-0.2.23, typeguard-2.13.3
collected 4850 items / 839 deselected / 4011 selected

tests\test_callbacks.py .                                                [  0%]
tests\test_cli.py ...................................................... [  1%]
...
tests\trial_tests\test_trial.py ........................................ [ 80%]
........................................................................ [ 81%]
..............................                                           [ 82%]
tests\trial_tests\test_trials.py ....................................... [ 83%]
...                                                                      [ 83%]
tests\visualization_tests\test_contour.py ..
Error: The operation was canceled.

Steps to reproduce

Trigger the windows CI by workflow dispatcher on your fork.

Additional context (optional)

No response

@HideakiImamura HideakiImamura added the bug Issue/PR about behavior that is broken. Not for typos/examples/CI/test but for Optuna itself. label Nov 7, 2023
@not522
Copy link
Member

not522 commented Nov 8, 2023

CI seems to be stuck on the third test in test_contour.py. This is the first test in test_plot_contour, which outputs an image using plotly. I am not sure, but perhaps this issue plotly/Kaleido#110 is related.

@HideakiImamura
Copy link
Member Author

Downgrading kaleido to 0.1.0 will resolve issue according to the comments like plotly/Kaleido#110 (comment). I will hotfix it.

@not522
Copy link
Member

not522 commented Nov 8, 2023

According to the issue, 0.1.0post1 may be better.

@not522
Copy link
Member

not522 commented Nov 10, 2023

Unfortunately, kaleido 0.1.0post1 did not resolve this issue. https://github.com/optuna/optuna/actions/runs/6818449794

@not522
Copy link
Member

not522 commented Jan 10, 2024

In my understanding, there were two problems related to this issue, test_contour.py and test_journal.py. The first one was resolved by Kaleido 0.1.0post1. The second one has not been reproduced in these two months. I think that it is OK to close this issue. If this issue will be reproduced or you have some concerns, please feel free to reopen it.

@not522 not522 closed this as completed Jan 10, 2024
@not522
Copy link
Member

not522 commented Apr 3, 2024

I reopen this issue since the problem with test_journal.py recurred. https://github.com/optuna/optuna/actions/runs/8530596405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue/PR about behavior that is broken. Not for typos/examples/CI/test but for Optuna itself.
Projects
None yet
Development

No branches or pull requests

3 participants