Environment:
- OS: Windows 10/11
- Python: 3.13.11
- Strix version: main branch (latest)
Steps to reproduce:
- Clone repo on Windows
- Run
uv sync
- Run
uv run pytest tests/test_config_loader.py::test_persist_current_sets_0600_mode
Expected: Test passes or is skipped on Windows.
Actual:
Windows st_mode returns 33206 (regular file), not 0o600 (Unix permission). Unix file permissions don't exist on Windows.
Suggested fix: Skip this test on Windows (os.name == 'nt') or use stat.S_IMODE() with a platform check.
Additional context:
I am setting up Strix for local development on Windows and encountered this during uv run pytest. The persist_current() method in strix/config/loader.py sets 0o600 mode, but Windows doesn't support Unix-style file permissions. This blocks Windows contributors from running the full test suite cleanly.
Environment:
Steps to reproduce:
uv syncuv run pytest tests/test_config_loader.py::test_persist_current_sets_0600_modeExpected: Test passes or is skipped on Windows.
Actual:
Windows
st_modereturns33206(regular file), not0o600(Unix permission). Unix file permissions don't exist on Windows.Suggested fix: Skip this test on Windows (
os.name == 'nt') or usestat.S_IMODE()with a platform check.Additional context:
I am setting up Strix for local development on Windows and encountered this during
uv run pytest. Thepersist_current()method instrix/config/loader.pysets0o600mode, but Windows doesn't support Unix-style file permissions. This blocks Windows contributors from running the full test suite cleanly.