Closed Bug 1888878 Opened 6 months ago Closed 3 months ago

Remove arbitrary timeout from test_idle_maintenance_and_databases.js

Categories

(Core :: Storage: IndexedDB, task, P2)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(10 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

We currently wait 10 seconds to let the maintenance start and finish, it would be better to have some kind of notification or promise which can be awaited.
See also https://phabricator.services.mozilla.com/D205830#7067693

This is needed for allowing Services.idm to be used in JS.

Attachment #9394572 - Attachment is obsolete: true
Depends on: 1890283
No longer depends on: 1888006

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:janv, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(jvarga)
Flags: needinfo?(bugmail)

Yeah, going to land these soon.

Flags: needinfo?(jvarga)
Flags: needinfo?(bugmail)
Keywords: leave-open
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dbc31ef7bbae Add Maintenance::OnResults; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/ae344761679c Add QuotaClient::DoMaintenance; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/b04e41dc0099 Bring back nsIIndexedDatabaseManager; r=dom-storage-reviewers,asuth
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a68040a78053 Remove obsolete comment; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/3fcac65bf541 Extract background actor creation into a separate function; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/737164009733 Extract CreatePromise to PromiseUtils.h; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/2531abda5d95 Extract ResolveBoolResponseAndReturn to ErrorHandling.h; r=dom-storage-reviewers,asuth
Attachment #9394573 - Attachment description: Bug 1888878 - Remove arbitrary timeout from Remove arbitrary timeout from test_idle_maintenance.js and test_idle_maintenance_and_databases.js; r=#dom-storage → Bug 1888878 - Remove arbitrary timeout from test_idle_maintenance.js and test_idle_maintenance_and_databases.js; r=#dom-storage
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/64f683ef6d14 Add nsIIndexedDatabaseManager::DoMaintenance; r=dom-storage-reviewers,asuth
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e3604831a673 Verify that idle-daily notification triggers maintenance; r=dom-storage-reviewers,asuth
Keywords: leave-open
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f24d308576e7 Remove arbitrary timeout from test_idle_maintenance.js and test_idle_maintenance_and_databases.js; r=dom-storage-reviewers,asuth

So once the last patch gets to mozilla-central, both tests test_idle_maintenance.js and test_idle_maintenance_and_databases.js will take less than a second on a dev machine. It used to be at least 10s.

See Also: → 1920487
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: