Closed Bug 1515451 Opened 6 years ago Closed 5 years ago

Update agent - Incorporate agent into build

Categories

(Toolkit :: Application Update, task, P1)

Desktop
Windows
task

Tracking

()

RESOLVED FIXED
mozilla76
Install Update Workflow In Review
Tracking Status
firefox76 --- fixed

People

(Reporter: agashlin, Assigned: agashlin)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

The update agent is a standalone binary written in Rust, which needs to be (conditionally) integrated into mozilla-central and the Mozilla build system. This also involves: - vendoring additional crates if needed - adding to install - signing the exe
Priority: -- → P2

This is a work-in-progress skeleton of the update agent binary.
It is able to:

  1. Register itself with the Windows Task Scheduler,
    with the "install-self" or "install-self-local-service" commands.
    The task will have a single action, executing the current binary
    with argument "task-action", followed by any arguments given
    on the command line.
    The task will have a single trigger for testing, which will
    run the task once 2 minutes after the install. It can also be run
    on demand.
    Any pre-existing task with the same name will be removed before
    registering the new task.
  2. Uninstall a task ("uninstall" command)
  3. Run a task on demand ("run-on-demand" command)
  4. be run by the task scheduler (recognized by the "task-action"
    command line argument). Currently this writes its arguments to
    C:\ProgramData\task_test.txt for testing.

Depends on D35506

Assignee: nobody → agashlin
Status: NEW → ASSIGNED
Depends on: 1561749
Depends on: 1561797
No longer depends on: 1561797
Attachment #9073141 - Attachment description: Bug 1515451 Part 2 - Schedule update agent task → Bug 1515451 Part 1 - Schedule update agent task
Attachment #9073140 - Attachment description: Bug 1515451 Part 1 - Build update agent in-tree → Bug 1515451 Part 2 - Build update agent in-tree
Assignee: agashlin → nobody
Status: ASSIGNED → NEW
Attachment #9076325 - Attachment is obsolete: true
Attachment #9073140 - Attachment is obsolete: true
Attachment #9073141 - Attachment is obsolete: true
Priority: P2 → P3
Attachment #9073141 - Attachment is obsolete: false
Attachment #9073140 - Attachment is obsolete: false
Attachment #9076325 - Attachment is obsolete: false
Assignee: nobody → agashlin
Type: defect → task
Priority: P3 → P2
Attachment #9073141 - Attachment description: Bug 1515451 Part 1 - Schedule update agent task → Bug 1515451 Part 1 - Update agent scheduled task
Attachment #9076325 - Attachment description: Bug 1515451 Part 3 - Include update agent in install → Bug 1515451 Part 3 - Include update agent in the install
Attachment #9076325 - Attachment description: Bug 1515451 Part 3 - Include update agent in the install → Bug 1515451 Part 3 - Install, uninstall update agent
Install Update Workflow: --- → In Review
Priority: P2 → P1
Depends on: 1621070
Pushed by agashlin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c6771b60b76 Part 1 - Update agent scheduled task r=mhowell,bytesized,nalexander https://hg.mozilla.org/integration/autoland/rev/779bc1fa07ae Part 2 - Build update agent in-tree r=firefox-build-system-reviewers,mhowell,rstewart https://hg.mozilla.org/integration/autoland/rev/85ea1d36da66 Part 3 - Install, uninstall update agent r=mhowell
Backout by malexandru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/701e5c7f10df Backed out 3 changesets for causing sm failures in components/updateagent/Cargo.toml

The error occurs because the JS build process explicitly filters out members it doesn't include from the workspace. This seems error-prone, as it requires any addition to the workspace to be mirrored here.

I'll add updateagent to the filter for now, and file a bug to avoid issues like this in the future.

Flags: needinfo?(agashlin)
Pushed by agashlin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6bad3e6127dd Part 1 - Update agent scheduled task r=mhowell,bytesized,nalexander https://hg.mozilla.org/integration/autoland/rev/55cf52540f25 Part 2 - Build update agent in-tree r=firefox-build-system-reviewers,mhowell,rstewart https://hg.mozilla.org/integration/autoland/rev/5798fa64366b Part 3 - Install, uninstall update agent r=mhowell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: