Created attachment 8687859 [details] logcat_appusage.txt ###Description### App Usage metrics won't send to server on foxfooding devices ###Steps### 1) Set DOGFOOD=1 in Makefile on a test device to simulate a foxfooding device 2) Follow the wiki to modify files and reset gaia https://wiki.mozilla.org/B2G/QA/Ping_Testing#App_Usage_Ping 3) After reset gaia, open some apps or install apps/add-ons from marketplace 4) The device won't send AppUsage metrics ###Expected result### The device should send AppUsage metrics every minute ###Observed result### The device won't send AppUsage metrics ### Environmental Variables### Build ID 20151110094357 Gaia Revision 9dc33b054d31bbe692777a6a340c6da85e512978 Gaia Date 2015-11-16 09:35:36 Gecko Revision http://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/e14287b00a514a15418dfaa89287030c588ad19d Gecko Version 44.0a2 Device Name aries Firmware(Release) 4.4.2 Firmware(Incremental) eng.worker.20151110.090331 Firmware Date Tue Nov 10 09:03:39 UTC 2015 Bootloader s1
QA Whiteboard: [COM=Telemetry]
Hi Norry, Could you help to assign someone to find the regression window? Thanks.
Hi Iris, I was just trying to repro this. I believe the issue may be that when you set DOGFOOD=1, the build settings will override the AUM.REPORT_INTERVAL setting. For dogfooders, we set the build setting to one day. You must have set the AUM.REPORT_INTERVAL = 60 * 1000; and then done the |DOGFOOD=1 make reset-gaia|. I did the same thing initially. What you need to do if you want to override that setting for dogfood is to change the following line 330 in AppUsageMetrics.js (or thereabout, depending on your build) change this line: |AUM.REPORT_INTERVAL = result['metrics.appusage.reportInterval'];| to this |AUM.REPORT_INTERVAL = 60 * 1000;| This should give you a one minute report interval when it's set to dogfooding. If you can confirm, that will be great. If this turns out to be the case, perhaps we can add it to your wiki. Thanks, -tamara
Hi Tamara, You are right. I changed the line 330 to |AUM.REPORT_INTERVAL = 60 * 1000;| in app_usage_metrics.js, and the app usage metrics can send to server now. I'll mark this bug as Worksforme. Thank you.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.