{{ message }}
Repository navigation
fix(build, stages): avoid full tag scans for digest lookups - #8075
Draft
alexey-igrychev wants to merge 1 commit into
Draft
alexey-igrychev wants to merge 1 commit into
alexey-igrychev wants to merge 1 commit into
Conversation
Keep publication and recovery lookups authoritative while reading only the relevant ordered tag range. Preserve incompatible-registry fallback and merge observed winners and rejections into cached inventory. Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Member
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Fresh stage lookups download the entire repository tag inventory even when they need one build digest. Request a bounded ordered range for that digest on eligible registries while retaining authoritative checks and compatibility fallback.
What
tags/listrequests withn=100and a digest cursor for fresh lookups on eligible registries; retain bare digest tags, exact digest matching, rejected markers and parent creation timestamps.Why
Publication and recovery decisions need a response newer than their decision boundary. Reusing an old listing can hide a concurrent winner, so TTL or joining an older request cannot replace that check. Fetching unrelated tags is not required to select a stage for one digest, but narrowing the response changes incidental whole-cache refresh behavior and requires explicit observation merging and conservative registry compatibility handling.