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

[Discover] Unskip functional discover request counts test and skip ES|QL part #205690

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kertal
Copy link
Member

@kertal kertal commented Jan 7, 2025

Summary

Resolves #205344

This PR is unskipping the main test, and unskipping the ES|QL part (for now, since it high likely needs to be rewritten to be unskipped, but we should not remove the code, even when skipped, it is valuable for testing)

Checklist

@kertal kertal self-assigned this Jan 7, 2025
@kertal kertal added 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. labels Jan 7, 2025
@kertal
Copy link
Member Author

kertal commented Jan 7, 2025

/ci

.getEntries()
.filter((entry: any) => ['fetch', 'xmlhttprequest'].includes(entry.initiatorType))
);
await retry.tryWithRetries(
Copy link
Member Author

Choose a reason for hiding this comment

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

I've rewrote this part, because it's simpler for debugging. when starting this test, going to get a coffee, tryWithRetries failes earlier than try. And it makes no sense here to wait too long

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @kertal

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

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

[✅] test/functional/apps/discover/group3/config.ts: 25/25 tests passed.

see run history

@kertal kertal marked this pull request as ready for review January 7, 2025 13:57
@kertal kertal requested a review from a team as a code owner January 7, 2025 13:57
@elasticmachine
Copy link
Contributor

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

.filter((entry: any) => ['fetch', 'xmlhttprequest'].includes(entry.initiatorType))
);
await retry.tryWithRetries(
`expect ${type} request to match count ${searchCount}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`expect ${type} request to match count ${searchCount}`,
`expect ${type} request to match count ${searchCount}, but received ${count}`,

Nit: If these fail in the future, the logs won't include the received count. Not a big deal, but could be worth defining count above so we can log it here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think tryWithRetries works similar to try. it's using retryForSuccess under the hood:

return await retryForSuccess<T>(this.log, {

and since the expect in the try function hasn't change, there should be no problem here?

I think it's waitFor that works differently?

@kertal kertal added the backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) 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
4 participants