Skip to content

uploader: the 12h metered delay never applied to boot and crash logs - #38819

Open
singhharsh1708 wants to merge 1 commit into
commaai:masterfrom
singhharsh1708:uploader-metered-boot-logs
Open

uploader: the 12h metered delay never applied to boot and crash logs#38819
singhharsh1708 wants to merge 1 commit into
commaai:masterfrom
singhharsh1708:uploader-metered-boot-logs

Conversation

@singhharsh1708

Copy link
Copy Markdown

The 12 hour hold off that keeps boot and crash logs off a metered connection has never run. immediate_folders is ["crash/", "boot/"] with trailing slashes, because its other use further down is a substring test against a full key. The check at line 119 is an exact membership test against logdir, which comes from os.listdir and so is "boot" or "crash", never with a slash, so it is always False.

On a metered connection that means a bootlog or crashlog is uploaded immediately over cellular instead of waiting up to 12 hours for a chance at wifi. It has behaved this way since #31045, which is both where the check was added and where the loop variable was renamed from logname to logdir.

Comparing with the slash matches how immediate_folders is defined and leaves the substring use at line 131 alone. I also added a test, since the existing ones only ever call list_upload_files(metered=False), which is why this went unnoticed.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

@singhharsh1708
singhharsh1708 force-pushed the uploader-metered-boot-logs branch from f0a8d6a to 5388742 Compare September 8, 2026 18:11
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