Skip to content

[Dataset Quality] Fix brittle test which was failing in the midnight job#216260

Merged
achyutjhunjhunwala merged 4 commits intoelastic:mainfrom
achyutjhunjhunwala:bug-fix-brittle-midnight-run-test
Mar 28, 2025
Merged

[Dataset Quality] Fix brittle test which was failing in the midnight job#216260
achyutjhunjhunwala merged 4 commits intoelastic:mainfrom
achyutjhunjhunwala:bug-fix-brittle-midnight-run-test

Conversation

@achyutjhunjhunwala
Copy link
Contributor

@achyutjhunjhunwala achyutjhunjhunwala commented Mar 28, 2025

This PR fixes a bug where the test would run at midnight and due to the odd timing, the index which gets created is asserted for a different date than expected.

With this fix, we don't check the complete index name now by replacing the date assertion part with startWith and endsWith assertions.

@achyutjhunjhunwala achyutjhunjhunwala added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Feature:Dataset Health Team:Obs UX Logs labels Mar 28, 2025
@achyutjhunjhunwala achyutjhunjhunwala self-assigned this Mar 28, 2025
@achyutjhunjhunwala achyutjhunjhunwala requested a review from a team as a code owner March 28, 2025 09:18
@achyutjhunjhunwala achyutjhunjhunwala added the backport:skip This PR does not require backporting label Mar 28, 2025
@achyutjhunjhunwala achyutjhunjhunwala enabled auto-merge (squash) March 28, 2025 09:18
@achyutjhunjhunwala achyutjhunjhunwala added backport:version Backport to applied version labels backport:prev-major v8.16.0 v8.17.5 and removed backport:skip This PR does not require backporting v8.16.0 backport:version Backport to applied version labels v8.17.5 labels Mar 28, 2025
Copy link
Contributor

@yngrdyn yngrdyn left a comment

Choose a reason for hiding this comment

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

LGTM

@achyutjhunjhunwala achyutjhunjhunwala merged commit 0f0ee3a into elastic:main Mar 28, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x

https://github.com/elastic/kibana/actions/runs/14132078669

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

cc @achyutjhunjhunwala

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 28, 2025
…job (elastic#216260)

This PR fixes a bug where the test would run at midnight and due to the
odd timing, the index which gets created is asserted for a different
date than expected.

With this fix, we don't check the complete index name now by replacing
the date assertion part with startWith and endsWith assertions.

(cherry picked from commit 0f0ee3a)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 28, 2025
…job (elastic#216260)

This PR fixes a bug where the test would run at midnight and due to the
odd timing, the index which gets created is asserted for a different
date than expected.

With this fix, we don't check the complete index name now by replacing
the date assertion part with startWith and endsWith assertions.

(cherry picked from commit 0f0ee3a)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts
8.17 Backport failed because of merge conflicts
8.18
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 216260

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Mar 28, 2025
…dnight job (#216260) (#216318)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Dataset Quality] Fix brittle test which was failing in the midnight
job (#216260)](#216260)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Achyut
Jhunjhunwala","email":"achyut.jhunjhunwala@elastic.co"},"sourceCommit":{"committedDate":"2025-03-28T15:13:05Z","message":"[Dataset
Quality] Fix brittle test which was failing in the midnight job
(#216260)\n\nThis PR fixes a bug where the test would run at midnight
and due to the\nodd timing, the index which gets created is asserted for
a different\ndate than expected.\n\nWith this fix, we don't check the
complete index name now by replacing\nthe date assertion part with
startWith and endsWith
assertions.","sha":"0f0ee3a0b8be0182e136f4bb75765d469917ee3b","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","backport:prev-major","Feature:Dataset
Health","v9.1.0","Team:Obs UX Logs"],"title":"[Dataset Quality] Fix
brittle test which was failing in the midnight
job","number":216260,"url":"https://github.com/elastic/kibana/pull/216260","mergeCommit":{"message":"[Dataset
Quality] Fix brittle test which was failing in the midnight job
(#216260)\n\nThis PR fixes a bug where the test would run at midnight
and due to the\nodd timing, the index which gets created is asserted for
a different\ndate than expected.\n\nWith this fix, we don't check the
complete index name now by replacing\nthe date assertion part with
startWith and endsWith
assertions.","sha":"0f0ee3a0b8be0182e136f4bb75765d469917ee3b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216260","number":216260,"mergeCommit":{"message":"[Dataset
Quality] Fix brittle test which was failing in the midnight job
(#216260)\n\nThis PR fixes a bug where the test would run at midnight
and due to the\nodd timing, the index which gets created is asserted for
a different\ndate than expected.\n\nWith this fix, we don't check the
complete index name now by replacing\nthe date assertion part with
startWith and endsWith
assertions.","sha":"0f0ee3a0b8be0182e136f4bb75765d469917ee3b"}}]}]
BACKPORT-->

Co-authored-by: Achyut Jhunjhunwala <achyut.jhunjhunwala@elastic.co>
kibanamachine added a commit that referenced this pull request Mar 28, 2025
…night job (#216260) (#216320)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Dataset Quality] Fix brittle test which was failing in the midnight
job (#216260)](#216260)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Achyut
Jhunjhunwala","email":"achyut.jhunjhunwala@elastic.co"},"sourceCommit":{"committedDate":"2025-03-28T15:13:05Z","message":"[Dataset
Quality] Fix brittle test which was failing in the midnight job
(#216260)\n\nThis PR fixes a bug where the test would run at midnight
and due to the\nodd timing, the index which gets created is asserted for
a different\ndate than expected.\n\nWith this fix, we don't check the
complete index name now by replacing\nthe date assertion part with
startWith and endsWith
assertions.","sha":"0f0ee3a0b8be0182e136f4bb75765d469917ee3b","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","backport:prev-major","Feature:Dataset
Health","v9.1.0","Team:Obs UX Logs"],"title":"[Dataset Quality] Fix
brittle test which was failing in the midnight
job","number":216260,"url":"https://github.com/elastic/kibana/pull/216260","mergeCommit":{"message":"[Dataset
Quality] Fix brittle test which was failing in the midnight job
(#216260)\n\nThis PR fixes a bug where the test would run at midnight
and due to the\nodd timing, the index which gets created is asserted for
a different\ndate than expected.\n\nWith this fix, we don't check the
complete index name now by replacing\nthe date assertion part with
startWith and endsWith
assertions.","sha":"0f0ee3a0b8be0182e136f4bb75765d469917ee3b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216260","number":216260,"mergeCommit":{"message":"[Dataset
Quality] Fix brittle test which was failing in the midnight job
(#216260)\n\nThis PR fixes a bug where the test would run at midnight
and due to the\nodd timing, the index which gets created is asserted for
a different\ndate than expected.\n\nWith this fix, we don't check the
complete index name now by replacing\nthe date assertion part with
startWith and endsWith
assertions.","sha":"0f0ee3a0b8be0182e136f4bb75765d469917ee3b"}}]}]
BACKPORT-->

Co-authored-by: Achyut Jhunjhunwala <achyut.jhunjhunwala@elastic.co>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
…job (elastic#216260)

This PR fixes a bug where the test would run at midnight and due to the
odd timing, the index which gets created is asserted for a different
date than expected.

With this fix, we don't check the complete index name now by replacing
the date assertion part with startWith and endsWith assertions.
@gbamparop gbamparop added Team:obs-onboarding Observability Onboarding Team and removed Team:Obs UX Logs labels Apr 11, 2025
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Feature:Dataset Health release_note:skip Skip the PR/issue when compiling release notes Team:obs-onboarding Observability Onboarding Team v8.18.0 v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants