-
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] Migrate /observability_overview
to deployment agnostic test
#199817
[APM] Migrate /observability_overview
to deployment agnostic test
#199817
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
||
describe('when data is loaded', () => { | ||
before(async () => { | ||
await esArchiver.load(ARCHIVER_ROUTES['8.0.0']); |
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.
Using 8.0.0
as apm_8.0.0
contains .ml-config
indices which make MKI unable to pass. The logic stills the same as this endpoint only checks if there is any apm data, and there is.
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 for mentioning this! I’ll double-check a few migration issues I previously discarded for similar reasons to see if that change might allow them to work without the ML index on the mappings.
@@ -6213,10 +6213,6 @@ | |||
"read_only_allow_delete": "false" | |||
}, | |||
"codec": "best_compression", |
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.
Removed lifecycle
and refresh_interval
on both archives as they crash for serverless & MKI
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.
How do we know that removing the refresh_interval
won’t affect any other tests?
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.
as @crespocarlos said, it should pick up the default value and not give any problems, at least, I did that before and nothing happened
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
Running flaky test runner as I removed a comment |
/environment
to deployment agnostic test/observability_overview
to deployment agnostic test
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7387[✅] x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts: 25/25 tests passed. |
# Conflicts: # x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/index.ts
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
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!
# Conflicts: # x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/index.ts
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
cc @rmyz |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Starting backport for target branches: 8.x |
…lastic#199817) ## Summary Closes elastic#198981 Part of elastic#193245 This PR contains the changes to migrate `observability_overview` test folder to Deployment-agnostic testing strategy. ### 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" ``` 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" ``` ## Checks - [x] (OPTIONAL, only if a test has been unskipped) Run flaky test suite - [x] local run for serverless - [x] local run for stateful - [x] MKI run for serverless (cherry picked from commit 7a61d10)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… agnostic test (#199817) (#200012) # Backport This will backport the following commits from `main` to `8.x`: - [[APM] Migrate `/observability_overview` to deployment agnostic test (#199817)](#199817) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sergi Romeu","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-13T14:21:54Z","message":"[APM] Migrate `/observability_overview` to deployment agnostic test (#199817)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/198981\nPart of https://github.com/elastic/kibana/issues/193245\n\nThis PR contains the changes to migrate `observability_overview` test\nfolder to Deployment-agnostic testing strategy.\n\n### How to test\n\n- Serverless\n\n```\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep=\"APM\"\n```\n\nIt's recommended to be run against\n[MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki)\n\n- Stateful\n```\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep=\"APM\"\n```\n\n## Checks\n\n- [x] (OPTIONAL, only if a test has been unskipped) Run flaky test suite\n- [x] local run for serverless\n- [x] local run for stateful\n- [x] MKI run for serverless","sha":"7a61d10eef804f3695071969116bbe64afd864b6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","apm","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services"],"title":"[APM] Migrate `/observability_overview` to deployment agnostic test","number":199817,"url":"https://github.com/elastic/kibana/pull/199817","mergeCommit":{"message":"[APM] Migrate `/observability_overview` to deployment agnostic test (#199817)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/198981\nPart of https://github.com/elastic/kibana/issues/193245\n\nThis PR contains the changes to migrate `observability_overview` test\nfolder to Deployment-agnostic testing strategy.\n\n### How to test\n\n- Serverless\n\n```\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep=\"APM\"\n```\n\nIt's recommended to be run against\n[MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki)\n\n- Stateful\n```\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep=\"APM\"\n```\n\n## Checks\n\n- [x] (OPTIONAL, only if a test has been unskipped) Run flaky test suite\n- [x] local run for serverless\n- [x] local run for stateful\n- [x] MKI run for serverless","sha":"7a61d10eef804f3695071969116bbe64afd864b6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199817","number":199817,"mergeCommit":{"message":"[APM] Migrate `/observability_overview` to deployment agnostic test (#199817)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/198981\nPart of https://github.com/elastic/kibana/issues/193245\n\nThis PR contains the changes to migrate `observability_overview` test\nfolder to Deployment-agnostic testing strategy.\n\n### How to test\n\n- Serverless\n\n```\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep=\"APM\"\n```\n\nIt's recommended to be run against\n[MKI](https://github.com/crespocarlos/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki)\n\n- Stateful\n```\nnode scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts\nnode scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep=\"APM\"\n```\n\n## Checks\n\n- [x] (OPTIONAL, only if a test has been unskipped) Run flaky test suite\n- [x] local run for serverless\n- [x] local run for stateful\n- [x] MKI run for serverless","sha":"7a61d10eef804f3695071969116bbe64afd864b6"}}]}] BACKPORT--> Co-authored-by: Sergi Romeu <[email protected]>
…lastic#199817) ## Summary Closes elastic#198981 Part of elastic#193245 This PR contains the changes to migrate `observability_overview` test folder to Deployment-agnostic testing strategy. ### 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" ``` 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" ``` ## Checks - [x] (OPTIONAL, only if a test has been unskipped) Run flaky test suite - [x] local run for serverless - [x] local run for stateful - [x] MKI run for serverless
…lastic#199817) ## Summary Closes elastic#198981 Part of elastic#193245 This PR contains the changes to migrate `observability_overview` test folder to Deployment-agnostic testing strategy. ### 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" ``` 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" ``` ## Checks - [x] (OPTIONAL, only if a test has been unskipped) Run flaky test suite - [x] local run for serverless - [x] local run for stateful - [x] MKI run for serverless
Summary
Closes #198981
Part of #193245
This PR contains the changes to migrate
observability_overview
test folder to Deployment-agnostic testing strategy.How to test
It's recommended to be run against MKI
Checks