Skip to content

Make firefox add-on build reproducible by fetching specific commit of code-intel-extensions

Administrator requested to merge mz/firefox-reproducible-build into main

Created by: marekweb

This is a set of improvements to the build process for the FF add-on with bundled extensions, that makes the whole process much easier.

We now fetch and build the code-intel-extensions repository as a zip at a specific commit.

A configuration file now specifies the revision of code-intel-extensions. We pin a specific revision so that the build is reproducible. This could be done with a git submodule as an alternative, but this method makes for a simpler build step.

{
  // the revision of `sourcegraph/code-intel-extensions` to build from
  "revision": "282caa906a8f5d64f67711809a2c8492908f9fe4",
  // the list of extensions to bundle
  "extensions": ["template"]
}

In order to be able to zip the source code as a bundle that includes sourcegraph/sourcegraph along with code-intel-extensions (see #12918) the build step needs to be split into two steps: fetch and build.

Roadmap

  • implement yarn run fetch-code-intel-extensions
    • Fetch code-intel-extensions source code for the given revision
  • implement yarn run build-inline-extensions
    • Check that code-intel-extensions has been fetched
    • Build from the fetched source code

Blocking issues

Blocking issues have been resolved. No longer blocked on anything.

Merge request reports

Loading