Skip to content

[Build] Add flag to revert to glibc 2.42 memory management#255699

Merged
Ikuni17 merged 9 commits into
elastic:mainfrom
Ikuni17:build/add-glibc-2.43-flag
Mar 31, 2026
Merged

[Build] Add flag to revert to glibc 2.42 memory management#255699
Ikuni17 merged 9 commits into
elastic:mainfrom
Ikuni17:build/add-glibc-2.43-flag

Conversation

@Ikuni17
Copy link
Copy Markdown
Contributor

@Ikuni17 Ikuni17 commented Mar 3, 2026

Summary

Reverts #255691

Newer Chainguard images updated to glibc 2.43 which changes memory allocation behavior. Adding this flag reverts that behavior and allows us to unblock Chainguard image updates.

See https://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ for more details.

@Ikuni17 Ikuni17 self-assigned this Mar 3, 2026
@Ikuni17 Ikuni17 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 ci:cloud-deploy Create or update a Cloud deployment ci:cloud-redeploy Always create a new Cloud deployment ci:project-deploy-elasticsearch Create an Elasticsearch Serverless project ci:project-redeploy Always create a new Cloud project labels Mar 3, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

Project deployed, see credentials at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/1124

provider: gcp
image: family/kibana-ubuntu-2404
imageProject: elastic-images-prod
machineType: n2-standard-2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was quite slow and hitting timeouts sometimes. I've bumped the machines quite substantially for better DX. Running this pipeline shouldn't be almost an hour.

if (flags.baseImage === 'wolfi')
baseImageName =
'docker.elastic.co/wolfi/chainguard-base:latest@sha256:b5a03b6a754fa2f9a29e44e316a6c4df1f606cd8a3cd8810ce3d6a3a3134428b';
'docker.elastic.co/wolfi/chainguard-base:latest@sha256:b2134dbfbcfb987eec9c249fc81111963de596ff76098775c2444a2869401d9c';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the most recent (as of March 30) Wolfi image and required to bump to have glibc 2.43 active for testing.

@Ikuni17 Ikuni17 added the Team:Operations Kibana-Operations Team label Mar 31, 2026
@Ikuni17 Ikuni17 marked this pull request as ready for review March 31, 2026 06:06
@Ikuni17 Ikuni17 requested a review from a team as a code owner March 31, 2026 06:06
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@kibanamachine
Copy link
Copy Markdown
Contributor

Cloud deployment initiated, see credentials at: https://buildkite.com/elastic/kibana-deploy-cloud-from-pr/builds/892

@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp Bot commented Mar 31, 2026

Approvability

Verdict: Needs human review

This PR modifies production Docker image configuration by adding a glibc memory allocation tunable and updating the base image, which affects runtime behavior. All changed files are owned by @elastic/kibana-operations and should be reviewed by the designated code owners.

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

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Mar 31, 2026

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #10 / buildEsqlFetchSubscribe changing a ES|QL query with no transformational commands should not change state when loading and finished if index pattern and columns are the same

Metrics [docs]

✅ unchanged

History

cc @Ikuni17

@Ikuni17 Ikuni17 merged commit 9f346df into elastic:main Mar 31, 2026
25 checks passed
@Ikuni17 Ikuni17 deleted the build/add-glibc-2.43-flag branch March 31, 2026 18:54
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts
9.2 Backport failed because of merge conflicts
9.3 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 255699

Questions ?

Please refer to the Backport tool documentation

Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request Mar 31, 2026
…55699)

## Summary

Reverts elastic#255691

Newer Chainguard images updated to `glibc 2.43` which changes memory
allocation behavior. Adding this flag reverts that behavior and allows
us to unblock Chainguard image updates.

See
https://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ
for more details.

(cherry picked from commit 9f346df)

# Conflicts:
#	src/dev/build/tasks/os_packages/docker_generator/run.ts
#	src/dev/build/tasks/os_packages/docker_generator/templates/base/Dockerfile
Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request Mar 31, 2026
…55699)

## Summary

Reverts elastic#255691

Newer Chainguard images updated to `glibc 2.43` which changes memory
allocation behavior. Adding this flag reverts that behavior and allows
us to unblock Chainguard image updates.

See
https://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ
for more details.

(cherry picked from commit 9f346df)

# Conflicts:
#	src/dev/build/tasks/os_packages/docker_generator/run.ts
#	src/dev/build/tasks/os_packages/docker_generator/templates/base/Dockerfile
@Ikuni17
Copy link
Copy Markdown
Contributor Author

Ikuni17 commented Mar 31, 2026

💚 All backports created successfully

Status Branch Result
9.3
9.2
8.19

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

Questions ?

Please refer to the Backport tool documentation

Ikuni17 added a commit to Ikuni17/kibana that referenced this pull request Mar 31, 2026
…55699)

## Summary

Reverts elastic#255691

Newer Chainguard images updated to `glibc 2.43` which changes memory
allocation behavior. Adding this flag reverts that behavior and allows
us to unblock Chainguard image updates.

See
https://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ
for more details.

(cherry picked from commit 9f346df)

# Conflicts:
#	src/dev/build/tasks/os_packages/docker_generator/run.ts
#	src/dev/build/tasks/os_packages/docker_generator/templates/base/Dockerfile
Ikuni17 added a commit that referenced this pull request Apr 1, 2026
…55699) (#260565)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Build] Add flag to revert to glibc 2.42 memory management
(#255699)](#255699)

<!--- Backport version: 11.0.1 -->

### 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-31T18:54:10Z","message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more
details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","ci:cloud-deploy","ci:cloud-redeploy","ci:project-deploy-elasticsearch","ci:project-redeploy","v9.4.0"],"title":"[Build]
Add flag to revert to glibc 2.42 memory
management","number":255699,"url":"https://github.com/elastic/kibana/pull/255699","mergeCommit":{"message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more
details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d"}},"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/255699","number":255699,"mergeCommit":{"message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d"}}]}]
BACKPORT-->
Ikuni17 added a commit that referenced this pull request Apr 1, 2026
…5699) (#260564)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Build] Add flag to revert to glibc 2.42 memory management
(#255699)](#255699)

<!--- Backport version: 11.0.1 -->

### 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-31T18:54:10Z","message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more
details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","ci:cloud-deploy","ci:cloud-redeploy","ci:project-deploy-elasticsearch","ci:project-redeploy","v9.4.0"],"title":"[Build]
Add flag to revert to glibc 2.42 memory
management","number":255699,"url":"https://github.com/elastic/kibana/pull/255699","mergeCommit":{"message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more
details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d"}},"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/255699","number":255699,"mergeCommit":{"message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d"}}]}]
BACKPORT-->
Ikuni17 added a commit that referenced this pull request Apr 1, 2026
…5699) (#260563)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[Build] Add flag to revert to glibc 2.42 memory management
(#255699)](#255699)

<!--- Backport version: 11.0.1 -->

### 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-31T18:54:10Z","message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more
details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","ci:cloud-deploy","ci:cloud-redeploy","ci:project-deploy-elasticsearch","ci:project-redeploy","v9.4.0"],"title":"[Build]
Add flag to revert to glibc 2.42 memory
management","number":255699,"url":"https://github.com/elastic/kibana/pull/255699","mergeCommit":{"message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more
details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d"}},"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/255699","number":255699,"mergeCommit":{"message":"[Build]
Add flag to revert to glibc 2.42 memory management (#255699)\n\n##
Summary\n\nReverts #255691\n\nNewer Chainguard images updated to `glibc
2.43` which changes memory\nallocation behavior. Adding this flag
reverts that behavior and allows\nus to unblock Chainguard image
updates.\n\nSee\nhttps://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ\nfor
more details.","sha":"9f346df20cdb34f0792201cd70a5274a8f03995d"}}]}]
BACKPORT-->
jeramysoucy pushed a commit to jeramysoucy/kibana that referenced this pull request Apr 1, 2026
…55699)

## Summary

Reverts elastic#255691

Newer Chainguard images updated to `glibc 2.43` which changes memory
allocation behavior. Adding this flag reverts that behavior and allows
us to unblock Chainguard image updates.

See
https://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ
for more details.
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Apr 2, 2026
…55699)

## Summary

Reverts elastic#255691

Newer Chainguard images updated to `glibc 2.43` which changes memory
allocation behavior. Adding this flag reverts that behavior and allows
us to unblock Chainguard image updates.

See
https://groups.google.com/a/elastic.co/g/support_team/c/RBgzGXEdyR8/m/MxtQhaAmCQAJ
for more details.
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 ci:cloud-deploy Create or update a Cloud deployment ci:cloud-redeploy Always create a new Cloud deployment ci:project-deploy-elasticsearch Create an Elasticsearch Serverless project ci:project-redeploy Always create a new Cloud project 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.

4 participants