-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
chore(NA): introduce preset for jest-integration tests on @kbn/test #105144
Conversation
Pinging @elastic/kibana-operations (Team:Operations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems to fix the underlying problem of the junit reporter getting the wrong REPO_ROOT and not writing the junit file in the right place (results from failure), though it's still not clear why it works or why the @elastic/kibana-core tests needed to be updated. We should figure out what caused that before merging.
@@ -40,6 +40,7 @@ export const IGNORE_FILE_GLOBS = [ | |||
'vars/*', | |||
'.ci/pipeline-library/**/*', | |||
'packages/kbn-test/jest-preset.js', | |||
'packages/kbn-test/jest_integration/jest-preset.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we use jest_preset
? Is it a limitation of jest
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mshustov jest doesn't allow us to configurate wether to make or not the workers to follow symlinks (except in places where we can use a custom resolver, so mostly within test code). Therefore we discover that if we keep the reporters config hold inside the @kbn/test package other than overridden outside, we are able to keep the preserve symlink option set in the parent process and correctly discover the output folder for the reports on the CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think he's asking specifically about the use of kebab-case instead of camel_case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦 thanks @spalger , reading it a second time make that clear. Yeah it is a jest limitation, it will always look for a jest-preset.*
file. More info at https://jestjs.io/docs/configuration#preset-string
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
…lastic#105144) * chore(NA): introduce preset for jest-integration tests on @kbn/test * chore(NA): fix lockfile * chore(NA): fix ci * fix tests (elastic#14) Co-authored-by: Mikhail Shustov <restrry@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…105144) (#105667) * chore(NA): introduce preset for jest-integration tests on @kbn/test * chore(NA): fix lockfile * chore(NA): fix ci * fix tests (#14) Co-authored-by: Mikhail Shustov <restrry@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com> Co-authored-by: Mikhail Shustov <restrry@gmail.com>
…-png-pdf-report-type * 'master' of github.com:elastic/kibana: (75 commits) [Search Sessions] Don’t try to delete errored searches (elastic#105434) [Search Sessions] fix saved object can be created even if courier:batchSearches is enabled (elastic#105407) [Remote Clusters] Fixed remote clusters details flyout for long strings (elastic#105592) [ML] Functional tests - re-activate a11y tests (elastic#105198) [APM] Typed client-side routing (elastic#104274) [Canvas] Expression error (elastic#103048) [ML] Fixing job wizard with missing description (elastic#105574) [Security Solution][Alerts] - Add alerts subfeature UI (elastic#105505) Upgrade EUI to v35.0.0 (elastic#105127) [Reporting] Clean up types for internal APIs needed for UI (elastic#105508) skip flaky suite (elastic#105087) [Workplace Search] Fix Chrome issues with GitHub sources (elastic#105680) [Fleet] Add containerized fleet server instructions to Fleet README (elastic#105669) [ML] Add api integration test for analytics map endpoint (elastic#105531) Fixes cypress flake across two tests (elastic#105645) [Logs&Metrics UI] add owner properties to plugin manifest (elastic#105580) chore(NA): introduce preset for jest-integration tests on @kbn/test (elastic#105144) [Enterprise Search] Added Thumbnails to Search UI (elastic#104199) Translate App Search credentials list (elastic#105619) [APM] APM agent config created prior to Fleet migration is not injected into integration policy (elastic#105504) ... # Conflicts: # x-pack/plugins/reporting/common/types.ts # x-pack/plugins/reporting/public/management/report_listing.test.tsx
…lastic#105144) * chore(NA): introduce preset for jest-integration tests on @kbn/test * chore(NA): fix lockfile * chore(NA): fix ci * fix tests (#14) Co-authored-by: Mikhail Shustov <restrry@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…105144) (#112769) * chore(NA): introduce preset for jest-integration tests on @kbn/test * chore(NA): fix lockfile * chore(NA): fix ci * fix tests (#14) Co-authored-by: Mikhail Shustov <restrry@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com> Co-authored-by: Mikhail Shustov <restrry@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
That PR creates a new and separate preset for the jest integration tests instead of just inherit and override in the global configuration.