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

fix(slo): Force using exactly one rolling window as date range by default #183754

Merged
merged 9 commits into from
May 21, 2024

Conversation

kdelemme
Copy link
Contributor

@kdelemme kdelemme commented May 17, 2024

Fix: #183748

Summary

This changes the start date for both ranges used in the historical summary. We now use the startOf("minute") instead of startOf("day") for the start range.
It makes the number of buckets deterministic, e.g. always 7d * 24buckets/d = 168 buckets, or 30d * 6buckets/d = 180 buckets.

Previously, by defining the range as now.minus(7d).startOf("day") to now.startOf("minutes"), we were using different range duration depending on the time of the day.

@kdelemme kdelemme marked this pull request as ready for review May 17, 2024 15:05
@kdelemme kdelemme requested a review from a team as a code owner May 17, 2024 15:05
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@kdelemme kdelemme added release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team labels May 17, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label May 17, 2024
@kibanamachine kibanamachine requested a review from a team as a code owner May 17, 2024 16:06
@@ -14,7 +14,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// failsOnMKI, see https://github.com/elastic/kibana/issues/180481
describe('Trained models list', function () {
this.tags(['failsOnMKI']);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@elastic/ml-ui CI auto commited this for you to review 😅

Copy link
Member

@simianhacker simianhacker left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -46,7 +46,7 @@ const generateEsResponseForRollingSLO = (slo: SLODefinition, overridedRange?: Da
? rollingDurationInDays + overridedRangeInDays
: rollingDurationInDays * 2;
const numberOfBuckets = fullDuration * bucketsPerDay;
const startDay = moment().subtract(fullDuration, 'day').startOf('day');
const startDay = moment().subtract(fullDuration, 'day').startOf('minute');
Copy link
Contributor

@mgiota mgiota May 17, 2024

Choose a reason for hiding this comment

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

@kdelemme Now that you changed to startOf('minute'), maybe you would like to change the name of the current startDay variable? Would startMinute make sense or is it still startDay?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess startRange would be even better

@kdelemme kdelemme removed the request for review from a team May 21, 2024 13:42
@kibana-ci
Copy link
Collaborator

kibana-ci commented May 21, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #43 / dashboard app - group 3 dashboard state Directly modifying url updates dashboard state for embeddable config color parameters on a visualization updates a pie slice color on a hard refresh

Metrics [docs]

Canvas Sharable Runtime

The Canvas "shareable runtime" is an bundle produced to enable running Canvas workpads outside of Kibana. This bundle is included in third-party webpages that embed canvas and therefor should be as slim as possible.

id before after diff
module count - 5410 +5410
total size - 8.8MB +8.8MB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kdelemme kdelemme merged commit 3fc2b89 into elastic:main May 21, 2024
21 checks passed
@kdelemme kdelemme deleted the slo/integration-test-fail branch May 21, 2024 16:43
@kibanamachine kibanamachine added v8.15.0 backport:skip This commit does not require backporting labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.15.0
Projects
None yet
7 participants