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

Add integration test coverage for SO migrations against serverless ES #164959

Merged

Conversation

pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Aug 28, 2023

Summary

Blocked by #162673

Add some initial integration test coverage for SO migrations when running against serverless Elasticsearch:

  • our migration actions test suite
  • some of the zdt algo migration suites

The actions test suite was adapted to skip, when run against serverless, the tests that are not supposed to be run (or passing) in that environment

@pgayvallet pgayvallet added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:skip Skip the PR/issue when compiling release notes v8.11.0 labels Sep 1, 2023
@pgayvallet pgayvallet changed the title run migration action integ tests against serverless Add base integration test coverage for SO migrations Sep 1, 2023
@pgayvallet pgayvallet changed the title Add base integration test coverage for SO migrations Add integration test coverage for SO migrations against serverless ES Sep 1, 2023
@pgayvallet pgayvallet marked this pull request as ready for review September 1, 2023 13:19
@pgayvallet pgayvallet requested a review from a team as a code owner September 1, 2023 13:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Overall approach makes sense to me.

I am a little bit concerned about maintainability when we start to use multiple createXTest test factories, but the alternative I can think of is to maintain two sets of tests: one for serverless and one for stateful.

Overall, for now, I think this is a pragmatic compromise.

@pgayvallet pgayvallet force-pushed the kbn-xxx-action-tests-against-serverless branch from 41d54c0 to a5aefd4 Compare September 5, 2023 06:10
@kibana-ci
Copy link
Collaborator

kibana-ci commented Sep 11, 2023

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/core-saved-objects-migration-server-internal 46 47 +1

History

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

@pgayvallet pgayvallet merged commit 03b7cd5 into elastic:main Sep 11, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Sep 11, 2023
rudolf added a commit that referenced this pull request Oct 27, 2023
…ness (#170023)

Attempt at understanding #166190

I first thought the flakiness could be a regression in Elasticsearch,
but it turns out because I can only reproduce 90% of the time I got
"lucky" and found a previous ES commit where tests passed 3 times in a
row. On further investigation I was able to reproduce failures on
commits as old as July (before we even saw these failures) so ES is
unlikely to be the root cause 👎

Looking at our flaky test failure logs I found the first occurence
happened on 5 September on the branch for
#164959 (before it was merged) and
then subsequent failures on other branches and main happened within a
few hours after #164959 was merged
on 11 September.

However, nothing in #164959 should
have changed or impacted behaviour. To try to track down the cause this
PR is attempting to restorte `actions.test.ts` until before
#164959. Serverless tests will
continue to use `actions_test_suite.ts` but for classic we'll run the
old `actions.test.ts`.
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 release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants