Skip to content

Comments

[dashboard] move library functional test to unit test#226058

Merged
nreese merged 1 commit intoelastic:mainfrom
nreese:remove_library_test
Jul 2, 2025
Merged

[dashboard] move library functional test to unit test#226058
nreese merged 1 commit intoelastic:mainfrom
nreese:remove_library_test

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Jul 1, 2025

Functional tests have several disadvantages

  • They are slow to run
  • They are expensive to run
  • They are difficult to unsure consistently (not flaky)

This PR re-writes embeddable_library functional tests as unit test to reduce our functional test tech debt.

@nreese
Copy link
Contributor Author

nreese commented Jul 1, 2025

/ci

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
dashboard 19 20 +1

Total ESLint disabled count

id before after diff
dashboard 19 20 +1

@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v8.19.0 v9.2.0 labels Jul 1, 2025
@nreese nreese marked this pull request as ready for review July 1, 2025 19:09
@nreese nreese requested a review from a team as a code owner July 1, 2025 19:09
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese nreese added the v9.1.0 label Jul 1, 2025
Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Great to see more functional tests removed! Changes LGTM and everything is well covered.

@nreese nreese merged commit 101ca6e into elastic:main Jul 2, 2025
24 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16033491270

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
Functional tests have several disadvantages
* They are slow to run
* They are expensive to run
* They are difficult to unsure consistently (not flaky)

This PR re-writes `embeddable_library` functional tests as unit test to
reduce our functional test tech debt.

(cherry picked from commit 101ca6e)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
Functional tests have several disadvantages
* They are slow to run
* They are expensive to run
* They are difficult to unsure consistently (not flaky)

This PR re-writes `embeddable_library` functional tests as unit test to
reduce our functional test tech debt.

(cherry picked from commit 101ca6e)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 2, 2025
…#226289)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[dashboard] move library functional test to unit test
(#226058)](#226058)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-07-02T18:59:10Z","message":"[dashboard]
move library functional test to unit test (#226058)\n\nFunctional tests
have several disadvantages\n* They are slow to run\n* They are expensive
to run\n* They are difficult to unsure consistently (not flaky)\n\nThis
PR re-writes `embeddable_library` functional tests as unit test
to\nreduce our functional test tech
debt.","sha":"101ca6ec36c57d909abc7492d8fa908f5fe35f78","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[dashboard]
move library functional test to unit
test","number":226058,"url":"https://github.com/elastic/kibana/pull/226058","mergeCommit":{"message":"[dashboard]
move library functional test to unit test (#226058)\n\nFunctional tests
have several disadvantages\n* They are slow to run\n* They are expensive
to run\n* They are difficult to unsure consistently (not flaky)\n\nThis
PR re-writes `embeddable_library` functional tests as unit test
to\nreduce our functional test tech
debt.","sha":"101ca6ec36c57d909abc7492d8fa908f5fe35f78"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226058","number":226058,"mergeCommit":{"message":"[dashboard]
move library functional test to unit test (#226058)\n\nFunctional tests
have several disadvantages\n* They are slow to run\n* They are expensive
to run\n* They are difficult to unsure consistently (not flaky)\n\nThis
PR re-writes `embeddable_library` functional tests as unit test
to\nreduce our functional test tech
debt.","sha":"101ca6ec36c57d909abc7492d8fa908f5fe35f78"}}]}] BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 4, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @nreese

1 similar comment
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @nreese

kibanamachine added a commit that referenced this pull request Jul 7, 2025
#226288)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[dashboard] move library functional test to unit test
(#226058)](#226058)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-07-02T18:59:10Z","message":"[dashboard]
move library functional test to unit test (#226058)\n\nFunctional tests
have several disadvantages\n* They are slow to run\n* They are expensive
to run\n* They are difficult to unsure consistently (not flaky)\n\nThis
PR re-writes `embeddable_library` functional tests as unit test
to\nreduce our functional test tech
debt.","sha":"101ca6ec36c57d909abc7492d8fa908f5fe35f78","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[dashboard]
move library functional test to unit
test","number":226058,"url":"https://github.com/elastic/kibana/pull/226058","mergeCommit":{"message":"[dashboard]
move library functional test to unit test (#226058)\n\nFunctional tests
have several disadvantages\n* They are slow to run\n* They are expensive
to run\n* They are difficult to unsure consistently (not flaky)\n\nThis
PR re-writes `embeddable_library` functional tests as unit test
to\nreduce our functional test tech
debt.","sha":"101ca6ec36c57d909abc7492d8fa908f5fe35f78"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226058","number":226058,"mergeCommit":{"message":"[dashboard]
move library functional test to unit test (#226058)\n\nFunctional tests
have several disadvantages\n* They are slow to run\n* They are expensive
to run\n* They are difficult to unsure consistently (not flaky)\n\nThis
PR re-writes `embeddable_library` functional tests as unit test
to\nreduce our functional test tech
debt.","sha":"101ca6ec36c57d909abc7492d8fa908f5fe35f78"}}]}] BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 7, 2025
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
Functional tests have several disadvantages
* They are slow to run
* They are expensive to run
* They are difficult to unsure consistently (not flaky)

This PR re-writes `embeddable_library` functional tests as unit test to
reduce our functional test tech debt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants