Files
hermes-agent/tests/persistence_sqlite/core
yoniebans d1829b9f72 F31: the network-filesystem detection cases run on Linux under platforms("linux") instead of faking the platform
Main's network-filesystem detection reads /proc/self/mountinfo on Linux only and answers False elsewhere; tests/AGENTS.md ("Don't fake the host OS") says such a case runs on its host under @pytest.mark.platforms("linux") and never patches sys.platform.

The removal commit's copies of test_network_fs_wal_warn.py and test_network_fs_journal_default.py added a `_linux` fixture that set sqlite_support.sys.platform to "linux", so the Linux-only detection cases ran on every host over a faked platform.

The fixture is gone and the three cases that used it (16 parametrised runs) carry @pytest.mark.platforms("linux"). The other cases, host-independent, stay unmarked.

Proof: before, on darwin, both files passed 26 with the fake (19 + 7) and grep finds the two `monkeypatch.setattr(sqlite_support.sys, "platform", "linux")` lines; after, on darwin, 10 passed and 16 skipped with "platforms(linux); host is darwin" (4 passed, 15 skipped; 6 passed, 1 skipped), and no sys.platform patch is left. The 16 cases read only the mountinfo file they are given, so on Linux they run as they ran under the fake; the main Linux CI lane runs them. ruff clean.

Reported-by: greptile-apps[bot]
2026-11-17 19:10:58 +01:00
..