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

chore(NA): move monitoring out of __tests__ folder #87556

Merged
merged 4 commits into from
Jan 7, 2021

Conversation

mistic
Copy link
Member

@mistic mistic commented Jan 6, 2021

It moves the second item of #85513 forward as it moves monitoring tests out of tests folder into our common setup for tests run with jest.

@mistic mistic added chore Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v7.11.1 labels Jan 6, 2021
@mistic mistic requested review from tylersmalley and a team January 6, 2021 19:06
@elasticmachine
Copy link
Contributor

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

@tylersmalley
Copy link
Contributor

I am concerned with the tests which have been disabled. I am not familiar with any mocha tests which were not previously running. Do you have any more details to this?

@mistic
Copy link
Member Author

mistic commented Jan 6, 2021

@tylersmalley as far as I could check our patterns to run mocha tests were:

'src/**/__tests__/**/*.{js,ts,tsx}',
'packages/**/__tests__/**/*.{js,ts,tsx}',
'tasks/**/__tests__/**/*.{js,ts,tsx}',
'x-pack/common/**/__tests__/**/*.{js,ts,tsx}',
'x-pack/server/**/__tests__/**/*.{js,ts,tsx}',
`x-pack/legacy/plugins/*/__tests__/**/*.{js,ts,tsx}`,
`x-pack/legacy/plugins/*/common/**/__tests__/**/*.{js,ts,tsx}`,
`x-pack/legacy/plugins/*/**/server/**/__tests__/**/*.{js,ts,tsx}`,

I found a lot of tests that were just forgot somewhere and not being run at all. When I've tried to migrate them into jest they failed because they were already pretty outdated. I've decided to make the ones passing to run again and add those notes to the one not running and let the underlying teams follow up on them.

@tylersmalley
Copy link
Contributor

I see, appears to be test files under x-pack/plugins

Copy link
Contributor

@igoristic igoristic left a comment

Choose a reason for hiding this comment

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

Looks good from Stack Monitoring side. Thank you for this 👍

@tylersmalley I created the issue to track the two failing tests: #87620

@tylersmalley
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@mistic mistic merged commit 9d4ef37 into elastic:master Jan 7, 2021
@mistic
Copy link
Member Author

mistic commented Jan 7, 2021

7.x/7.12: dd71d8f
7.11/7.11.1: 344d074

mistic added a commit to mistic/kibana that referenced this pull request Jan 7, 2021
* chore(NA): move server and common from monitoring out of the __tests__ folder

* chore(NA): move monitoring public out of __tests__ folder

* chore(NA): add missing skip on test

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/monitoring/server/kibana_monitoring/collectors/get_default_admin_email.test.js
mistic added a commit to mistic/kibana that referenced this pull request Jan 7, 2021
* chore(NA): move server and common from monitoring out of the __tests__ folder

* chore(NA): move monitoring public out of __tests__ folder

* chore(NA): add missing skip on test

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/monitoring/server/kibana_monitoring/collectors/get_default_admin_email.test.js
mistic added a commit that referenced this pull request Jan 7, 2021
…7689)

* chore(NA): move monitoring out of __tests__ folder (#87556)

* chore(NA): move server and common from monitoring out of the __tests__ folder

* chore(NA): move monitoring public out of __tests__ folder

* chore(NA): add missing skip on test

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/monitoring/server/kibana_monitoring/collectors/get_default_admin_email.test.js

* test(NA): fix tests

* chore(NA): fix some tests
mistic added a commit that referenced this pull request Jan 7, 2021
…87690)

* chore(NA): move monitoring out of __tests__ folder (#87556)

* chore(NA): move server and common from monitoring out of the __tests__ folder

* chore(NA): move monitoring public out of __tests__ folder

* chore(NA): add missing skip on test

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/monitoring/server/kibana_monitoring/collectors/get_default_admin_email.test.js

* test(NA): fix tests

* chore(NA): fix some tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.11.1 v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants