Skip to content

Fix duplicate file-log rotation in 1.6.0 - #329

Merged
TobiasRoeddiger merged 1 commit into
automation/bump-version-1.5.4-36858743484from
codex/shared-log-output-lifecycle
Oct 5, 2026
Merged

TobiasRoeddiger merged 1 commit into
automation/bump-version-1.5.4-36858743484from
codex/shared-log-output-lifecycle

Conversation

@TobiasRoeddiger

@TobiasRoeddiger TobiasRoeddiger commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

The app and library initialize the same file output twice, creating two rotation timers that race to rename latest.log. This produced a caught PathNotFoundException during a real firmware update. Give the shared output one initialization/destruction lifecycle and close both loggers when the manager is disposed.

The actual file-output regression reproduces two timers and the rename error before the fix; afterward it verifies one timer, successful rotation, both log sources preserved exactly once and all timers cancelled on disposal. All 122 app tests pass and analysis is clean. The rebuilt app passed127 integrated tests, analysis and Android build. On the Pixel, the log viewer opened existing logs and displayed newly appended app and library messages; no file errors occurred. The rotation regression uses actual file I/O on the host; the phone did not reach its rotation threshold during this check.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit f30d981):

https://open-earable-web--pr329-codex-shared-log-out-yteemedi.web.app

(expires Mon, 02 Nov 2026 04:26:32 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c7397c11177c71d8d81172cea9365829823fb41c

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

PR Build Artifacts

Full workflow run: https://github.com/OpenEarable/app/actions/runs/37264368957

@TobiasRoeddiger
TobiasRoeddiger marked this pull request as ready for review October 5, 2026 04:38
@TobiasRoeddiger
TobiasRoeddiger merged commit d324cb1 into automation/bump-version-1.5.4-36858743484 Oct 5, 2026
9 checks passed
@TobiasRoeddiger
TobiasRoeddiger deleted the codex/shared-log-output-lifecycle branch October 5, 2026 04:38
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.

1 participant