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

Adjust global loading indicator data-test-subj for projects #163697

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

pheyos
Copy link
Member

@pheyos pheyos commented Aug 11, 2023

Summary

This PR adjusts the data-test-subj for the global loading indicator in serverless projects such that at matches the stateful version. This makes sure that functional tests and corresponding test helper methods continue to work the same in stateful and serverless environments when comes to waiting for global loading to finish, which is a key mechanism to avoid test flakiness.

Additional information

@pheyos pheyos added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.10.0 v8.9.1 labels Aug 11, 2023
@pheyos pheyos requested a review from a team as a code owner August 11, 2023 11:15
@pheyos pheyos self-assigned this Aug 11, 2023
Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks for working on this!

@tsullivan tsullivan enabled auto-merge (squash) August 11, 2023 16:43
@tsullivan tsullivan merged commit fd08c62 into elastic:main Aug 11, 2023
@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
core 378.2KB 378.2KB +45.0B

History

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

cc @pheyos

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.9

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 11, 2023
…163697)

## Summary

This PR adjusts the `data-test-subj` for the global loading indicator in
serverless projects such that at matches the stateful version. This
makes sure that functional tests and corresponding test helper methods
continue to work the same in stateful and serverless environments when
comes to waiting for global loading to finish, which is a key mechanism
to avoid test flakiness.

### Additional information

- The serverless project specific global loading indicator was
introduced with elastic#158523
- The stateful loading indicator `data-test-subj` naming is implemented
here:
https://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61

Co-authored-by: Tim Sullivan <[email protected]>
(cherry picked from commit fd08c62)
kibanamachine added a commit that referenced this pull request Aug 11, 2023
…63697) (#163745)

# Backport

This will backport the following commits from `main` to `8.9`:
- [Adjust global loading indicator data-test-subj for projects
(#163697)](#163697)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Robert
Oskamp","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-11T17:40:26Z","message":"Adjust
global loading indicator data-test-subj for projects (#163697)\n\n##
Summary\r\n\r\nThis PR adjusts the `data-test-subj` for the global
loading indicator in\r\nserverless projects such that at matches the
stateful version. This\r\nmakes sure that functional tests and
corresponding test helper methods\r\ncontinue to work the same in
stateful and serverless environments when\r\ncomes to waiting for global
loading to finish, which is a key mechanism\r\nto avoid test
flakiness.\r\n\r\n### Additional information\r\n\r\n- The serverless
project specific global loading indicator was\r\nintroduced with
#158523\r\n- The stateful loading indicator `data-test-subj` naming is
implemented\r\nhere:\r\nhttps://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61\r\n\r\nCo-authored-by:
Tim Sullivan
<[email protected]>","sha":"fd08c62f052d065e677b670a381840ae80dc9724","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v8.10.0","v8.9.1"],"number":163697,"url":"https://github.com/elastic/kibana/pull/163697","mergeCommit":{"message":"Adjust
global loading indicator data-test-subj for projects (#163697)\n\n##
Summary\r\n\r\nThis PR adjusts the `data-test-subj` for the global
loading indicator in\r\nserverless projects such that at matches the
stateful version. This\r\nmakes sure that functional tests and
corresponding test helper methods\r\ncontinue to work the same in
stateful and serverless environments when\r\ncomes to waiting for global
loading to finish, which is a key mechanism\r\nto avoid test
flakiness.\r\n\r\n### Additional information\r\n\r\n- The serverless
project specific global loading indicator was\r\nintroduced with
#158523\r\n- The stateful loading indicator `data-test-subj` naming is
implemented\r\nhere:\r\nhttps://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61\r\n\r\nCo-authored-by:
Tim Sullivan
<[email protected]>","sha":"fd08c62f052d065e677b670a381840ae80dc9724"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163697","number":163697,"mergeCommit":{"message":"Adjust
global loading indicator data-test-subj for projects (#163697)\n\n##
Summary\r\n\r\nThis PR adjusts the `data-test-subj` for the global
loading indicator in\r\nserverless projects such that at matches the
stateful version. This\r\nmakes sure that functional tests and
corresponding test helper methods\r\ncontinue to work the same in
stateful and serverless environments when\r\ncomes to waiting for global
loading to finish, which is a key mechanism\r\nto avoid test
flakiness.\r\n\r\n### Additional information\r\n\r\n- The serverless
project specific global loading indicator was\r\nintroduced with
#158523\r\n- The stateful loading indicator `data-test-subj` naming is
implemented\r\nhere:\r\nhttps://github.com/elastic/kibana/blob/main/packages/core/chrome/core-chrome-browser-internal/src/ui/loading_indicator.tsx#L61\r\n\r\nCo-authored-by:
Tim Sullivan
<[email protected]>","sha":"fd08c62f052d065e677b670a381840ae80dc9724"}},{"branch":"8.9","label":"v8.9.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Robert Oskamp <[email protected]>
@pheyos pheyos deleted the global_loading_indicator_subj branch August 14, 2023 07:42
@mistic mistic added v8.9.2 and removed v8.9.1 labels Aug 17, 2023
@mistic
Copy link
Member

mistic commented Aug 17, 2023

This pr didn't make it into the build candidate for v8.9.1. Updating the labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes v8.9.2 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants