Skip to content

Conversation

ericywl
Copy link
Contributor

@ericywl ericywl commented Oct 9, 2025

Motivation/summary

Closes #17314.

Add a new way of defining lazy rollover exceptions.

How to test these changes

Run workflow: https://github.com/elastic/apm-server/actions/runs/18378244354.

@ericywl ericywl self-assigned this Oct 9, 2025
@ericywl ericywl added the backport-skip Skip notification from the automated backport with mergify label Oct 9, 2025
Copy link
Contributor

github-actions bot commented Oct 9, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@ericywl ericywl marked this pull request as ready for review October 10, 2025 03:26
@ericywl ericywl requested a review from a team as a code owner October 10, 2025 03:26
Copy link
Member

@carsonip carsonip left a comment

Choose a reason for hiding this comment

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

nit but code looks good, thanks!

to, err := parseLazyRolloverExceptionVersionRange(e.To)
if err != nil {
return upgradeTestConfig{}, fmt.Errorf(
"failed to parse lazy-rollover-exception version '%s': %w", e.From, err)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"failed to parse lazy-rollover-exception version '%s': %w", e.From, err)
"failed to parse lazy-rollover-exception to version '%s': %w", e.To, err)

nit: typo

from, err := parseLazyRolloverExceptionVersionRange(e.From)
if err != nil {
return upgradeTestConfig{}, fmt.Errorf(
"failed to parse lazy-rollover-exception version '%s': %w", e.From, err)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"failed to parse lazy-rollover-exception version '%s': %w", e.From, err)
"failed to parse lazy-rollover-exception from version '%s': %w", e.From, err)

nit: clarity

# ```
#
# Both major and patch positions are not given the special wildcard (x) because
# it is unlikely to be useful in our use cases. If due to some mistake, the
Copy link
Member

Choose a reason for hiding this comment

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

If due to some mistake

non blocker: I wonder if it is just easier to ban it outright to avoid any misuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-skip Skip notification from the automated backport with mergify

Projects

None yet

Development

Successfully merging this pull request may close these issues.

integrationservertest: Overhaul upgrade-config.yaml

2 participants