Closed Bug 1691588 Opened 4 years ago Closed 4 years ago

Fix and re-enable devtools/client/shared/test/browser_dbg_WorkerTargetActor.attach.js test for Fission

Categories

(DevTools :: General, task, P3)

task

Tracking

(Fission Milestone:MVP, firefox92 fixed)

RESOLVED FIXED
92 Branch
Fission Milestone MVP
Tracking Status
firefox92 --- fixed

People

(Reporter: cpeterson, Assigned: ochameau)

References

(Blocks 2 open bugs)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

This test was disabled for Fission in bug 1669000.

https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/devtools/client/shared/test/browser.ini#254-256

[browser_dbg_WorkerTargetActor.attach.js]
fail-if = fission # Fails with Fission + session-history-in-parent (Bug 1669000)
skip-if = e10s && debug
Whiteboard: dt-fission-triage → dt-fission-m3-triage
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp

Tracking DevTools test bugs for Fission M8 (blocking Release experiment).

Fission Milestone: ? → M8
Type: defect → task
Priority: -- → P3

Tracking DevTools Post-M8 bugs for Fission MVP milestone. They don't block the Fission Release channel experiment, but we would like them to be completed before we roll out Fission by default.

Fission Milestone: M8 → MVP
No longer blocks: fission-tests
Assignee: nobody → poirot.alex

Unfortunately, these is more than one failure behind this test and one isn't trivial. More info on phabricator.

Assignee: poirot.alex → nobody

At least for me the test seems to pass now on Fission. Does it rely on bfcache, which wasn't enabled when the comment 4 was created?
Or perhaps something else has been fixed.
Could we enable the test?

Flags: needinfo?(poirot.alex)

oh, hmm, now it happened again. nm then.

Flags: needinfo?(poirot.alex)

Some comments from my testing (Nightly, Win10):

  1. It seems to pass when running with Fission and BFCache in Parent ON`

I see no failures when running as follows:
$ mach test devtools/client/shared/test/browser_dbg_WorkerTargetActor.attach.js --enable-fission --setpref fission.bfcacheInParent=true --ve rify --headless

  1. Fails for me when running with server side target switching ON devtools.target-switching.server.enabled

$ mach test devtools/client/shared/test/browser_dbg_WorkerTargetActor.attach.js --enable-fission --setpref devtools.target-switching.server.e nabled=true

0:13.42 INFO Waiting for worker to close.
 0:13.45 GECKO(2300) console.error: (new InvalidStateError("JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment", (void 0), 370))
  1. I also tested workers functionality using my online test case
    http://janodvarko.cz/tests/fission/case15/index.html
  • The test page starts two workers when loaded
  • There are buttons for stopping and starting these workers again
  • The workers are periodically sending a message, which are printed on the page (so, it's visible if they are alive)

The test case shows that:

  • The worker is properly paused when the page is in BFCache [1]
  • The worker is properly resumed when the page is loaded from BFCache
  • The Threads side panel in DevTools is properly updated when starting/stopping a worker
  • The Sources panel doesn't show Worker source files when the page is loaded from BFCache (but this might should be covered by Bug 1717611)

[1] Alex, I can't repro the issue where the worker was running in the cache, probably something wrong on my side when I tested that.

Honza

This test started failing some more with bfcache in parent and even more with server side targets (bug 1698891).
It uses BrowsingContextTargetActor.listWorkers and because of that breaks on target switching.

Assignee: nobody → poirot.alex
Blocks: 1698891
Status: NEW → ASSIGNED
Attachment #9225903 - Attachment description: Bug 1691588 - [devtools] Enable browser_dbg_WorkerTargetActor.attach.js on fission. → Bug 1691588 - [devtools] Rewrite browser_dbg_WorkerTargetActor.attach.js into a TargetCommand test.
Blocks: 1721859
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b29cd4b6f3b [devtools] Rewrite browser_dbg_WorkerTargetActor.attach.js into a TargetCommand test. r=nchevobbe
Regressions: 1721991
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: