Skip to content

Instantly share code, notes, and snippets.

Finding out GN args used by CI/CQ bots

  • Bots use mb tool, which is actually a "thin" python script that stands for "Meta-Build wrapper". Detailed docs here.
  • Chromium builder configurations live at //tools/mb/mb_config.pyl file.

In order to find out, for example, the GN args used to build the official binaries of Lacros Chrome for amd64-generic boards, look for the builder group and builder name and pass them in to mb.py lookup scrip, as follows:

$ tools/mb/mb.py lookup --quiet -m tryserver.chrome -b lacros-amd64-generic-chrome
@nickdiego
nickdiego / webrtc-issue.md
Created November 30, 2021 04:15
Chromium WebRTC issue

VAAPI video decoding

  • GN arg: use_vaapi = true
  • Runtime args:
  --enable-features=UseOzonePlatform,VaapiVideoDecoder
  --ozone-platform={x11,wayland}
  --use-gl=egl
  --ignore-gpu-blocklist
 --vmodule='gpu_video*=1,vaapi*=10,interface_factory_impl=10'
---> datadir: /home/nick/projects/chromium/tmp/chr_tmp
Running cmd: env GDK_BACKEND=wayland out/release/ozone/chrome --enable-logging=stderr --no-sandbox --user-data-dir=/home/nick/projects/chromium/tmp/chr_tmp --ozone-platform=wayland --vmodule=wayland_window_drag_controller=1 file:///home file:///tmp
[1497536:1497536:0702/204313.106009:INFO:content_main_runner_impl.cc(992)] Chrome is running in full browser mode.
[3478583.671] -> wl_display@1.get_registry(new id wl_registry@2)
[3478583.726] -> wl_display@1.sync(new id wl_callback@3)
[3478583.879] wl_display@1.delete_id(3)
[3478583.903] wl_registry@2.global(1, "wl_shm", 1)
[3478583.921] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[3478583.947] wl_registry@2.global(2, "wl_drm", 2)
[3478583.960] -> wl_registry@2.bind(2, "wl_drm", 2, new id [unknown]@5)
[2292931.077] -> wl_display@1.get_registry(new id wl_registry@2)
[2292931.110] -> wl_display@1.sync(new id wl_callback@3)
[2292931.267] wl_display@1.delete_id(3)
[2292931.283] wl_registry@2.global(1, "wl_shm", 1)
[2292931.295] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[2292931.359] -> wl_shm@4.create_pool(new id wl_shm_pool@5, fd 17, 2304)
[2292931.509] -> wl_shm_pool@5.resize(8704)
[2292931.605] -> wl_shm_pool@5.resize(21504)
[2292931.714] -> wl_shm_pool@5.resize(47104)
[2292932.407] -> wl_shm_pool@5.resize(98304)
➜ src git:(wayland-tab-drag) gclient sync -D
Syncing projects: 100% (125/125), done.
Running hooks: 52% (48/91) Fetch Android AFDO profile
________ running 'vpython src/tools/download_cros_provided_profile.py --newest_state=src/chrome/android/profiles/newest.txt --local_state=src/chrome/android/profiles/local.txt --output_name=src/chrome/android/profiles/afdo.prof --gs_url_base=chromeos-prebuilt/afdo-job/llvm' in '/home/nick/projects/chromium'
Traceback (most recent call last):
File "src/tools/download_cros_provided_profile.py", line 157, in <module>
sys.exit(main())
File "src/tools/download_cros_provided_profile.py", line 151, in main
RetrieveProfile(up_to_date_profile, new_tmpfile, args.gs_url_base)
File "src/tools/download_cros_provided_profile.py", line 80, in RetrieveProfile
This file has been truncated, but you can view the full file.
[739621:739621:0411/155608.838881:INFO:content_main_runner_impl.cc(976)] Chrome is running in full browser mode.
[1035256.127] -> wl_display@1.get_registry(new id wl_registry@2)
[1035256.166] -> wl_display@1.sync(new id wl_callback@3)
[1035256.257] wl_display@1.delete_id(3)
[1035256.277] wl_registry@2.global(1, "wl_shm", 1)
[1035256.297] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[1035256.321] wl_registry@2.global(2, "wl_drm", 2)
[1035256.333] -> wl_registry@2.bind(2, "wl_drm", 2, new id [unknown]@5)
[1035256.349] -> wl_display@1.sync(new id wl_callback@6)
[1035256.359] wl_registry@2.global(3, "zwp_linux_dmabuf_v1", 3)
[2325194.036] -> wl_display@1.get_registry(new id wl_registry@2)
[2325194.064] -> wl_display@1.sync(new id wl_callback@3)
[2325194.138] wl_display@1.delete_id(3)
[2325194.154] wl_registry@2.global(1, "wl_shm", 1)
[2325194.172] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[2325194.224] -> wl_shm@4.create_pool(new id wl_shm_pool@5, fd 23, 2304)
[2325194.354] -> wl_shm_pool@5.resize(8704)
[2325194.437] -> wl_shm_pool@5.resize(21504)
[2325194.547] -> wl_shm_pool@5.resize(47104)
[2325195.230] -> wl_shm_pool@5.resize(98304)
[2418488.151] -> wl_display@1.get_registry(new id wl_registry@2)
[2418488.201] -> wl_display@1.sync(new id wl_callback@3)
[2418488.349] wl_display@1.delete_id(3)
[2418488.364] wl_registry@2.global(1, "wl_shm", 1)
[2418488.382] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[2418488.440] -> wl_shm@4.create_pool(new id wl_shm_pool@5, fd 17, 2304)
[2418488.550] -> wl_shm_pool@5.resize(8704)
[2418488.669] -> wl_shm_pool@5.resize(21504)
[2418488.779] -> wl_shm_pool@5.resize(47104)
[2418489.456] -> wl_shm_pool@5.resize(98304)
[1551830.397] -> wl_display@1.get_registry(new id wl_registry@2)
[1551830.429] -> wl_display@1.sync(new id wl_callback@3)
[1551830.601] wl_display@1.delete_id(3)
[1551830.620] wl_registry@2.global(1, "wl_shm", 1)
[1551830.634] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[1551830.679] -> wl_shm@4.create_pool(new id wl_shm_pool@5, fd 17, 2304)
[1551830.817] -> wl_shm_pool@5.resize(6912)
[1551830.878] -> wl_shm_pool@5.resize(16128)
[1551830.973] -> wl_shm_pool@5.resize(34560)
[1551831.942] -> wl_shm_pool@5.resize(71424)
@nickdiego
nickdiego / sway-dnd-issue.log
Created April 9, 2020 18:23
debug output: sway dnd issue when dropping data outside toplevel surfaces
[1919842.367] -> wl_display@1.get_registry(new id wl_registry@2)
[1919842.403] -> wl_display@1.sync(new id wl_callback@3)
[1919842.544] wl_display@1.delete_id(3)
[1919842.559] wl_registry@2.global(1, "wl_shm", 1)
[1919842.573] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[1919842.618] -> wl_shm@4.create_pool(new id wl_shm_pool@5, fd 23, 2304)
[1919842.737] -> wl_shm_pool@5.resize(6912)
[1919842.794] -> wl_shm_pool@5.resize(16128)
[1919842.887] -> wl_shm_pool@5.resize(34560)
[1919843.854] -> wl_shm_pool@5.resize(71424)