This manual provides information on how to develop the Chromium Updater, including tips and tricks.
NOTE: Knowledge in this section may become out-of-date as LUCI evolves quickly.
testing/buildbot/waterfalls.pylinfra/config/subprojects/chromium/ci/chromium.updater.starchromium.updater.json:vpython3 .\testing\buildbot\generate_buildbot_json.py
lucicfg fmt .\infra\config\subprojects\chromium\ci\chromium.updater.star
lucicfg infra\config\main.star git add .
Each builder has a configuration that governs the GN args. The mapping is defined in file tools/mb/mb_config.pyl. Steps to update the config:
tools/mb/mb_config.pyl../mb train to update the expectations.mb tool can upload your private build target (and all the dependencies, based on build rule) to swarming server and run the target on bots. The upload may take quite some time if the target changed a lot since the last upload and/or your network is slow.
.\tools\mb\mb.bat run -v --swarmed .\out\Default updater_tests -- --gtest_filter=*Integration*
-d. Remember --no-default-dimensions is necessary to avoid dimension value conflict. Example:.\tools\mb\mb.bat run --swarmed --no-default-dimensions -d pool chromium.win.uac -d os Windows-10 .\out\Default updater_tests_system -- --gtest_filter=*Install*
mb tool know so it can correctly figure out the dependency. Example: https://crrev.com/c/3470143.TODO(crbug.com/1327486): Document how to remote into bots for debugging.
An older version of the updater is checked in under //third_party/updater. This version of the updater is used in some integration tests. The updater is pulled from CIPD based on the versions specified in //DEPS. A system called 3pp periodically updates the packages in CIPD, based on a combination of the Chromium build output and what is actually released through Omaha servers. The configuration for 3pp can be found in //third_party/updater/*/3pp.
To update these copies of the updaters:
fetch.py scripts for 3pp. For Chrome builds, make sure the build has been released in Omaha then update the fetch script with the desired version number. For Chromium, make sure the build exists in GCS (the chromium-browser-snapshots bucket), then update the min version in the script. The min version usually is different per-platform, since Chromium does not archive a version at every CL. After making these changes, 3pp will import the new versions within a few hours.Running ninja with t clean cleans the build out directory. For example:
ninja -C out\Default chrome/updater:all -t clean
UpdaterSetup.exe --install [--system]TIP: Debugger may have trouble to find the symbols at the service side even if you add your build output directory to the symbol paths. To workaournd the issue, you can copy
updater.exe*to the versioned installation directory.
update_service_proxy.*.--server (user-level server) or --system --windows-service (system-level server). Start another debugger and attach the server process. Then set a server-side breakpoint at the place you want to debug.6 different build flavors need to be built in sequence. If you see errors similar to the following:
midl.exe output different from files in gen/chrome/updater/app/server/win, see C:\src\temp\tmppbfwi0ds To rebaseline: copy /y C:\src\temp\tmppbfwi0ds\* c:\src\chromium\src\third_party\win_build_output\midl\chrome\updater\app\server\win\x64 ninja: build stopped: subcommand failed.
You can then run the following command to update IDL COM files for all flavors:
python3 chrome/updater/tools/update_idl.py