Closed Bug 1775522 Opened 2 years ago Closed 2 years ago

Add timestamps to updater logs

Categories

(Toolkit :: Application Update, task, P3)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: bytesized, Assigned: mpohle)

References

Details

(Whiteboard: [fidedi-ope])

Attachments

(2 files)

It would be helpful if the updater logs contained timestamps. It seems like a pretty low effort thing to add that would occasionally make it easier to find problems.

For example, I've had times where it wasn't clear if updates were being attempted at all, so it would be nice to know if the logs were recent. I've also had to investigate slow updates, and timestamps would help narrow down what is causing the updates to take so long.

Priority: -- → P3
Assignee: nobody → mpohle
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/38bea6dcef39
Add timestamps to updater logs, r=bytesized,application-update-reviewers

Backed out changeset 38bea6dcef39 (bug 1775522) for causing xpc failures in toolkit/mozapps/update/tests/unit_base_updater/marSuccessComplete.js

Backout link: https://hg.mozilla.org/integration/autoland/rev/36d927c5e6bf8061356dc3698b64fe4a90cfedcf

Push with failures

Failure log

Flags: needinfo?(mpohle)

I was able to reproduce the problem locally and identify its cause. The test worked well as it has identified a change in the log file format. I have now adapted the test to support timestamps in log files and I am currently conducting further tests on top of that change. Thanks for your intervention.

Flags: needinfo?(mpohle)
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/715213e00a5b
Add timestamps to updater logs with test adaption, r=bytesized,application-update-reviewers

Backed out changeset 715213e00a5b (Bug 1775522) for causing xpcshell failures on marStageSuccessCompleteSvc.js.
Backout link
Push with failures <--> X1
Failure Log

Flags: needinfo?(mpohle)
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0814312de5e4
Add timestamps to updater logs with test adaption, r=bytesized,application-update-reviewers

Backed out changeset 0814312de5e4 (Bug 1775522) for causing xpcshell failures on marSuccessCompleteSvc.js.
Backout link
Push with failures <--> X1
Failure Log

Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/da41bde3e3b0
Add timestamps to updater logs with test adaption, r=bytesized,application-update-reviewers

Backed out for causing xpc failures in toolkit/mozapps/update/tests/unit_service_updater/marStageSuccessCompleteSvc.js

Backout link: https://hg.mozilla.org/integration/autoland/rev/12300304d39453250dfdaa8e249056659a20adbc

Push with failures

Failure log

TEST-UNEXPECTED-FAIL | toolkit/mozapps/update/tests/unit_service_updater/marStageSuccessCompleteSvc.js | checkUpdateLogContents - [checkUpdateLogContents : 3554] the update log contents should equal the expected value - "Begin moving destDir (C:/Program Files (x86)/Mozilla Maintenance Service/marStageSuccessCompleteSvc/dir.app) to tmpDir (C:/Program Files (x86)/Mozilla Maintenance Service/marStageSuccessCompleteSvc/dir.app.bak)" ==  "rename_file: proceeding to rename the directory"
Attachment #9292853 - Attachment description: Bug 1775522 - Add timestamps to updater logs with test adaption, r=bytesized → WIP: Bug 1775522 - Add timestamps to updater logs, r=bytesized,application-update-reviewers
Attachment #9292853 - Attachment description: WIP: Bug 1775522 - Add timestamps to updater logs, r=bytesized,application-update-reviewers → Bug 1775522 - Add timestamps to updater logs, r=bytesized
Attachment #9292853 - Attachment description: Bug 1775522 - Add timestamps to updater logs, r=bytesized → WIP: : Bug 1775522 - Add timestamps to updater logs, r=bytesized
Attachment #9292853 - Attachment description: WIP: : Bug 1775522 - Add timestamps to updater logs, r=bytesized → WIP: Bug 1775522 - Add timestamps to updater logs, :r=bytesized
Attachment #9292853 - Attachment description: WIP: Bug 1775522 - Add timestamps to updater logs, :r=bytesized → Bug 1775522 - Add timestamps to updater logs, r=bytesized
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/519304e18e63
Add timestamps to updater logs, r=bytesized,application-update-reviewers
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Flags: needinfo?(mpohle)
Depends on: 1819906
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: