how-to-update-glean-parser.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. In order to be able to do offline builds for mobile we need to collect and
  2. distribute Glean dependencies beforehand.[1]
  3. There are three steps involved in the process:
  4. 1) Finding out the `glean_parser` version
  5. 2) Downloading and verifying the dependencies, and creating the tarball
  6. 3) Pushing it to the sources mirror
  7. 1)
  8. Running `make list_toolchain_updates-android-components` should tell
  9. you which version of `glean_parser` is needed.
  10. 2)
  11. Update `steps/create_glean_deps_tarball/version` in `projects/glean/config`
  12. to the version from step 1 above.
  13. Run this command to generate the tarball:
  14. make create_glean_deps_tarball
  15. There is no really good way (yet) to verify that `pip` gave us actually what we
  16. wanted. We can download `glean_parser` and its dependencies using a different
  17. network path, though, e.g. by using `torsocks`. Comparing the results of both
  18. downloads should yield the exact same binaries.
  19. If you want to use torsocks, you can use this command:
  20. make create_glean_deps_tarball-with_torsocks
  21. 3)
  22. Upload the compressed tarball to the sources mirror and update the SHA-256 sum of
  23. it as well as the `glean_parser` version in the respective projects.
  24. [1] See: https://bugzilla.mozilla.org/show_bug.cgi?id=1651662 for details.
  25. [2] https://github.com/mozilla/glean