Skip to content

fix: hide Git delivery console windows on Windows - #45

Open
symmr wants to merge 1 commit into
splunk:mainfrom
symmr:fix/windows-git-delivery-no-console
Open

fix: hide Git delivery console windows on Windows#45
symmr wants to merge 1 commit into
splunk:mainfrom
symmr:fix/windows-git-delivery-no-console

Conversation

@symmr

@symmr symmr commented Sep 11, 2026

Copy link
Copy Markdown

Summary

  • Git delivery's _subprocess_runner now passes the same Windows CREATE_NO_WINDOW kwargs as the update-check path, so git.exe no longer flashes a console every 5 minutes.
  • Helper lives on GitDeliveryService (not imported from app.py) to avoid a circular import.
  • Adds test_subprocess_runner_hides_windows_console.

Fixes #32

Validation

  • python -m unittest tests.GitDeliveryScannerTests.test_subprocess_runner_hides_windows_console tests.GitDeliveryScannerTests.test_git_command_uses_path_git — pass
  • Windows 11 (10.0.26200): Token Meter started with the patched git_delivery.py; no visible git consoles during watcher bursts
  • /health: ok=true, inventory_ready=true; meter.err.log empty

Full tests.test_git_delivery still hits pre-existing Windows tempfile SQLite cleanup WinError 32 on several tests; unrelated to this change.

Notes

Same flags as #19 (creationflags=0x08000000, close_fds=True), different call site.

Made with Cursor

The Git delivery watcher spawned visible git consoles because
_subprocess_runner did not pass CREATE_NO_WINDOW. Match the
update-check path from splunk#19 without importing app.py.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: Git delivery watcher spawns visible git console windows

2 participants