Closed Bug 1978912 Opened 1 year ago Closed 11 months ago

Intermittent mozilla.components.feature.downloads.AbstractFetchDownloadServiceTest.WHEN an intent is sent with an ACTION_RESUME action and the file exists THEN the broadcastReceiver resumes the download | java.lang.AssertionError: expected:<DOWNLOADI

Categories

(Firefox for Android :: Downloads, defect, P5)

All
Android
defect

Tracking

()

RESOLVED DUPLICATE of bug 1977393

People

(Reporter: intermittent-bug-filer, Assigned: titouan)

References

Details

(Keywords: intermittent-failure, Whiteboard: [fxdroid][group4])

Attachments

(1 file)

Filed by: agoloman [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=519164184&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/GiVfWtB0Rqm4PbiYrKucaA/runs/0/artifacts/public/logs/live_backing.log


[task 2025-07-23T17:57:13.971+00:00]   TEST: WHEN an intent is sent with an ACTION_RESUME action and the file exists THEN the broadcastReceiver resumes the download
[task 2025-07-23T17:57:14.068+00:00]     W/OverlayConfig: partition_order.xml does not exist.
[task 2025-07-23T17:57:14.068+00:00]     W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #30
[task 2025-07-23T17:57:14.068+00:00]     W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #86
[task 2025-07-23T17:57:14.068+00:00]     W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #94
[task 2025-07-23T17:57:14.068+00:00]     W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #102
[task 2025-07-23T17:57:14.568+00:00]     D [AbstractFetchDownloadService] Starting download for 5ceac138-eaad-48d4-a35e-401c2ae9ee92
[task 2025-07-23T17:57:14.568+00:00]     D [AbstractFetchDownloadService] Fetching download for 5ceac138-eaad-48d4-a35e-401c2ae9ee92
[task 2025-07-23T17:57:14.668+00:00]     D [AbstractFetchDownloadService] verifyDownload for 5ceac138-eaad-48d4-a35e-401c2ae9ee92 COMPLETED
[task 2025-07-23T17:57:15.068+00:00]     D [AbstractFetchDownloadService] Starting download for 5ceac138-eaad-48d4-a35e-401c2ae9ee92
[task 2025-07-23T17:57:15.069+00:00]     D [AbstractFetchDownloadService] Resuming download
[task 2025-07-23T17:57:15.069+00:00]     D [AbstractFetchDownloadService] Fetching download for 5ceac138-eaad-48d4-a35e-401c2ae9ee92
[task 2025-07-23T17:57:15.070+00:00]     E [AbstractFetchDownloadService] Unable to complete download for 5ceac138-eaad-48d4-a35e-401c2ae9ee92 marked as FAILED
[task 2025-07-23T17:57:15.071+00:00]     java.lang.NullPointerException: Cannot invoke "android.content.Context.getPackageName()" because "this.mBase" is null
[task 2025-07-23T17:57:15.072+00:00]     at android.content.ContextWrapper.getPackageName(ContextWrapper.java:179)
[task 2025-07-23T17:57:15.072+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService$Companion.getFilePathUri$feature_downloads_release(AbstractFetchDownloadService.kt:1197)
[task 2025-07-23T17:57:15.073+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService$Companion.getSafeContentType$feature_downloads_release(AbstractFetchDownloadService.kt:1190)
[task 2025-07-23T17:57:15.074+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService.useFileStreamScopedStorage$feature_downloads_release(AbstractFetchDownloadService.kt:1013)
[task 2025-07-23T17:57:15.075+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService.useFileStream$feature_downloads_release(AbstractFetchDownloadService.kt:928)
[task 2025-07-23T17:57:15.076+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService.performDownload$lambda$15(AbstractFetchDownloadService.kt:800)
[task 2025-07-23T17:57:15.076+00:00]     at mozilla.components.concept.fetch.Response$Body.useStream(Response.kt:79)
[task 2025-07-23T17:57:15.077+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService.performDownload$feature_downloads_release(AbstractFetchDownloadService.kt:795)
[task 2025-07-23T17:57:15.078+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService.performDownload$feature_downloads_release$default(AbstractFetchDownloadService.kt:747)
[task 2025-07-23T17:57:15.079+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService.startDownloadJob$feature_downloads_release(AbstractFetchDownloadService.kt:494)
[task 2025-07-23T17:57:15.079+00:00]     at mozilla.components.feature.downloads.AbstractFetchDownloadService$broadcastReceiver$2$1$onReceive$1.invokeSuspend(AbstractFetchDownloadService.kt:195)
[task 2025-07-23T17:57:15.080+00:00]     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
[task 2025-07-23T17:57:15.081+00:00]     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
[task 2025-07-23T17:57:15.082+00:00]     at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
[task 2025-07-23T17:57:15.083+00:00]     at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
[task 2025-07-23T17:57:15.083+00:00]     at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
[task 2025-07-23T17:57:15.084+00:00]     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
[task 2025-07-23T17:57:15.085+00:00]     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
[task 2025-07-23T17:57:15.085+00:00]     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
[task 2025-07-23T17:57:15.086+00:00]     D [AbstractFetchDownloadService] ACTION_RESUME for 5ceac138-eaad-48d4-a35e-401c2ae9ee92
[task 2025-07-23T17:57:15.168+00:00]   TEST-UNEXPECTED-FAIL | mozilla.components.feature.downloads.AbstractFetchDownloadServiceTest.WHEN an intent is sent with an ACTION_RESUME action and the file exists THEN the broadcastReceiver resumes the download | java.lang.AssertionError: expected:<DOWNLOADING> but was:<FAILED>
[task 2025-07-23T17:57:15.168+00:00] 
[task 2025-07-23T17:57:15.168+00:00]   TEST: WHEN an intent does not provide an action THEN handleDownloadIntent must be called
[task 2025-07-23T17:57:15.168+00:00]     W/OverlayConfig: partition_order.xml does not exist.
[task 2025-07-23T17:57:15.168+00:00]     W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #30
[task 2025-07-23T17:57:15.168+00:00]     W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #86
[task 2025-07-23T17:57:15.168+00:00]     W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #94
[task 2025-07-23T17:57:15.169+00:00]     W/PackageParser: No actions in intent filter at /builds/worker/checkouts/gecko/mobile/android/android-components/components/feature/downloads/../../../../../../../../workspace/obj-build/gradle/build/mobile/android/android-components/components/feature/downloads/intermediates/apk_for_local_test/releaseUnitTest/packageReleaseUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #102
[task 2025-07-23T17:57:15.268+00:00]   SUCCESS

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::Downloads' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Downloads

This is a pretty frequent failure. Can you please take a look?

Flags: needinfo?(tthibaud)

I'm working on it

Assignee: nobody → tthibaud
Status: NEW → ASSIGNED
Flags: needinfo?(tthibaud)
Whiteboard: [fxdroid][group4]

This was fixed on D260107 for Bug 1977393

Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Duplicate of bug: 1977393
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: