Repository navigation
feat: add progress reporting to fsck command [backport #996] - #997
Conversation
Add background progress ticker and per-step logging to fsck command for long-running operations. Users can now track progress every 30 seconds during suspect collection (Phase 1) and re-verification (Phase 2). Progress tracking includes: - Items checked and suspects found (updated every 30s) - Percentage complete when total is known - Check rate (items/second) - Per-step completion messages with counts Phase 1 (suspect collection) now logs: - phase 1a: narinfos_without_nar_files found - phase 1c: walking NAR storage / indexed NARs / checking nar_files / done checking nar_files - phase 1d: checking storage NAR files / done checking storage NAR files - phase 1e-g: CDC-specific checks Phase 2 (re-verification) logs start with total suspects and periodic progress updates. --------- Co-authored-by: Claude Haiku 4.5 <[email protected]> (cherry picked from commit 37d08fc)
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the user experience of the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces progress reporting for the fsck command, which is a great enhancement for long-running operations. The implementation uses a background ticker and atomic counters to provide periodic updates during suspect collection and re-verification phases. The code is generally well-structured and the new logging provides valuable insight into the command's progress. I've identified one issue where the total count for progress calculation is based on incorrect assumptions, which could lead to a misleading percentage display. My specific comment provides a suggestion to address this.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-0.9 #997 +/- ##
===========================================
Coverage 5.04% 5.04%
===========================================
Files 6 6
Lines 436 436
===========================================
Hits 22 22
Misses 410 410
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bot-based backport to
release-0.9, triggered by a label in #996.Add background progress ticker and per-step logging to fsck command for long-running operations. Users can now track progress every 30 seconds during suspect collection (Phase 1) and re-verification (Phase 2).
Progress tracking includes:
Phase 1 (suspect collection) now logs:
Phase 2 (re-verification) logs start with total suspects and periodic progress updates.
Co-Authored-By: Claude Haiku 4.5 [email protected]