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

[FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui-]services/* #189051

Merged

Conversation

wayneseymour
Copy link
Member

@wayneseymour wayneseymour commented Jul 24, 2024

Summary

Moving common services to respective new homes.

Resolves: #188541

@wayneseymour wayneseymour added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting labels Jul 24, 2024
@wayneseymour wayneseymour self-assigned this Jul 24, 2024
@wayneseymour wayneseymour changed the title [FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui]-services [FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui]-services/* Jul 24, 2024
@wayneseymour wayneseymour changed the title [FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui]-services/* [FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui]-services/* Jul 24, 2024
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from b6d8466 to 8a1f919 Compare July 24, 2024 15:31
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from 8b8c0fb to 5b16ca2 Compare July 24, 2024 16:04
@wayneseymour
Copy link
Member Author

/ci

1 similar comment
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from 526ce5c to 7d256d1 Compare July 25, 2024 15:27
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from 7d256d1 to 54c49d2 Compare July 26, 2024 09:44
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour changed the title [FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui]-services/* [FTR] Refactor test/common/services/* -> packages/kbn-ftr-common-functional-[ui-]services/* Jul 28, 2024
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from 15e4641 to 571549d Compare July 29, 2024 09:33
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from 571549d to 2a54f3c Compare July 31, 2024 13:51
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from 06b3a76 to 2dd1322 Compare July 31, 2024 14:19
@wayneseymour
Copy link
Member Author

/ci

1 similar comment
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from e1bfc51 to abc07f9 Compare August 1, 2024 10:49
@wayneseymour
Copy link
Member Author

/ci

1 similar comment
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour wayneseymour force-pushed the ftr/refactor-test-common-services branch from 66ee4c9 to af59b80 Compare August 1, 2024 13:40
@wayneseymour
Copy link
Member Author

/ci

@wayneseymour
Copy link
Member Author

@elasticmachine merge upstream

@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Aug 27, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

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

Code-only review. Data Discovery typings file change LGTM 👍

Copy link
Contributor

@opauloh opauloh left a comment

Choose a reason for hiding this comment

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

Cloud Security Posture changes LGTM

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/ftr-common-functional-services 32 69 +37
@kbn/ftr-common-functional-ui-services 511 520 +9
total +46

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/ftr-common-functional-ui-services 3 7 +4
Unknown metric groups

API count

id before after diff
@kbn/ftr-common-functional-services 47 94 +47
@kbn/ftr-common-functional-ui-services 551 560 +9
total +56

History

  • 💚 Build #230151 succeeded 49280b3299743909acb3fc59106c0e1249698a31
  • 💔 Build #230087 failed d36d27940da81047216158f19c0cc713d7f81516
  • 💔 Build #229853 failed 6ade8b198d17f54a6b6ce2ab4fff88aa279e1c11
  • 💔 Build #229761 failed 057ef8f1ce0c5386e082efef8528912eec5290c2
  • 💔 Build #229706 failed 688b5bc05df57b81ac40c258adcf2703e39bd351
  • 💚 Build #229501 succeeded 985420353cdce3df809e72ced121c926c82122cd

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

cc @wayneseymour

Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

LGTM for the Threat Hunting Investigations team

Copy link
Member

@jennypavlova jennypavlova left a comment

Choose a reason for hiding this comment

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

Obs Ux Infra Services changes LGTM (code review only)

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

Choose a reason for hiding this comment

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

question: shouldn't we put security service in kbn-ftr-common-functional-services ?
I don't think it has any dependency on browser / Kibana UI and is used in both api_integration and functional test.

Copy link
Member Author

Choose a reason for hiding this comment

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

👀

Copy link
Member

Choose a reason for hiding this comment

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

nvm, TestUser services is relying on Browser service.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're fast dude! I was just copying the link to that! lol

Copy link
Member

@dmlemeshko dmlemeshko left a comment

Choose a reason for hiding this comment

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

Code LGTM. Great progress!

@wayneseymour wayneseymour merged commit 09a3658 into elastic:main Aug 29, 2024
27 checks passed
@wayneseymour wayneseymour deleted the ftr/refactor-test-common-services branch August 29, 2024 13:46
jbudz added a commit to jbudz/kibana that referenced this pull request Aug 29, 2024
@jbudz jbudz added the reverted label Aug 29, 2024
@jbudz
Copy link
Member

jbudz commented Aug 29, 2024

@wayneseymour wayneseymour restored the ftr/refactor-test-common-services branch August 30, 2024 08:22
wayneseymour added a commit that referenced this pull request Sep 5, 2024
…tional-[ui-]services/* (#191805)

## Summary

Moving common services to respective new homes.

This PR is revived from a previously
[merged](09a3658)
and [reverted PR](#191765) as
[detailed
here](#189051 (comment)).
- This was due to "extra" tests being applied to
#191708
- These "extra" tests were applied as
#191708 changes files within
`x-pack/plugins/observability_solution/` as configured
[here](https://github.com/elastic/kibana/blob/main/.buildkite/scripts/pipelines/pull_request/pipeline.ts#L129)

### Why these failures were not caught in the original
[PR](#189051)
The pipeline is generated at runtime, and the original
[PR](#189051) had zero changes
under `x-pack/plugins/observability_solution/`
 
 ## Changes on top of original PR
 - Add `ci:all-cypress-suites` label to run extra tests
- Add `services` stanza to which contains the missing references by
spreading the services from `@kbn/ftr-common-functional-services` &&
`@kbn/ftr-common-functional-ui-services` into the stanza, for the
following:
   - `x-pack/plugins/observability_solution/synthetics/e2e/config.ts`
   - `x-pack/plugins/observability_solution/apm/ftr_e2e/ftr_config.ts` 
-
`x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config.ts`
   - `x-pack/plugins/observability_solution/profiling/e2e/ftr_config.ts`
   - `x-pack/plugins/observability_solution/synthetics/e2e/config.ts`
   - `x-pack/plugins/observability_solution/uptime/e2e/config.ts`
 

 
 
Blocked by: #191961
Resolves: #188541

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:review backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes reverted Team:Fleet Team label for Observability Data Collection Fleet team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Meta][FTR] Move services to packages