e9d5749f7c
Reported by the OmniSim evaluation of the public u-link example (2026-09-11): pip install + export.py on Windows died three times in the build layer before any geometry was built. - Binary-mode opens: every byte-exact os.open site now sets O_BINARY via _internal/os_compat.with_binary_flag. autocrlf=true clones read builder sources in text mode, stripped CR, and aborted with a false file_input_changed (25579-byte u_link.py read back as 25092); the same hazard expanded LF on cache writes and would corrupt CAS hashes. Sites: build/dependencies.py, artifacts/feature_graph.py, scene/archive.py, cache/store.py (object/record writes, lock create), artifacts/interface.py (lock create). - Directory fsync is POSIX-only: os.open(<dir>)+fsync raised PermissionError on Windows in cache/store.py and artifacts/interface.py; both now no-op off POSIX via one helper. - Stale-lock recovery by evidence: a lock whose recorded owner pid is provably dead is recovered immediately (unreadable owners still wait out the age gate, live owners are never broken). Windows liveness probing uses OpenProcess/GetExitCodeProcess — os.kill(pid, 0) maps to TerminateProcess there and kills the process being probed. - Console hardening at import: non-UTF strict streams are reconfigured to backslashreplace so a cp1252 console cannot raise UnicodeEncodeError from a diagnostic print inside an error handler and mask the real failure. - .gitattributes: byte-exact by default, LF pinned for text formats, so builder-source digests stop depending on core.autocrlf. Tests: test_os_compat.py (15) + dead-owner immediate recovery in test_cache_store.py; full suite 1799 passed, 5 skipped. ty: zero new diagnostics.
26 lines
780 B
Plaintext
26 lines
780 B
Plaintext
# Byte-exact by default: no end-of-line conversion for any file unless it
|
|
# opts in below. Builder-source digests (part cache keys) hash working-tree
|
|
# bytes, so a core.autocrlf=true checkout must not differ from an LF one.
|
|
* -text
|
|
|
|
# Text formats pin LF so every platform checks out identical bytes.
|
|
*.py text eol=lf
|
|
*.md text eol=lf
|
|
*.rst text eol=lf
|
|
*.txt text eol=lf
|
|
*.toml text eol=lf
|
|
*.json text eol=lf
|
|
*.yml text eol=lf
|
|
*.yaml text eol=lf
|
|
*.cfg text eol=lf
|
|
*.ini text eol=lf
|
|
*.sh text eol=lf
|
|
*.ts text eol=lf
|
|
*.js text eol=lf
|
|
*.mjs text eol=lf
|
|
*.css text eol=lf
|
|
*.html text eol=lf
|
|
*.svg text eol=lf
|
|
.gitignore text eol=lf
|
|
.gitattributes text eol=lf
|