Skip to content
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

differently exclude tagged job versions from being pruned #24102

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

gulducat
Copy link
Member

@gulducat gulducat commented Oct 1, 2024

#23983 prevented tagged job versions from being pruned, but sometimes they would still count against job_tracked_versions, which was not what we intended.

This puts back the original old-version pruning logic, and instead filters out the tagged versions earlier (in jobVersionByID() to avoid additional slice construction to filter the list in upsertJobVersion()), so that tagged versions are simply not considered during pruning at all.

The test seems rather convoluted, but I opted to keep it because it exercises the holistic behavior that we want to see, while still also covering the more localized change to jobVersionByID().

Copy link
Member

@mismithhisler mismithhisler left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

@gulducat gulducat added the theme/golden-versions Tagging and preserving job versions label Oct 2, 2024
@gulducat gulducat merged commit 6b9bcb8 into main Oct 2, 2024
29 checks passed
@gulducat gulducat deleted the fix-versiontag-eviction branch October 2, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/golden-versions Tagging and preserving job versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants