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

Unskip _shared_links.ts functional test #198947

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

kertal
Copy link
Member

@kertal kertal commented Nov 5, 2024

Summary

Fixes #196627

This is a workaround to unskip this test. The underlying test failure is independent of any code change in this area, it was starting with an upgrade of the chrome functional test driver. It cause the order of error message in the given case to be different, and therefore the test started to fail. This is not a great fix, it just checks for the 2nd toast (there are 3 identical ones here 🙈 , and therefore it's not flaky anymore, but given this is not a bug fix, but a flaky behavior fix for 7.17, I think it can be justified)

It doesn't fail in main, there's a different logic in place, and the issue of having multiple toasts was fixed there
CleanShot 2024-11-06 at 10 00 14

When it fails locally, there are plenty of toasts and if the order is like in the described case, the tests fails. with this fix, it no longer doesn. because the 2nd toast will always contain the right message the tests expects

image

Checklist

@kertal kertal added the Feature:Discover Discover Application label Nov 5, 2024
@kertal kertal self-assigned this Nov 5, 2024
@kertal
Copy link
Member Author

kertal commented Nov 5, 2024

/ci

@kertal kertal changed the title Unskip functional test Unskip _shared_links.ts functional test Nov 5, 2024
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7341

[✅] OSS CI Group 6: 25/25 tests passed.
[✅] Default CI Group 6: 25/25 tests passed.

see run history

@kertal kertal added backport:skip This commit does not require backporting Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Nov 6, 2024
@kertal kertal marked this pull request as ready for review November 6, 2024 09:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kertal kertal requested a review from a team November 6, 2024 09:04
@kertal kertal added the release_note:skip Skip the PR/issue when compiling release notes label Nov 6, 2024
Copy link
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

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

Thanks!

Wonder if it would be better to go through all visible toasts and check if at least one contains the message.

@kertal
Copy link
Member Author

kertal commented Nov 6, 2024

Thanks!

Wonder if it would be better to go through all visible toasts and check if at least one contains the message.

I do agree, and we are using better logic in main, but do you think it's worth the effort in this case (I definitely would be in main, 8.x)

@jughosta
Copy link
Contributor

jughosta commented Nov 6, 2024

I am fine with keeping it this way if it works and is stable.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @kertal

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 Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants