Skip to content

Delete test_get_timeline_plot_with_killed_running_trials#6210

Merged
c-bata merged 2 commits intooptuna:masterfrom
gen740:delete_get_timline_plot_test
Jul 23, 2025
Merged

Delete test_get_timeline_plot_with_killed_running_trials#6210
c-bata merged 2 commits intooptuna:masterfrom
gen740:delete_get_timline_plot_test

Conversation

@gen740
Copy link
Copy Markdown
Member

@gen740 gen740 commented Jul 18, 2025

Motivation

Related to #6206.

test_get_timeline_plot_with_killed_running_trials has become brittle since we introduced pytest-xdist. Under heavy CI load, execution is considerably slower, and the test now fails occasionally.

In addition, the test couples tightly to Plotly’s internal structure:

bar_length_in_milliseconds = figure["data"][1]["x"][0]

Because these internals may change with any Plotly update, the test is easily broken.
Given the maintenance cost and limited benefit, I believe we should remove it.

Description of the changes

  • Delete test_get_timeline_plot_with_killed_running_trials

Copy link
Copy Markdown
Contributor

@nabenabe0928 nabenabe0928 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR, LGTM!

@nabenabe0928 nabenabe0928 added the CI Continuous integration. label Jul 22, 2025
@nabenabe0928 nabenabe0928 added this to the v4.5.0 milestone Jul 22, 2025
@nabenabe0928 nabenabe0928 changed the title Delete test_get_timeline_plot_with_killed_running_trials Delete test_get_timeline_plot_with_killed_running_trials Jul 22, 2025
Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@c-bata c-bata merged commit e09d0c2 into optuna:master Jul 23, 2025
15 of 17 checks passed
@gen740 gen740 deleted the delete_get_timline_plot_test branch October 3, 2025 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants