Closed Bug 1603451 Opened 6 years ago Closed 6 years ago

browser-chrome test name not logged

Categories

(Remote Protocol :: Agent, defect, P1)

defect

Tracking

(firefox73 fixed)

RESOLVED FIXED
Firefox 73
Tracking Status
firefox73 --- fixed

People

(Reporter: ato, Assigned: ato)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [puppeteer-beta-mvp])

Attachments

(2 files)

Because we override add_task() in bc tests, the test name (function name) of the underlying test is lost:

INFO - Entering test bound 
INFO - TEST-PASS | remote/test/browser/browser_agent.js | remote-listening observer not notified - 
INFO - TEST-PASS | remote/test/browser/browser_agent.js | expected default port 49405, but got 49405 - 
INFO - Leaving test bound 

This is logged in browser-test.js:1060:

            this.SimpleTest.info("Entering test " + task.name);
Keywords: regression
Priority: -- → P3
Regressed by: 1589625
Whiteboard: [puppeteer-alpha-reserve]

Nothing on bug 1589625 actually changed that behavior. It only refactored the code. The custom add_task implementation was already present before. So why do you think it has been caused by bug 1589625? Did you test that? I feel this problem exists since bug 1537768.

Flags: needinfo?(ato)
Flags: needinfo?(ato)
Regressed by: 1537768
No longer regressed by: 1589625

The documentation for the overridden add_task() is quite poor.
Document it as to not confuse new developers why it is behaving
differently to the default bc add_task().

DONTBUILD

Assignee: nobody → ato
Status: NEW → ASSIGNED

The browser-chrome test name is derived from the function name.
The function name of the original task is lost when wrapped inside
the add_task() override in remote/test/browser/head.js.

This fixes the problem by rewriting the taskFn name on the new wrapper.

Priority: P3 → P1
Whiteboard: [puppeteer-alpha-reserve] → [puppeteer-beta-mvp]
Blocks: 1604143
Pushed by atolfsen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7b207b360a5d remote: document add_task() r=remote-protocol-reviewers,maja_zf,whimboo https://hg.mozilla.org/integration/autoland/rev/f61815665e1f remote: preserve test name from original task r=remote-protocol-reviewers,maja_zf,whimboo
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 73
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: