Closed Bug 1751076 Opened 2 years ago Closed 2 years ago

Intermittent [TV] browser/components/downloads/test/browser/browser_downloads_context_menu_delete_file.js | At the start of the test, there should be 0 downloads - Got 1, expected +0

Categories

(Firefox :: Downloads Panel, defect, P5)

defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox96 --- unaffected
firefox97 --- unaffected
firefox98 --- fixed

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Filed by: nbeleuzu [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=364682368&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/STq50sJNRMa2ny1QTbGj7g/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/STq50sJNRMa2ny1QTbGj7g/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


[task 2022-01-19T19:28:41.271Z] 19:28:41     INFO - TEST-START | browser/components/downloads/test/browser/browser_downloads_context_menu_delete_file.js
[task 2022-01-19T19:28:41.282Z] 19:28:41     INFO - TEST-INFO | started process screentopng
[task 2022-01-19T19:28:41.728Z] 19:28:41     INFO - TEST-INFO | screentopng: exit 0
[task 2022-01-19T19:28:41.728Z] 19:28:41     INFO - Buffered messages logged at 19:28:41
[task 2022-01-19T19:28:41.728Z] 19:28:41     INFO - Entering test bound test_download_deleteFile
[task 2022-01-19T19:28:41.728Z] 19:28:41     INFO - Buffered messages finished
[task 2022-01-19T19:28:41.732Z] 19:28:41     INFO - TEST-UNEXPECTED-FAIL | browser/components/downloads/test/browser/browser_downloads_context_menu_delete_file.js | At the start of the test, there should be 0 downloads - Got 1, expected +0
[task 2022-01-19T19:28:41.732Z] 19:28:41     INFO - Stack trace:
[task 2022-01-19T19:28:41.732Z] 19:28:41     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2022-01-19T19:28:41.732Z] 19:28:41     INFO - chrome://mochitests/content/browser/browser/components/downloads/test/browser/browser_downloads_context_menu_delete_file.js:test_download_deleteFile:45
[task 2022-01-19T19:28:41.733Z] 19:28:41     INFO - Created download directory: /tmp/Temp-f95bbe96-eba4-4fe5-a83d-27b9684c3050/testsavedir2890449701
[task 2022-01-19T19:28:41.733Z] 19:28:41     INFO - Setting path for download file

:Gijs, can you please take a look?

Flags: needinfo?(gijskruitbosch+bugs)
Regressed by: 1750484
Has Regression Range: --- → yes

I encountered a similar problem when I was working on bug 1680139. Tests should clear finished downloads at exit.

I can move the check one line down so it'll clear downloads before checking. But it would be good to find out what made the download, I can make it log any info about the download so it can be tracked down

You don't have to clear downloads before the test starts. But you should clear downloads after the test ends so that subsequent tests (in this case subsequent iterations of the test itself) are not affected.

registerCleanupFunction would be useful. It will ensure the cleanup even if the test throws an exception unexpectedly.

I didn't duplicate task_resetState at the bottom because the menuitem is supposed to remove the download. I copied the template from another test which had task_resetState at the top. I assume it's not removing the download anymore due to the latest change to the pref

The delete file menuitem in the downloads context menu no longer
removes the download list item on its own, so the test needs an
explicit cleanup callback to remove the download it creates.

Assignee: nobody → shmediaproductions
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1750484

Flags: needinfo?(gijskruitbosch+bugs)
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9152f4686874
Fix downloads context menu delete file test. r=Gijs
Regressions: 1751507
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: