Skip to content

Conversation

@dmlemeshko
Copy link
Member

@dmlemeshko dmlemeshko commented Sep 12, 2025

Summary

Extending .buildkite/pipelines/flaky_tests/pipeline.ts with new scoutConfig type, that should trigger Scout tests execution from CI stats flaky-test-runner

const testSuites: Array<
| { type: 'group'; key: string; count: number }
| { type: 'ftrConfig'; ftrConfig: string; count: number }
| { type: 'scoutConfig'; scoutConfig: string; count: number }
Copy link
Member Author

Choose a reason for hiding this comment

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

When Scout config is selected in Flaky test runner, server should return in json:

{
  type: 'scoutConfig',
  title: 'Scout: path/to/config.ts',
  id: 'scout:path/to/config.ts',
  scoutConfig: 'path/to/config.ts',
  count: 15
}

steps.push({
command: `.buildkite/scripts/steps/test/scout_configs.sh`,
env: {
SCOUT_CONFIG: testSuite.scoutConfig,
Copy link
Member Author

Choose a reason for hiding this comment

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

if SCOUT_CONFIG is set, running script will run explicitly defined config (Flaky test runner support) instead of fetching the json artifact and executing all the configs for the plugin (normal flow)

@dmlemeshko dmlemeshko self-assigned this Sep 15, 2025
@dmlemeshko dmlemeshko added release_note:skip Skip the PR/issue when compiling release notes backport:all-open Backport to all branches that could still receive a release labels Sep 15, 2025
@dmlemeshko dmlemeshko marked this pull request as ready for review September 15, 2025 16:04
@dmlemeshko dmlemeshko requested a review from a team as a code owner September 15, 2025 16:04
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @dmlemeshko

@dmlemeshko dmlemeshko enabled auto-merge (squash) September 18, 2025 07:03
@dmlemeshko dmlemeshko merged commit 1fe19a3 into elastic:main Sep 18, 2025
13 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.0, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 18, 2025
## Summary

Extending `.buildkite/pipelines/flaky_tests/pipeline.ts` with new
`scoutConfig` type, that should trigger Scout tests execution from CI
stats flaky-test-runner

(cherry picked from commit 1fe19a3)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 18, 2025
## Summary

Extending `.buildkite/pipelines/flaky_tests/pipeline.ts` with new
`scoutConfig` type, that should trigger Scout tests execution from CI
stats flaky-test-runner

(cherry picked from commit 1fe19a3)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 18, 2025
## Summary

Extending `.buildkite/pipelines/flaky_tests/pipeline.ts` with new
`scoutConfig` type, that should trigger Scout tests execution from CI
stats flaky-test-runner

(cherry picked from commit 1fe19a3)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
8.19
9.0
9.1

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 234918

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 18, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[scout] support flaky test runner
(#234918)](#234918)

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

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

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-09-18T09:18:59Z","message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.2.0"],"title":"[scout]
support flaky test
runner","number":234918,"url":"https://github.com/elastic/kibana/pull/234918","mergeCommit":{"message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/234918","number":234918,"mergeCommit":{"message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549"}}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <[email protected]>
kibanamachine added a commit that referenced this pull request Sep 18, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[scout] support flaky test runner
(#234918)](#234918)

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

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

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-09-18T09:18:59Z","message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.2.0"],"title":"[scout]
support flaky test
runner","number":234918,"url":"https://github.com/elastic/kibana/pull/234918","mergeCommit":{"message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/234918","number":234918,"mergeCommit":{"message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549"}}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <[email protected]>
kibanamachine added a commit that referenced this pull request Sep 18, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[scout] support flaky test runner
(#234918)](#234918)

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

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

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-09-18T09:18:59Z","message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.2.0"],"title":"[scout]
support flaky test
runner","number":234918,"url":"https://github.com/elastic/kibana/pull/234918","mergeCommit":{"message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/234918","number":234918,"mergeCommit":{"message":"[scout]
support flaky test runner (#234918)\n\n## Summary\n\nExtending
`.buildkite/pipelines/flaky_tests/pipeline.ts` with new\n`scoutConfig`
type, that should trigger Scout tests execution from CI\nstats
flaky-test-runner","sha":"1fe19a39faf9f5d96bddc7db432732f703578549"}}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <[email protected]>
@dmlemeshko dmlemeshko added backport:version Backport to applied version labels and removed backport:all-open Backport to all branches that could still receive a release labels Sep 23, 2025
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.0, 9.1

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

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.19 Cherrypick failed because the selected commit (1fe19a3) is empty. It looks like the commit was already backported in #235494
9.0 Cherrypick failed because the selected commit (1fe19a3) is empty. It looks like the commit was already backported in #235495
9.1 Cherrypick failed because the selected commit (1fe19a3) is empty. It looks like the commit was already backported in #235496

Manual backport

To create the backport manually run:

node scripts/backport --pr 234918

Questions ?

Please refer to the Backport tool documentation

CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Sep 24, 2025
## Summary

Extending `.buildkite/pipelines/flaky_tests/pipeline.ts` with new
`scoutConfig` type, that should trigger Scout tests execution from CI
stats flaky-test-runner
niros1 pushed a commit that referenced this pull request Sep 30, 2025
## Summary

Extending `.buildkite/pipelines/flaky_tests/pipeline.ts` with new
`scoutConfig` type, that should trigger Scout tests execution from CI
stats flaky-test-runner
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
## Summary

Extending `.buildkite/pipelines/flaky_tests/pipeline.ts` with new
`scoutConfig` type, that should trigger Scout tests execution from CI
stats flaky-test-runner
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 test:scout v8.19.4 v9.0.7 v9.1.4 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants