Repository navigation
fix: pace short stability-monitoring windows - #57
Merged
OkiriGabriel merged 2 commits intoAug 31, 2026
Merged
OkiriGabriel merged 2 commits into
OkiriGabriel merged 2 commits into
Conversation
…ent#55) Add a regression test that drives FixVerifier._monitor_stability with a controlled clock, a stubbed immediate-check, and a recording replacement for asyncio.sleep. It covers every positive integer duration from 1 to 9 and asserts that each completed observation awaits a strictly positive pacing delay, so the observation count is bounded by the requested monitoring window rather than by event-loop throughput. It also pins the intervals that must not change: the 30 second maximum for long windows and the duration // 10 interval for medium ones. Co-Authored-By: Claude Opus 5 <[email protected]>
…pen-devops-agent#55) min(30, duration // 10) evaluates to zero for every monitoring duration from one to nine seconds, so the stability loop awaited asyncio.sleep(0) and re-checked the target as fast as the event loop allowed until the wall-clock deadline. Clamp the interval to at least one second so the observation count follows the requested window instead of event-loop throughput. Longer windows are unaffected: the 30 second maximum and the duration // 10 interval both stay as they were. Fixes open-devops-agent#55 Co-Authored-By: Claude Opus 5 <[email protected]>
Collaborator
|
Reviewed — CI is green across all checks. Pacing short stability-monitoring windows is a good fix. Merging to |
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.
Description
Ensure every positive stability-monitoring duration uses a positive pacing delay, preventing short windows from busy-spinning while preserving the proportional interval and existing 30-second maximum.
Fixes #55
Type of Change
Platform/Component
Testing
The regression tests cover all affected positive durations (1–9), retain representative proportional intervals, and retain the 30-second cap. The test-only commit failed by the intended nine assertions on a 10-job fork run. Candidate
629d681396e5148eb3ef8984ec9ab5c117731d9cthen passed all 10 jobs, including Python 3.10, 3.11, and 3.12 with 206 passed and 2 skipped per matrix job. A byte-identical-test mutant that restored the zero-delay defect was killed by exactly the nine new assertions.Test Configuration
Checklist
Screenshots (if applicable)
N/A
Breaking Changes
None.
Additional Notes
No documentation describes this internal pacing formula, and the change has no dependent work. Verification ran on GitHub-hosted fork runners rather than the shared development host.
Reviewer Checklist
Generated by Claude Opus 5 (implementation, testing), GPT-5.6 Sol (brief, review, verification), Kimi K3 (template verification)