Open Bug 1943110 Opened 27 days ago Updated 12 days ago

Installation dir consistency: Check the file integrety of all files in the installation directory

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

ASSIGNED

People

(Reporter: mpohle, Assigned: mpohle)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidedi] )

Attachments

(2 files)

To check the consistency of the files in the installation directory, we need to:

  1. Determine a list of files that are expected to always be in the installation directory and are necessary to start Firefox.
  2. Determine at what point in the build process these files are their final version and will not be modified.
  3. Find a way to integrate the creation of hashes for these files into the build process.
  4. Add this file to the .mar files so that they are shipped with the next update.
Whiteboard: [fidedi]
Type: enhancement → task
Summary: Detecting inconsistency - Check the file integrety of all files in the installation directory → Installation dir consistency: Check the file integrety of all files in the installation directory
Attachment #9463594 - Attachment description: WIP: Bug 1943110 - [Prototype] Add a file with checksums to the full .mar file → WIP: Bug 1943110 - [Prototype] Add a file with checksums to the full .mar file, r=cdupuis

This solution is more elegant than what
https://phabricator.services.mozilla.com/D236607 would have let to. I
think that it is also going to work with partial updates and the
upcoming change to use the zucchini compression. It deviates from the
spec in that it does not produce a .json file, but I considered it the
cleanest solution, because it reuses so much code that we already have.
It is going to put a checksums file in all builds (not only updates, but
also the installer) and the file will not just contain an md5 checksum,
but three different types of checksums for each file. The file format is
plain text and can simply be parsed as tuples between at space and
newline.

Assignee: nobody → mpohle
Status: NEW → ASSIGNED
Attachment #9463837 - Attachment description: Bug 1943110 - Add a file with checksums to the full .mar file, r=cdupuis → Bug 1943110 - Add a file with checksums to the full .mar file, r=#releng-reviewers,bhearsum,cdupuis
Attachment #9463837 - Attachment description: Bug 1943110 - Add a file with checksums to the full .mar file, r=#releng-reviewers,bhearsum,cdupuis → Bug 1943110 - Add a file with checksums to the full .mar file, r=releng-reviewers,bhearsum,cdupuis
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: