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
Pre-push single-flight runner crashes on Windows without SIGHUP #9724
Involves data loss, failed capture, or broken sync/trust
Describe the bug
The installed pre-push hook routes through .github/scripts/preflight_runner.py, which assumes POSIX signal APIs are available. On Windows, every git push fails before the underlying pre-push checks start.
To reproduce
On Windows, install/use the repository Git hooks.
Push any branch that invokes scripts/pre-push-singleflight.
Observe AttributeError: module 'signal' has no attribute 'SIGHUP' from run_owned().
Current behavior
run_owned() builds its handler map from (signal.SIGINT, signal.SIGTERM, signal.SIGHUP) unconditionally. Windows Python does not expose SIGHUP, so the wrapper exits with code 1 and Git rejects the push. The forwarding callback also uses POSIX-only os.killpg, which would be another portability hazard if invoked.
Expected behavior
The single-flight wrapper should register only signals supported by the host and forward them with a platform-compatible process API, allowing the same pre-push checks to run on Windows.
Environment
Windows 11
Python 3.11.15
Git for Windows 2.50+
Additional context
Running scripts/pre-push directly succeeds; only the single-flight wrapper fails. A regression test should exercise signal selection without requiring a real signal to interrupt the test process.
Activity
fix(ci): make pre-push single-flight runner signal handling portable
fix(ci): make pre-push single-flight runner signal handling portable (B…
fix(ci): make pre-push portable on Windows (#10574)
fix(ci): make pre-push single-flight runner signal handling portable (B…