You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 324cb2e
Browse filesBrowse the repository at this point in the historyBrowse files
test(watch): script only the watch loop's sleep in drive_watch
drive_watch replaced `sleep` on the shared `time` module with its event
pump, so every sleeper in the process ran the script, not just the watch
loop. A rebuild runs `git rev-parse HEAD` through subprocess.run(timeout=3),
whose wait loop sleeps when git has closed its output but has not been
reaped yet. That sleep then consumed the next scripted event, or raised the
end-of-script KeyboardInterrupt inside the rebuild; _git_head only catches
Exception, so the watcher stopped before extract() and the last change never
reached graph.json. In CI this surfaced as
test_watch_root_config_lifecycle_rebuilds_and_refreshes_event_mapping[modify]
failing with `'changed()' not in {'initial()', ...}`.
Patch watch.py's own `time` reference instead: sleep is scripted, every other
attribute resolves to the real module, and sleeps elsewhere stay real.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HrXx9K7CikYRNMqWg99y8E
0 commit comments