-
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
[APM] Foundation for migrating APM tests to deployment agnostic approach #198775
[APM] Foundation for migrating APM tests to deployment agnostic approach #198775
Conversation
2393507
to
5277183
Compare
Migrate agent_explorer test Update latest_agent_versions test
5277183
to
eee7cd3
Compare
/ci |
/ci |
/ci |
@elasticmachine merge upstream |
/ci |
@crespocarlos can you please add in the description how to run these tests. 🙏 |
Will do when I open the PR for review :) |
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.
Great progress, Carlos 🚀
Thanks a lot for reaching us and making changes. I left some questions
...tion/deployment_agnostic/apis/observability/apm/agent_explorer/latest_agent_versions.spec.ts
Show resolved
Hide resolved
...integration/deployment_agnostic/apis/observability/apm/agent_explorer/agent_explorer.spec.ts
Show resolved
Hide resolved
// Skipping here will skip the entire apm api test suite | ||
// Instead skip (flaky) tests individually | ||
// Failing: See https://github.com/elastic/kibana/issues/176948 | ||
describe('APM API tests', function () { |
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.
Totally up to you about the naming, just since it is located in x-pack/test/api_integration
you can probably omit API
word.
x-pack/test/api_integration/deployment_agnostic/services/apm_api.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/services/apm_api.ts
Outdated
Show resolved
Hide resolved
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.
Sorry, but have to double check about Infra tests update.
...tion/deployment_agnostic/apis/observability/apm/agent_explorer/latest_agent_versions.spec.ts
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
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.
LGTM
On behalf of Appex-QA, thank you for being open to feedback and doing few rounds of changes
💚 Build Succeeded
Metrics [docs]
History
|
Starting backport for target branches: 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…ach (elastic#198775) part of elastic#193245 closes elastic#198958 ## Summary This PR lays the foundation to start migrating APM API integration tests to the deployment agnostic approach. ### How to test - Serverless ``` node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep="APM API tests" ``` It's recommended to be run against [MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki) - Stateful ``` node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep="APM API tests" ``` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…ach (elastic#198775) part of elastic#193245 closes elastic#198958 ## Summary This PR lays the foundation to start migrating APM API integration tests to the deployment agnostic approach. ### How to test - Serverless ``` node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep="APM API tests" ``` It's recommended to be run against [MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki) - Stateful ``` node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep="APM API tests" ``` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit 926861b)
… approach (#198775) (#199637) # Backport This will backport the following commits from `main` to `8.x`: - [[APM] Foundation for migrating APM tests to deployment agnostic approach (#198775)](#198775) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Carlos Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T16:38:17Z","message":"[APM] Foundation for migrating APM tests to deployment agnostic approach (#198775)\n\npart of https://github.com/elastic/kibana/issues/193245\r\ncloses https://github.com/elastic/kibana/issues/198958\r\n\r\n## Summary\r\n\r\nThis PR lays the foundation to start migrating APM API integration tests\r\nto the deployment agnostic approach.\r\n\r\n\r\n### How to test\r\n\r\n- Serverless\r\n\r\n```\r\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts\r\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep=\"APM API tests\"\r\n```\r\n\r\nIt's recommended to be run against\r\n[MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki)\r\n\r\n- Stateful\r\n```\r\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts\r\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep=\"APM API tests\"\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"926861bcbce9a775eda7a389acedf935612b5985","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services"],"number":198775,"url":"https://github.com/elastic/kibana/pull/198775","mergeCommit":{"message":"[APM] Foundation for migrating APM tests to deployment agnostic approach (#198775)\n\npart of https://github.com/elastic/kibana/issues/193245\r\ncloses https://github.com/elastic/kibana/issues/198958\r\n\r\n## Summary\r\n\r\nThis PR lays the foundation to start migrating APM API integration tests\r\nto the deployment agnostic approach.\r\n\r\n\r\n### How to test\r\n\r\n- Serverless\r\n\r\n```\r\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts\r\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep=\"APM API tests\"\r\n```\r\n\r\nIt's recommended to be run against\r\n[MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki)\r\n\r\n- Stateful\r\n```\r\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts\r\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep=\"APM API tests\"\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"926861bcbce9a775eda7a389acedf935612b5985"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198775","number":198775,"mergeCommit":{"message":"[APM] Foundation for migrating APM tests to deployment agnostic approach (#198775)\n\npart of https://github.com/elastic/kibana/issues/193245\r\ncloses https://github.com/elastic/kibana/issues/198958\r\n\r\n## Summary\r\n\r\nThis PR lays the foundation to start migrating APM API integration tests\r\nto the deployment agnostic approach.\r\n\r\n\r\n### How to test\r\n\r\n- Serverless\r\n\r\n```\r\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts\r\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep=\"APM API tests\"\r\n```\r\n\r\nIt's recommended to be run against\r\n[MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki)\r\n\r\n- Stateful\r\n```\r\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts\r\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep=\"APM API tests\"\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"926861bcbce9a775eda7a389acedf935612b5985"}}]}] BACKPORT-->
part of #193245
closes #198958
Summary
This PR lays the foundation to start migrating APM API integration tests to the deployment agnostic approach.
How to test
It's recommended to be run against MKI