-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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(slo): Migrate to test agnostic framework #195927
Conversation
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/update_slo.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/helpers/transform.ts
Outdated
Show resolved
Hide resolved
@kdelemme Did you manage to run these tests on 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.
Code lgtm, I think there are few small things to address:
- invalidating API key in
after
hook - trying to decrease retry timeout from 5 min to at least 3 (if possible)
- run this config against Oblt project on MKI to make sure it works for "real" project on QA
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/create_slo.ts
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/create_slo.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/delete_slo.ts
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/find_slo.ts
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/get_slo.ts
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/reset_slo.ts
Show resolved
Hide resolved
x-pack/test/api_integration/deployment_agnostic/apis/observability/slo/update_slo.ts
Show resolved
Hide resolved
How? |
I'm not being able to run this against MKI. |
💚 Build Succeeded
Metrics [docs]
History
|
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.
code changes LGTM
Thanks a lot for addressing the comments!
Starting backport for target branches: 8.16, 8.x |
(cherry picked from commit 08747f3)
(cherry picked from commit 08747f3)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [chore(slo): Migrate to test agnostic framework (#195927)](#195927) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kevin Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T19:33:15Z","message":"chore(slo): Migrate to test agnostic framework (#195927)","sha":"08747f361aa39ba0e1412d48dc9856ef0806cdf2","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:obs-ux-management","v8.16.0"],"title":"chore(slo): Migrate to test agnostic framework","number":195927,"url":"https://github.com/elastic/kibana/pull/195927","mergeCommit":{"message":"chore(slo): Migrate to test agnostic framework (#195927)","sha":"08747f361aa39ba0e1412d48dc9856ef0806cdf2"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195927","number":195927,"mergeCommit":{"message":"chore(slo): Migrate to test agnostic framework (#195927)","sha":"08747f361aa39ba0e1412d48dc9856ef0806cdf2"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kevin Delemme <[email protected]>
) # Backport This will backport the following commits from `main` to `8.16`: - [chore(slo): Migrate to test agnostic framework (#195927)](#195927) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kevin Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T19:33:15Z","message":"chore(slo): Migrate to test agnostic framework (#195927)","sha":"08747f361aa39ba0e1412d48dc9856ef0806cdf2","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Team:obs-ux-management","v8.16.0"],"title":"chore(slo): Migrate to test agnostic framework","number":195927,"url":"https://github.com/elastic/kibana/pull/195927","mergeCommit":{"message":"chore(slo): Migrate to test agnostic framework (#195927)","sha":"08747f361aa39ba0e1412d48dc9856ef0806cdf2"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195927","number":195927,"mergeCommit":{"message":"chore(slo): Migrate to test agnostic framework (#195927)","sha":"08747f361aa39ba0e1412d48dc9856ef0806cdf2"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kevin Delemme <[email protected]>
Resolves #183397
🌮 Summary
This PR migrates the previously created SLO api tests for stateful and stateless into the agnostic testing framework.
Testing the tests
First, you need to comment the non-SLO tests in these config file:
Stateful
Serverless