Skip to content

loggerd: handle stray log root entries safely#37604

Closed
Yuki9814 wants to merge 2 commits intocommaai:masterfrom
Yuki9814:codex/deleter-stray-files
Closed

loggerd: handle stray log root entries safely#37604
Yuki9814 wants to merge 2 commits intocommaai:masterfrom
Yuki9814:codex/deleter-stray-files

Conversation

@Yuki9814
Copy link
Copy Markdown

@Yuki9814 Yuki9814 commented Mar 8, 2026

Summary

  • handle non-directory entries in the log root without crashing the deleter thread
  • keep the existing segment deletion ordering while skipping locked directories
  • add broader coverage for mixed files, directories, symlinks, and directory listing failures

Verification

  • py -3 -m py_compile C:\Users\23615\Desktop\GitHub\openpilot-edit\system\loggerd\deleter.py C:\Users\23615\Desktop\GitHub\openpilot-edit\system\loggerd\tests\test_deleter.py
  • wsl.exe -d Ubuntu -- python3 /mnt/c/Users/23615/Desktop/GitHub/verify_deleter_patch.py
  • full pytest system/loggerd/tests/test_deleter.py -q is still blocked in the lightweight sandbox because the repo's compiled openpilot.common.params_pyx extension is not built there yet

Closes #30102

@Yuki9814 Yuki9814 deleted the codex/deleter-stray-files branch March 16, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deleter: handle non-openpilot created files

2 participants