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

[Serverless] Unskip CLI flag test #155998

Merged
merged 3 commits into from
Apr 27, 2023

Conversation

afharo
Copy link
Member

@afharo afharo commented Apr 27, 2023

Summary

We only created new files when --serverless was called without a project type. This PR fixes that. It also refactors the handling and killing of the child process so that it doesn't leak from one test to another.

For maintainers

@afharo afharo 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 backport:skip This commit does not require backporting labels Apr 27, 2023
@afharo afharo self-assigned this Apr 27, 2023
@afharo afharo added the failed-test A test failure on a tracked branch, potentially flaky-test label Apr 27, 2023
Comment on lines +128 to +130
if (!existsSync(path)) {
writeMode(projectType === true ? 'es' : projectType);
} else if (typeof projectType === 'string') {
Copy link
Member Author

Choose a reason for hiding this comment

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

We only created new files when --serverless was called without a project type. It should be fixed now 😅

@afharo afharo marked this pull request as ready for review April 27, 2023 13:07
@elasticmachine
Copy link
Contributor

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

@afharo afharo enabled auto-merge (squash) April 27, 2023 13:09
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 17 19 +2
securitySolution 399 402 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 18 20 +2
securitySolution 479 482 +3
total +5

History

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

cc @afharo

@afharo afharo merged commit 863d28f into elastic:main Apr 27, 2023
@afharo afharo deleted the unskip-serverless-cli-flag-test branch April 27, 2023 13:49
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 failed-test A test failure on a tracked branch, potentially flaky-test 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.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants