Fixed
- CI test flakiness eliminated —
test_set_key_writes_to_env_filewas non-deterministically failing in full-suite runs because two test files (test_profile_env_isolation.py,test_profile_path_security.py) permanently removedapi.profilesfrom the Python module cache viasys.modules.pop(). Subsequent tests that imported the module got a freshly re-initialized version with differentHERMES_HOMEstate, causing path resolution to go to the wrong directory. Fixed by replacingsys.modules.pop/delwithmonkeypatch.delitem()so pytest auto-restores the original module reference after each test. api/providers.py_write_env_file()hardened —_ENV_LOCKnow held for the entire load → modify → mkdir → write cycle (previously only coveredos.environmutations); new.envfiles created owner-read/write-only (0600) from first byte viaos.open.
Reviewed by Opus (test-only + providers.py fix — no independent review required per project policy).
What's Changed
- fix(ci): add missing provider i18n keys to es/de/zh/ru/zh-Hant — v0.50.160 by @nesquena-hermes in #878
- fix(ci): eliminate test_set_key flakiness — sys.modules isolation in profile tests by @nesquena-hermes in #879
Full Changelog: v0.50.160...v0.50.161