Closed
Bug 1164039
Opened 10 years ago
Closed 9 years ago
Move test_TelemetryTimestamps.js to toolkit/telemetry
Categories
(Toolkit :: Telemetry, defect, P3)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: Dexter, Assigned: robertthyberg, Mentored)
References
Details
(Whiteboard: [measurement:client][lang=js][good next bug])
Attachments
(1 file)
4.14 KB,
patch
|
Dexter
:
review+
|
Details | Diff | Splinter Review |
test_TelemetryTimestamps.js [1] lives in toolkit/modules even though it's testing Telemetry stuff. I think this should probably live in toolkit/telemetry.
On a first look, there doesn't seem to be anything which ties the test to the toolkit/modules folder.
[1] - https://hg.mozilla.org/mozilla-central/annotate/617dbce26726/toolkit/modules/tests/xpcshell/test_TelemetryTimestamps.js
Reporter | ||
Comment 1•10 years ago
|
||
Vladan, what do you think about moving this test to toolkit/telemetry? Can you think of any particular reason why this should stay in toolkit/modules?
Flags: needinfo?(vdjeric)
Comment 2•10 years ago
|
||
We should move both test_TelemetryTimestamps.js & TelemetryTimestamps.jsm, not just the test.
Comment 3•10 years ago
|
||
(In reply to Alessio Placitelli [:Dexter] from comment #1)
> Vladan, what do you think about moving this test to toolkit/telemetry? Can
> you think of any particular reason why this should stay in toolkit/modules?
Seems ok to me, maybe check with Gavin. He wrote the test https://hg.mozilla.org/mozilla-central/rev/383712b389bc
Flags: needinfo?(vdjeric)
Comment 4•10 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #3)
> (In reply to Alessio Placitelli [:Dexter] from comment #1)
> > Vladan, what do you think about moving this test to toolkit/telemetry? Can
> > you think of any particular reason why this should stay in toolkit/modules?
>
> Seems ok to me, maybe check with Gavin. He wrote the test
> https://hg.mozilla.org/mozilla-central/rev/383712b389bc
Gavin, any objections?
We keep overlooking that those files (e.g. when running tests toolkit/components/telemetry/test).
Flags: needinfo?(gavin.sharp)
Updated•9 years ago
|
Comment 6•9 years ago
|
||
ni?dexter for setting this up as a mentored bug.
Flags: needinfo?(alessio.placitelli)
Updated•9 years ago
|
Priority: -- → P3
Whiteboard: [measurement:client]
Reporter | ||
Comment 7•9 years ago
|
||
This bug is about moving TelemetryTimestamps.jsm [0] and its tests [1] from "toolkit/modules/" to "toolkit/components/telemetry". This could be done by:
1 - Moving the TelemetryTimestamps.jsm file from toolkit/modules to toolkit/components/telemetry
2 - Removing its entry from toolkit/modules/moz.build [2] and adding it to toolkit/components/telemetry/moz.build
3 - Moving test_TelemetryTimestamps.js from toolkit/modules/tests/xpcshell/ to toolkit/components/telemetry/tests/unit/
4 - Removing its entry from toolkit/modules/tests/xpcshell/xpcshell.ini [3] and adding it to toolkit/components/telemetry/tests/unit/xpcshell.ini
5 - Deal with test fallout (but there shouldn't be any).
Please note that files should be moved with the Mercurial command "hg mv <source> <dest>" so we don't loose the history for the moved file.
[0] - https://dxr.mozilla.org/mozilla-central/rev/f029ccdee154bdc2b49a1e0fcd5b0fa0397aa97b/toolkit/modules/TelemetryTimestamps.jsm
[1] - https://dxr.mozilla.org/mozilla-central/rev/f029ccdee154bdc2b49a1e0fcd5b0fa0397aa97b/toolkit/modules/tests/xpcshell/test_TelemetryTimestamps.js
[2] - https://dxr.mozilla.org/mozilla-central/rev/f029ccdee154bdc2b49a1e0fcd5b0fa0397aa97b/toolkit/modules/moz.build#76
[3] - https://dxr.mozilla.org/mozilla-central/rev/f029ccdee154bdc2b49a1e0fcd5b0fa0397aa97b/toolkit/modules/tests/xpcshell/xpcshell.ini#56
Mentor: alessio.placitelli
Flags: needinfo?(alessio.placitelli)
Whiteboard: [measurement:client] → [measurement:client][lang=js][good next bug]
Reporter | ||
Comment 8•9 years ago
|
||
In order to confirm that things are working correctly, the following tests should be run:
- ./mach xpcshell-test toolkit/components/telemetry/tests/unit/test_TelemetryTimestamps.js
- ./mach xpcshell-test toolkit/components/telemetry
- ./mach xpcshell-test toolkit/modules/tests/xpcshell/test_TelemetryTimestamps.js (this MUST fail, as the test file should no longer be there)
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8684719 -
Flags: review?(alessio.placitelli)
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → robertthyberg
Status: NEW → ASSIGNED
Reporter | ||
Comment 12•9 years ago
|
||
Comment on attachment 8684719 [details] [diff] [review]
bug-1164039
Review of attachment 8684719 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, this looks good. Did you make sure all tests run locally without any problem as stated in comment 8?
Attachment #8684719 -
Flags: review?(alessio.placitelli) → review+
Reporter | ||
Comment 13•9 years ago
|
||
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8684719 [details] [diff] [review]
bug-1164039
Review of attachment 8684719 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/telemetry/tests/unit/test_TelemetryTimestamps.js
@@ +23,5 @@
> var gGlobalScope = this;
> function loadAddonManager() {
> let ns = {};
> Cu.import("resource://gre/modules/Services.jsm", ns);
> + let head = "../../../../mozapps/extensions/test/xpcshell/head_addons.js";
This was the only line that needed to be changed to make the first 2 tests work. The 3rd test gave an error but it passed with an ok because no test could be found.
Reporter | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 15•9 years ago
|
||
Keywords: checkin-needed
Comment 16•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•