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

Jest Integration test failures produce a cryptic error stack trace #108388

Closed
mshustov opened this issue Aug 12, 2021 · 2 comments · Fixed by #107619
Closed

Jest Integration test failures produce a cryptic error stack trace #108388

mshustov opened this issue Aug 12, 2021 · 2 comments · Fixed by #107619
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team

Comments

@mshustov
Copy link
Contributor

mshustov commented Aug 12, 2021

I'm working on removing the legacy elasticsearch client and likely some test integration tests failures have been caused by my changes, but the error stack trace doesn't help me to debug the problem:

11:40:03   FAIL  packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
11:40:03    ● Test suite failed to run
11:40:03  
11:40:03      /dev/shm/workspace/parallel/3/kibana/packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts: Error: No substitution given for "$0". If this is not meant to be a
11:40:03                  placeholder you may want to consider passing one of the following options to @babel/template:
11:40:03                  - { placeholderPattern: false, placeholderWhitelist: new Set(['$0'])}
11:40:03                  - { placeholderPattern: /^$0$/ }
11:40:03  
11:40:03                    placeholder you may want to consider passing one of the following options to @babel/template:
11:40:03                    - { placeholderPattern: false, placeholderWhitelist: new Set(['$0'])}
11:40:03                    - { placeholderPattern: /^$0$/ }
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined
11:40:03            at undefined

see #107619 for details.

It looks like a problem with the building pipeline. I didn't manage to find other failures on CI with the problem. See the last integration test failure on CI a few days ago https://kibana-ci.elastic.co/job/elastic+kibana+7.x/16019/execution/node/426/log/

@mshustov mshustov added bug Fixes for quality problems that affect the customer experience Team:Operations Team label for Operations Team labels Aug 12, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@mshustov
Copy link
Contributor Author

I can reproduce failures on #107619 branch for src/core/server/http/integration_tests/core_services.test.ts file only. It fails with .sourceMap is an alias for .sourceMaps, cannot use both.
The error disappear if I remove import { MockElasticsearchClient } from './core_service.test.mocks'; statement from src/core/server/http/integration_tests/core_services.test.ts

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 Team:Operations Team label for Operations Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants