Skip to content

[CI] Fix type check cache error on changed files#259485

Merged
Ikuni17 merged 6 commits intoelastic:mainfrom
Ikuni17:fix/type-check-changed-files
Mar 26, 2026
Merged

[CI] Fix type check cache error on changed files#259485
Ikuni17 merged 6 commits intoelastic:mainfrom
Ikuni17:fix/type-check-changed-files

Conversation

@Ikuni17
Copy link
Copy Markdown
Contributor

@Ikuni17 Ikuni17 commented Mar 25, 2026

Summary

FIPS environments change the environment dynamically to enable FIPS in CI through some files in config/. This causes the type check cache to error incorrectly due to "changed build files" (example). We now ignore these files in the underlying git status check and also improve the logging to show the actual changed files when this error occurs.

Fixed run:
https://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1

@Ikuni17 Ikuni17 self-assigned this Mar 25, 2026
@Ikuni17 Ikuni17 requested a review from a team as a code owner March 25, 2026 03:05
@Ikuni17 Ikuni17 added Team:Operations Kibana-Operations Team 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 Mar 25, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@Ikuni17 Ikuni17 enabled auto-merge (squash) March 25, 2026 03:07
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp bot commented Mar 26, 2026

Approvability

Verdict: Needs human review

This is a low-risk CI tooling improvement that excludes dynamically-modified config files from cache invalidation checks and improves error messages. However, the author does not own this file (owned by @elastic/kibana-operations), so the designated code owners should review the changes to their build tooling.

You can customize Macroscope's approvability policy. Learn more.

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout: [ security / security_solution ] plugin / local-serverless-security_complete - Entity analytics management page - Engine Status tab - Engine Status tab appears after enabling entity analytics and shows components table
  • [job] [logs] Scout: [ platform / navigation ] plugin / local-serverless-security_complete - navigation - opens panel on legacy management landing page
  • [job] [logs] Scout: [ security / security_solution ] plugin / local-stateful-classic - Entity analytics management page - Engine Status tab - Engine Status tab appears after enabling entity analytics and shows components table

Metrics [docs]

✅ unchanged

History

cc @Ikuni17

@Ikuni17 Ikuni17 requested a review from delanni March 26, 2026 03:34
@Ikuni17 Ikuni17 merged commit 8110491 into elastic:main Mar 26, 2026
20 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 26, 2026
## Summary

FIPS environments change the environment dynamically to enable FIPS in
CI through some files in `config/`. This causes the type check cache to
error incorrectly due to "changed build files"
([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).
We now ignore these files in the underlying `git status` check and also
improve the logging to show the actual changed files when this error
occurs.

Fixed run:

https://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1
(cherry picked from commit 8110491)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 26, 2026
## Summary

FIPS environments change the environment dynamically to enable FIPS in
CI through some files in `config/`. This causes the type check cache to
error incorrectly due to "changed build files"
([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).
We now ignore these files in the underlying `git status` check and also
improve the logging to show the actual changed files when this error
occurs.

Fixed run:

https://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1
(cherry picked from commit 8110491)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 26, 2026
## Summary

FIPS environments change the environment dynamically to enable FIPS in
CI through some files in `config/`. This causes the type check cache to
error incorrectly due to "changed build files"
([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).
We now ignore these files in the underlying `git status` check and also
improve the logging to show the actual changed files when this error
occurs.

Fixed run:

https://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1
(cherry picked from commit 8110491)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.2
9.3

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 Mar 27, 2026
…9892)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[CI] Fix type check cache error on changed files
(#259485)](#259485)

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

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

<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-03-26T22:41:45Z","message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.4.0"],"title":"[CI]
Fix type check cache error on changed
files","number":259485,"url":"https://github.com/elastic/kibana/pull/259485","mergeCommit":{"message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/259485","number":259485,"mergeCommit":{"message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f"}}]}]
BACKPORT-->

Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Mar 27, 2026
…9891)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[CI] Fix type check cache error on changed files
(#259485)](#259485)

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

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

<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-03-26T22:41:45Z","message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.4.0"],"title":"[CI]
Fix type check cache error on changed
files","number":259485,"url":"https://github.com/elastic/kibana/pull/259485","mergeCommit":{"message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/259485","number":259485,"mergeCommit":{"message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f"}}]}]
BACKPORT-->

Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Mar 27, 2026
…59890)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[CI] Fix type check cache error on changed files
(#259485)](#259485)

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

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

<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-03-26T22:41:45Z","message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.4.0"],"title":"[CI]
Fix type check cache error on changed
files","number":259485,"url":"https://github.com/elastic/kibana/pull/259485","mergeCommit":{"message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/259485","number":259485,"mergeCommit":{"message":"[CI]
Fix type check cache error on changed files (#259485)\n\n##
Summary\n\nFIPS environments change the environment dynamically to
enable FIPS in\nCI through some files in `config/`. This causes the type
check cache to\nerror incorrectly due to \"changed build
files\"\n([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).\nWe
now ignore these files in the underlying `git status` check and
also\nimprove the logging to show the actual changed files when this
error\noccurs.\n\nFixed
run:\n\nhttps://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1","sha":"81104911c5cd7b94039a732d32478db78e83b42f"}}]}]
BACKPORT-->

Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
jeramysoucy pushed a commit to jeramysoucy/kibana that referenced this pull request Apr 1, 2026
## Summary

FIPS environments change the environment dynamically to enable FIPS in
CI through some files in `config/`. This causes the type check cache to
error incorrectly due to "changed build files"
([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).
We now ignore these files in the underlying `git status` check and also
improve the logging to show the actual changed files when this error
occurs.

Fixed run:

https://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Apr 2, 2026
## Summary

FIPS environments change the environment dynamically to enable FIPS in
CI through some files in `config/`. This causes the type check cache to
error incorrectly due to "changed build files"
([example](https://buildkite.com/elastic/kibana-pull-request/builds/415961#019d22cf-17e4-4851-993e-60706fbf13a1/L6980)).
We now ignore these files in the underlying `git status` check and also
improve the logging to show the actual changed files when this error
occurs.

Fixed run:

https://buildkite.com/elastic/kibana-pull-request/builds/415966#019d22e4-63d1-4419-9567-41f2d3534ba1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v8.19.14 v9.2.8 v9.3.3 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants