119
edits
(Adding links for third_party relocation notes) |
(Add note at top to redirect users to the fast-forward checklist steps, and remove the checklist and resetting elm sections) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<big><span style="color: red">Note: If you are trying to do a fast-forward update please go</span> [[Media/WebRTC/libwebrtc_Update_Process|here]]. | |||
</big><br /> | |||
<big><span style="color: red">Note: If you are trying to do a fast-forward update please go</span> [[Media/WebRTC/libwebrtc_Update_Process|here]]. | |||
</big><br /> | |||
<big><span style="color: red">Note: If you are trying to do a fast-forward update please go</span> [[Media/WebRTC/libwebrtc_Update_Process|here]]. | |||
</big> | |||
This describes the rough plan to document and automate the process to "fast-forward" through webrtc.org libwebrtc change-sets to bring Firefox's libwebrtc version as close as possible to Chrome. This page will be updated as new information is discovered. | This describes the rough plan to document and automate the process to "fast-forward" through webrtc.org libwebrtc change-sets to bring Firefox's libwebrtc version as close as possible to Chrome. This page will be updated as new information is discovered. | ||
Line 225: | Line 233: | ||
* Do we want to add our fixup-patch to the moz-libwebrtc branch and move the branch forward in the official repo to make it more clear what was previously vendored? | * Do we want to add our fixup-patch to the moz-libwebrtc branch and move the branch forward in the official repo to make it more clear what was previously vendored? | ||
== | == Moving third_party/libwebrtc/third_party/* to third_party/* == | ||
=== Motivation === | |||
(lib)webrtc and Firefox share a number of dependencies. Both projects expect that their dependencies will live under a `third_party` in their respective project roots. As a dependency of libwebrtc, this presents an organizational problem. Additionally there are libraries that are expected to exist in the deployment environments. This can pose a problem where Firefox supports systems with older versions of those libraries than libwebrtc does. Resolving this cluster of issues would directly impact a number of our WebRTC team Q4 goals. | |||
* Reduce the number of libwebrtc patches, with an emphasis on build patches | |||
* Reduce the merge process complexity | |||
* Reduce our response time to security issues | |||
* Uplifting patches | |||
Additionally, resolving these issues would assist with broader product goals. | |||
* Improve performance | |||
* Reduce build time | |||
==== Patch Reduction ==== | |||
We carry a number of libwebrtc build system patches. These patches create numerous merge conflicts each merge cycle. Problematically, Google is unable to perform CI builds with our [https://searchfox.org/mozilla-central/rev/7b5c93295ea5071d3cc5b3ac21c6e8e654f69e1b/third_party/libwebrtc/BUILD.gn#148 build_with_mozilla flag]. They have expressed interest in removing this flag. In order to remove this flag entirely we need to eliminate our build patches. We could then express our build as a series of feature flags within their build system. Perhaps they would be willing to run that flag set in their CI. | |||
==== Merge Complexity ==== | |||
Updating the dependencies is tied directly to the merge process. Decoupling can be achieved by moving the dependencies into `third_party` and placing them under control of `updatebot`. This would create a smaller merge with less risk. | |||
=== Approach === | |||
We will need to employ several strategies in order to create a robust build environment. | |||
# We will vendor the libraries that libwebrtc requires, but are not provided on our older supported platforms. These dependencies can be kept up to date with `updatebot`. | |||
# We will move vendored shared dependencies from `libwebrtc/third_party` into `third_party`. | |||
As simple as this plan sounds it is complicated by mixed build systems and the current method of importing dependencies into libwebrtc. Eliminating duplicate dependencies also has the risk of running into incompatible version expectations by dependency consumers. | |||
=== Notes === | === Notes === | ||
# (lib)webrtc dependency pinning | # (lib)webrtc dependency pinning |
edits