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
Bug: sensor test fails on macOS; CI only runs on Ubuntu. Add macOS and Windows to the matrix and fix what breaks #113
bugSomething isn't workingdifficulty: mediumLeaderboard: 6 points when the PR closing this is mergedhackathonOpen for the Secfoo hackathonhelp wantedExtra attention is needed
Problem:.github/workflows/ci.yml tests on ubuntu-latest only, for Python 3.10 and 3.12. secfoo ships binaries for macOS (arm64 and x64) and Windows, uses os.killpg in agents/base.py with a separate Windows branch, has a Windows-only codex -c windows.sandbox path, and the SARIF exporter special-cases Windows paths. None of that runs in CI. The first known break, reproduced on macOS 15 (Darwin 24.6) with Python 3.12, is deterministic, not flaky:
tests/test_sensor/test_python_probe.py::test_sensor_dying_mid_run_drops_events_without_blocking
> assert results[-1] is False
E assert True is False
(three consecutive runs, also on an untouched main checkout). The probe's send after the sensor dies still returns True on macOS, which suggests the socket error path differs from Linux (e.g. EPIPE vs ECONNRESET, or buffered sends succeeding before the RST arrives).
Build:
Extend the CI matrix to macos-14 and windows-latest (keep both Python versions on Ubuntu; one version on the others is enough). Mark steps that are Linux-only (secfoo sensor conformance if it cannot run elsewhere) rather than skipping the whole job.
Fix the macOS sensor failure in src/secfoo/sensor/probe.py (or the test, if the test's assumption is Linux-specific; say which and why).
Fix whatever else fails. Likely candidates: path handling in fingerprints (_normalize_path, lstrip("./")), temp-dir cleanup of shallow clones on Windows (targets/), _kill_process_tree on Windows, console encoding of box-drawing characters on the Windows runner (PYTHONIOENCODING), and Path.as_uri() in report/sarif.py.
Add skipif markers only with a comment naming the OS limitation; no blanket skips.
Where to look:.github/workflows/ci.yml, src/secfoo/sensor/probe.py, tests/test_sensor/test_python_probe.py, src/secfoo/agents/base.py (_kill_process_tree), src/secfoo/agents/codex.py, src/secfoo/targets/, src/secfoo/report/sarif.py.
Done when: CI is green on Ubuntu, macOS and Windows with no || true; the macOS sensor test passes for the right reason (explained in the PR); the skipif markers added are listed in the PR with a one-line reason each.
Hi! I'd like to take this one. Plan: add macos-14 and windows-latest to the CI matrix (both Python versions stay on Ubuntu, one on the others), and mark the Linux-only steps instead of skipping whole jobs. Then work out why the probe's send still returns True after the sensor dies on macOS, and fix it in sensor/probe.py, or in the test if its assumption is Linux-specific, saying which and why. After that, fix whatever else breaks (path normalization in fingerprints, clone cleanup and _kill_process_tree on Windows, console encoding, Path.as_uri() in SARIF). Every skipif gets a one-line OS reason, listed in the PR.
bugSomething isn't workingdifficulty: mediumLeaderboard: 6 points when the PR closing this is mergedhackathonOpen for the Secfoo hackathonhelp wantedExtra attention is needed
Activity
aaas72 commentedon Nov 21, 2026
Hi! I'd like to take this one. Plan: add
macos-14andwindows-latestto the CI matrix (both Python versions stay on Ubuntu, one on the others), and mark the Linux-only steps instead of skipping whole jobs. Then work out why the probe's send still returnsTrueafter the sensor dies on macOS, and fix it insensor/probe.py, or in the test if its assumption is Linux-specific, saying which and why. After that, fix whatever else breaks (path normalization in fingerprints, clone cleanup and_kill_process_treeon Windows, console encoding,Path.as_uri()in SARIF). Everyskipifgets a one-line OS reason, listed in the PR.fix: Windows failures found by the new CI job
fix: check the sensor's FIN before writing; case-sensitive corpus order
Add CI tests for macOS and Windows with sensor FIN probe (#191)