Conversation
…eeded Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
|
@claude[agent] Check if the time estimation algorithm is actually correct. Re-adjust the ETA based on past speed, not just initial value. |
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
I've implemented an adaptive ETA algorithm that learns from actual test progress (commit 1c99ff8). How it works:
Key changes:
Example scenario:
All existing tests pass. The algorithm adapts to both under-estimates and over-estimates. |
|
@claude[agent] Ignore the first 10% progress when estimating, as it may be instant (the drive might start right from "90% remaining". |
… progress Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
Implemented in commit d88090d. The algorithm now uses a Why this matters:
How it works now:
All tests pass. The logic is now clearer and handles all edge cases (drive reporting 90%, 80%, or any other percentage on first poll). |
|
@claude[agent] fix the new codacy issue |
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
…ments Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
|
@claude[agent] add unit tests |
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com> Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/8b4b77f5-beb6-4c32-bf49-93d641714685
Unit tests added in commit c673bd9. Test Coverage:
Test Results: The tests verify the adaptive ETA algorithm's behavior without requiring actual smartctl execution by testing the public API surface and state management. |
granvariable to fallback path only (avoid unnecessary computation)build/from .gitignore (already covered by/build*)Unit Tests Added
Added
test_selftest.cppwith comprehensive test coverage for the SelfTest class:All tests pass (30 assertions across 3 test cases), and the test suite validates the adaptive ETA algorithm behavior through the public API without requiring actual smartctl execution.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.