Skip to content

[ML] Clear the change point test window on force_time_shift - #3221

Merged
valeriy42 merged 5 commits into
elastic:mainfrom
valeriy42:fix/dst-force-time-shift-window
Sep 25, 2026
Merged

valeriy42 merged 5 commits into
elastic:mainfrom
valeriy42:fix/dst-force-time-shift-window

Conversation

@valeriy42

Copy link
Copy Markdown
Contributor

Summary

#3209 stopped clearing the change-point test window inside reset() so a level change that also triggers seasonality detection keeps the pre-change samples. force_time_shift still goes through resetChangePointTest, which only called reset(), so samples recorded on the old clock stayed in the window.

resetChangePointTest now calls resetAfterTimeShift, which clears the window and then resets the error moments. reset() and the seasonal handler are unchanged.

@elasticsearchmachine

Copy link
Copy Markdown

Pinging @elastic/ml-core (Team:ML)

@valeriy42 valeriy42 added auto-backport Automatically merge backport PRs when CI passes v9.4.8 v9.5.5 labels Sep 25, 2026

@jan-elastic jan-elastic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@valeriy42
valeriy42 merged commit e3ae484 into elastic:main Sep 25, 2026
24 checks passed
@valeriy42
valeriy42 deleted the fix/dst-force-time-shift-window branch September 25, 2026 16:57
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 9.4
✅ 9.5

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

elastic-vault-github-plugin-prod Bot added a commit that referenced this pull request Sep 25, 2026
…3223)

## Summary

#3209 stopped clearing the change-point test window inside `reset()` so a level change that also triggers seasonality detection keeps the pre-change samples. `force_time_shift` still goes through `resetChangePointTest`, which only called `reset()`, so samples recorded on the old clock stayed in the window.

`resetChangePointTest` now calls `resetAfterTimeShift`, which clears the window and then resets the error moments. `reset()` and the seasonal handler are unchanged.

(cherry picked from commit e3ae484)

Co-authored-by: Valeriy Khakhutskyy <1292899+valeriy42@users.noreply.github.com>
elastic-vault-github-plugin-prod Bot added a commit that referenced this pull request Sep 25, 2026
…3222)

## Summary

#3209 stopped clearing the change-point test window inside `reset()` so a level change that also triggers seasonality detection keeps the pre-change samples. `force_time_shift` still goes through `resetChangePointTest`, which only called `reset()`, so samples recorded on the old clock stayed in the window.

`resetChangePointTest` now calls `resetAfterTimeShift`, which clears the window and then resets the error moments. `reset()` and the seasonal handler are unchanged.

(cherry picked from commit e3ae484)

Co-authored-by: Valeriy Khakhutskyy <1292899+valeriy42@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically merge backport PRs when CI passes :ml >non-issue v9.4.8 v9.5.5 v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants