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

Fix interactive Setup UI never reaches Finished state #165273

Merged

Conversation

thomheymann
Copy link
Contributor

@thomheymann thomheymann commented Aug 30, 2023

Resolves #162518

This PR updates the logic that detects whether Kibana has booted correctly during interactive setup.

The issue described in #162518 was a false positive and only effected Kibana when run in development mode.

We already have end-to-end tests which go through the entire enrollment flow and ensure that Kibana correctly redirects to the login page once interactive setup completes:
https://github.com/elastic/kibana/blob/main/test/interactive_setup_functional/tests/enrollment_token.ts#L78-L81

These tests passed with both the previous and the updated logic. However, the end-to-end tests do not check development mode which is why the build never failed and we started seeing this issue.

@thomheymann thomheymann added Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! release_note:skip Skip the PR/issue when compiling release notes labels Aug 30, 2023
@thomheymann thomheymann marked this pull request as ready for review August 30, 2023 20:52
@thomheymann thomheymann requested a review from a team as a code owner August 30, 2023 20:52
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@@ -13,6 +13,7 @@ export default function ({ loadTestFile }: FtrProviderContext) {
loadTestFile(require.resolve('./management'));

// platform security
loadTestFile(require.resolve('./security/api_keys'));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test suite was added as part of #164886 but was not referenced correctly so never got executed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch!

@thomheymann thomheymann marked this pull request as draft August 31, 2023 13:50
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
interactiveSetup 61.3KB 61.1KB -223.0B

History

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

@thomheymann thomheymann marked this pull request as ready for review August 31, 2023 16:44
Copy link
Contributor

@jeramysoucy jeramysoucy left a comment

Choose a reason for hiding this comment

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

Works as expected.

@@ -13,6 +13,7 @@ export default function ({ loadTestFile }: FtrProviderContext) {
loadTestFile(require.resolve('./management'));

// platform security
loadTestFile(require.resolve('./security/api_keys'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch!

@thomheymann thomheymann merged commit c392779 into elastic:main Aug 31, 2023
@kibanamachine kibanamachine added v8.11.0 backport:skip This commit does not require backporting labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interactive Setup UI never reaches Finished state
5 participants