Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upload] Add UploadService and UploadWorker logs #19762

Merged
merged 9 commits into from
Dec 11, 2023

Conversation

thomashorta
Copy link
Contributor

This is an attempt to add more information for properly debugging the crash described in #18714 by adding some logs displaying the caller/source of the UploadService start and when UploadWorker is used.

Even though we should ideally move away from using services for uploading posts and media (as mentioned in #18714 (comment)), the real issue causing the crash is trying to start a foreground service from the background and without the information about the caller/source, it's being pretty challenging to understand which part of the code is trying to start such service from the background.

These logs should help us understand what is going on and aid us when we go ahead with refactoring the service to use only WorkManager.


To Test:

There are no specific instructions here, but you can try some app flows that result in UploadService and/or UploadWorker being called and verify that the logs are being shown accordingly.


Regression Notes

  1. Potential unintended areas of impact

    • N/A
  2. What I did to test those areas of impact (or what existing automated tests I relied on)

    • N/A
  3. What automated tests I added (or what prevented me from doing so)

    • N/A

PR Submission Checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 8, 2023

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr19762-de66db5
Commitde66db5
Direct Downloadjetpack-prototype-build-pr19762-de66db5.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 8, 2023

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr19762-de66db5
Commitde66db5
Direct Downloadwordpress-prototype-build-pr19762-de66db5.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

Copy link
Contributor

@ravishanker ravishanker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea 👍

@thomashorta thomashorta modified the milestones: 24.0, 23.9 ❄️ Dec 11, 2023
@thomashorta thomashorta merged commit b4bc8d0 into trunk Dec 11, 2023
20 checks passed
@thomashorta thomashorta deleted the feature/upload-service-logs branch December 11, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants