Repository navigation
fix(log): keep the latest distinct unclassified example - #5377
Open
zhiwuyazhe-fjr wants to merge 1 commit into
Open
zhiwuyazhe-fjr wants to merge 1 commit into
zhiwuyazhe-fjr wants to merge 1 commit into
Conversation
yeahjack
reviewed
Dec 1, 2026
yeahjack
left a comment
Contributor
There was a problem hiding this comment.
I replayed the numbered polls on aa2c57d and cache warmed now shows up. I found a related case when a training run writes its checkpoint before worker cleanup.
{
printf '2026-11-29T14:12:%02dZ waiting for all ranks\n' 0 1
echo 'Saved checkpoint /runs/nq/checkpoint-1500'
printf 'releasing dataloader worker %s\n' 0 1 2 3 4 5 6 7
} | rtk pipe -f log[other] counts all 11 lines and shows both waits and releasing dataloader worker 7. The checkpoint path drops out. I also tried #4077 on this input and all five tail lines were cleanup messages.
I tested a small follow-up that moves the checkpoint into the second slot just before it would be evicted, when the two opening lines differ only by their timestamps. The three examples then show the first wait, the checkpoint path and the last cleanup line. I’ll send that separately after this lands.
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.
Fixes #5353. Follow-up to #5287.
The three
[other]examples used to fill up at the start of the log. A run with 30 numbered polls followed bycache warmedcounted all 31 lines but displayed only the first three polls.The shared analyzer now keeps the first two distinct examples and uses the third slot for the most recent unclassified line that differs from those two. A repeat of an opening example does not displace the outcome. The count, three-line limit and character limit stay the same.
Verification
rtk pipe -f log. The base binary omitted the final outcome in all three. The patched binary displayed it in all three.cargo fmt --all --check,cargo clippy --all-targets -- -D warningsandcargo test --allon Linux.