Skip to content

Fix service version info to only register major and minor versions #6261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

RanVaknin
Copy link
Contributor

@RanVaknin RanVaknin commented Jul 15, 2025

Follow up to #6212
Changes ServiceVersionInfo to be generated with a major.minor.x format instead of major.minor.patch this is to avoid updating this file for every service for every release.

Lowering the update cadence is done to avoid rate limiting in our release infrastructure. This comes at the cost of having less fine-grained useragent info.

@RanVaknin RanVaknin requested a review from a team as a code owner July 15, 2025 20:59
@RanVaknin RanVaknin added the changelog-not-required Indicate changelog entry is not required for a specific PR label Jul 15, 2025
@RanVaknin RanVaknin changed the title Rvaknin/fix service version info to only register major and minor versions Fix service version info to only register major and minor versions Jul 15, 2025
public class VersionUtilsTest {

@Test
public void serviceVersionInfo_redactPatchVersion() {
Copy link
Contributor

Choose a reason for hiding this comment

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

probably worth adding a test case for versiosn that don't match the regex + a non 2.x version

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@RanVaknin RanVaknin added this pull request to the merge queue Jul 16, 2025
Merged via the queue into master with commit 6b912d4 Jul 17, 2025
35 of 36 checks passed
Copy link

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
changelog-not-required Indicate changelog entry is not required for a specific PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants