Skip to content

Retention: keep the current baselines of a branch pull requests target, however old (release branches) - #223

Merged
ndbroadbent merged 1 commit into
mainfrom
retention-branches
Dec 4, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
retention-branches

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Follow-up from sc-9247: retention kept current baselines only on the default branch and on branches with a build in the last 90 days. A release branch with no recent builds lost its approved images, so the next PR into it compared with an older build or the default branch's.

Now retention also keeps the current baselines of every branch a build has named as its base_branch, however long ago. A feature branch's baselines still go 90 days after its last build. Keeping every branch's would keep dead feature branches' images forever.

Limit: a release branch that no pull request has ever targeted, and that has had no builds for 90 days, still loses its baselines. Its next PR compares as before.

Test: retention::retention_keeps_the_baselines_of_a_branch_pull_requests_target. It fails without the change.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@ndbroadbent
ndbroadbent merged commit a3c0858 into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the retention-branches branch December 4, 2026 18:35
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.

1 participant