Skip to content

Conversation

machine424
Copy link
Member

@machine424 machine424 commented Feb 28, 2025

  • fix: set gogc default value when config body is empty

  • refactor: explicitly check value 75 in TestGoGCDefaultValueOnEmptyConfigBody

add GoGC assertion in TestEmptyConfig, also removed the no longer needed runtime config assignment in TestEmptyGlobalBlock

  • refactor: remove TestGoGCDefaultValueOnEmptyConfigBody to reduce duplicate assertions

backporting #16052 to LTS 2.53


Had to update prometheus/promci and actions/cache

@machine424 machine424 force-pushed the backpo branch 2 times, most recently from 417db53 to 76e94ae Compare March 5, 2025 14:24
@machine424 machine424 changed the title config: set gogc default value when config body is empty (#16052) backport[2.53]: config: set gogc default value when config body is empty (#16052) Mar 5, 2025
@machine424 machine424 force-pushed the backpo branch 2 times, most recently from f0a890e to f8febd8 Compare March 5, 2025 14:41
machine424 and others added 3 commits March 5, 2025 15:44
The used version had a no-longer-supported actions/upload-artifact version

Which led to:

Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

as in https://github.com/prometheus/prometheus/actions/runs/13591433692/job/38242934626

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
avoiding

Error: This request has been automatically failed because it uses a deprecated version of `actions/cache: 0c45773b623bea8c8e75f6c82b208c3cf94ea4f9`. Please update your workflow to use v3/v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

like in https://github.com/prometheus/prometheus/actions/runs/13678387950/job/38244352964?pr=16090

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
…16052)

* fix: set gogc default value when config body is empty

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

* refactor: explicitly check value 75 in `TestGoGCDefaultValueOnEmptyConfigBody`

add GoGC assertion in `TestEmptyConfig`, also removed the no longer needed runtime config assignment in `TestEmptyGlobalBlock`

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

* refactor: remove `TestGoGCDefaultValueOnEmptyConfigBody` to reduce duplicate assertions

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

---------

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
Copy link
Member

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

LGTM, simple enough backport

@krajorama krajorama merged commit 3c99f4c into prometheus:release-2.53 Mar 11, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants