Closed
Bug 1428108
Opened 7 years ago
Closed 7 years ago
set browser.newtabpage.activity-stream.debug by default in local builds
Categories
(Firefox :: Messaging System, enhancement, P1)
Firefox
Messaging System
Tracking
()
People
(Reporter: dmosedale, Assigned: andreio)
References
(Blocks 1 open bug)
Details
(Whiteboard: [AS60MVP])
Attachments
(1 file, 1 obsolete file)
One highly likely reason that bug 1428106 was not noticed sooner is because we don't have warnings turned on by default in local builds. We should do that. :-)
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → andrei.br92
Updated•7 years ago
|
Iteration: 1.27 → 60.1 - Jan 29
Updated•7 years ago
|
Iteration: 60.1 - Jan 29 → 60.2 - Feb 12
Updated•7 years ago
|
Severity: normal → enhancement
Updated•7 years ago
|
status-firefox60:
--- → affected
Updated•7 years ago
|
Whiteboard: [AS60MVP]
Updated•7 years ago
|
Iteration: 60.2 - Feb 12 → 60.3 - Feb 26
Updated•7 years ago
|
Priority: P2 → P1
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8941157 -
Attachment is obsolete: true
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8950708 [details]
Bug 1428108 - Set browser.newtabpage.activity-stream.debug by default in local builds.
https://reviewboard.mozilla.org/r/219956/#review225778
Attachment #8950708 -
Flags: review?(edilee) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by edilee@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/301951ce868f
Set browser.newtabpage.activity-stream.debug by default in local builds. r=Mardak
Keywords: checkin-needed
Comment 5•7 years ago
|
||
Backed out changeset 301951ce868f (bug 1428108) for xpcshell failures at browser/components/newtab/tests/xpcshell/test_AboutNewTabService.js on a CLOSED TREE
Failure push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=301951ce868f1df6d05699e03ab753559d7b31d1&filter-classifiedState=unclassified&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=162232855&repo=autoland&lineNumber=2633
Backout: https://hg.mozilla.org/integration/autoland/rev/e0ad971db3e7e73e35a6cab94652b31a1936c403
Flags: needinfo?(andrei.br92)
Assignee | ||
Updated•7 years ago
|
Attachment #8950708 -
Attachment is obsolete: true
Flags: needinfo?(andrei.br92)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8950708 [details]
Bug 1428108 - Set browser.newtabpage.activity-stream.debug by default in local builds.
https://reviewboard.mozilla.org/r/219956/#review226586
::: browser/components/newtab/tests/xpcshell/test_AboutNewTabService.js:88
(Diff revision 4)
>
> add_task(async function test_override_activity_stream_enabled() {
> let notificationPromise = await setupASPrerendered();
>
> + if (!IS_RELEASE_OR_BETA && !MOZILLA_OFFICIAL) { // Check if local build
> + Assert.equal(aboutNewTabService.defaultURL, ACTIVITY_STREAM_PRERENDER_DEBUG_URL, "Newtab URL should be the debug activity stream prerendered URL");
Instead of doing this check everywhere, I think it would be better that pretty much all tests run assuming debug is false. One exception is for a new test to check if the false value is the default for MOZILLA_OFFICIAL or not.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 12•7 years ago
|
||
Try run for the updated patch https://treeherder.mozilla.org/#/jobs?repo=try&revision=432ca512096d721af638cc62ecc20db390a3a087&selectedJob=163104969
Comment 13•7 years ago
|
||
mozreview-review |
Comment on attachment 8950708 [details]
Bug 1428108 - Set browser.newtabpage.activity-stream.debug by default in local builds.
https://reviewboard.mozilla.org/r/219956/#review228148
We have less coverage with this change. My suggestion was to make most tests run with pref debug = false even for non-OFFICIAL builds. That way the existing assertions can be left untouched. For the newly added test, it can check if the default value of the debug pref is true for non-OFFICIAL.
::: browser/components/newtab/tests/xpcshell/test_AboutNewTabService.js
(Diff revision 5)
> });
>
> add_task(async function test_override_activity_stream_enabled() {
> let notificationPromise = await setupASPrerendered();
>
> - Assert.equal(aboutNewTabService.defaultURL, ACTIVITY_STREAM_PRERENDER_URL, "Newtab URL should be the default activity stream prerendered URL");
Now there are no tests checking that `.defaultURL` is `ACTIVITY_STREAM_PRERENDER_URL`.
Attachment #8950708 -
Flags: review+ → review-
Comment hidden (mozreview-request) |
Assignee | ||
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
mozreview-review |
Comment on attachment 8950708 [details]
Bug 1428108 - Set browser.newtabpage.activity-stream.debug by default in local builds.
https://reviewboard.mozilla.org/r/219956/#review228354
You should also update/comment the !issues in mozreview
::: browser/components/newtab/tests/xpcshell/test_AboutNewTabService.js:79
(Diff revision 6)
> });
>
> add_task(async function test_override_activity_stream_enabled() {
> let notificationPromise = await setupASPrerendered();
> + // Don't run in debug mode regardless of build type
> + Services.prefs.setBoolPref(ACTIVITY_STREAM_DEBUG_PREF, false);
All of these come immediately after a `setupASPrerendered()`, and setting `DEBUG_PREF` to `false` seems reasonable to do there as it does control which prerendered endpoint to use.
::: browser/components/newtab/tests/xpcshell/test_AboutNewTabService.js:142
(Diff revision 6)
> Assert.equal(aboutNewTabService.activityStreamLocale, "en-US",
> "The locale for testing should be en-US");
> });
>
> +add_task(async function test_debug_mode() {
> + await setupASPrerendered();
Does this need to be called for testing debug mode?
Comment hidden (mozreview-request) |
Comment 18•7 years ago
|
||
mozreview-review |
Comment on attachment 8950708 [details]
Bug 1428108 - Set browser.newtabpage.activity-stream.debug by default in local builds.
https://reviewboard.mozilla.org/r/219956/#review228412
Attachment #8950708 -
Flags: review?(edilee) → review+
Comment 19•7 years ago
|
||
Pushed by edilee@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/e7d8e299023a
Set browser.newtabpage.activity-stream.debug by default in local builds. r=Mardak
Comment 20•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Updated•7 years ago
|
Blocks: as-build-meta
Updated•6 years ago
|
Component: Activity Streams: Newtab → Messaging System
You need to log in
before you can comment on or make changes to this bug.
Description
•