Skip to content

Reuse one httpx client in phabricator-client and close it in every caller - #7823

Open
WadekarPrashant wants to merge 3 commits into
mozilla:masterfrom
WadekarPrashant:phabricator-stateful-client
Open

WadekarPrashant wants to merge 3 commits into
mozilla:masterfrom
WadekarPrashant:phabricator-stateful-client

Own the Phabricator clients' lifetime in hackbot-api

f98356e
Select commit
Loading
Failed to load commit list.
Community-TC Integration / bugbug bug-fix agent image build succeeded Dec 4, 2026 in 6m 13s

Community-TC (pull_request)

bugbug bug-fix agent image build

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2026-12-04T20:00:38.075Z
Resolved: 2026-12-04T20:06:50.989Z
Task Execution Time: 6 minutes, 12 seconds, 914 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: X7lm-TIjRfG6H931bMd9Dw
RunId: 0

Artifacts

- public/bug-fix-agent/bugbug-hackbot-agent-bug-fix.tar.zst (897 MB)
- public/logs/live_backing.log (139 KB)
- public/logs/live.log


[taskcluster 2026-12-04T20:00:38.164Z] Worker Type (proj-bugbug/ci) settings:
[taskcluster 2026-12-04T20:00:38.164Z]   {
[taskcluster 2026-12-04T20:00:38.164Z]     "generic-worker": {
[taskcluster 2026-12-04T20:00:38.164Z]       "config": {
[taskcluster 2026-12-04T20:00:38.164Z]         "capacity": 1,
[taskcluster 2026-12-04T20:00:38.164Z]         "headlessTasks": false
[taskcluster 2026-12-04T20:00:38.164Z]       },
[taskcluster 2026-12-04T20:00:38.164Z]       "engine": "multiuser",
[taskcluster 2026-12-04T20:00:38.164Z]       "go-arch": "amd64",
[taskcluster 2026-12-04T20:00:38.164Z]       "go-os": "linux",
[taskcluster 2026-12-04T20:00:38.164Z]       "go-version": "go1.27.4",
[taskcluster 2026-12-04T20:00:38.164Z]       "release": "https://github.com/taskcluster/taskcluster/releases/tag/v117.1.0",
[taskcluster 2026-12-04T20:00:38.164Z]       "revision": "0c7c8924f32ea41a92bdf8e788842b6ae878c9a9",
[taskcluster 2026-12-04T20:00:38.164Z]       "source": "https://github.com/taskcluster/taskcluster/commits/0c7c8924f32ea41a92bdf8e788842b6ae878c9a9",
[taskcluster 2026-12-04T20:00:38.164Z]       "version": "117.1.0"
[taskcluster 2026-12-04T20:00:38.164Z]     },
[taskcluster 2026-12-04T20:00:38.164Z]     "image": "projects/taskcluster-imaging/global/images/generic-worker-ubuntu-24-04-6b7773308dd74c7d9c2e",
[taskcluster 2026-12-04T20:00:38.164Z]     "instance-id": "6692850168925955546",
[taskcluster 2026-12-04T20:00:38.164Z]     "instance-type": "projects/757942385826/machineTypes/c3d-standard-4",
[taskcluster 2026-12-04T20:00:38.164Z]     "local-ipv4": "10.128.0.76",

...(1952 lines hidden)...

Setting up libxkbcommon0:amd64 (1.7.0-2) ...

Setting up libwayland-client0:amd64 (1.23.1-3) ...

Setting up libavc1394-0:amd64 (0.5.4-5+b2) ...

Setting up liblouis20:amd64 (3.33.0-1) ...

Setting up libroc0.4:amd64 (0.4.0+dfsg-5) ...

Setting up libllvm19:amd64 (1:19.1.7-3+b1) ...

Setting up libdebuginfod1t64:amd64 (0.192-4) ...

Setting up gir1.2-gstreamer-1.0:amd64 (1.26.2-2) ...

Setting up python3-dbus (1.4.0-1) ...

Setting up liblapack3:amd64 (3.12.1-6) ...

update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode

Setting up libproxy1v5:amd64 (0.5.9-1) ...

Setting up libatk1.0-0t64:amd64 (2.56.2-1+deb13u2) ...

Setting up libzmq5:amd64 (4.3.5-1+b3) ...

Setting up libcaca0:amd64 (0.99.beta20-5+deb13u1) ...

Setting up libzvbi0t64:amd64 (0.2.44-1) ...

Setting up python3-speechd (0.12.0-5) ...

Setting up gir1.2-atk-1.0:amd64 (2.56.2-1+deb13u2) ...

Setting up libjq1:amd64 (1.7.1-6+deb13u4) ...

Setting up x11-xkb-utils (7.7+9) ...

Setting up libxcursor1:amd64 (1:1.2.3-1) ...

Setting up libavahi-common3:amd64 (0.8-16) ...

Setting up libsource-highlight4t64:amd64 (3.1.9-4.3+b1) ...

Setting up libnss3:amd64 (2:3.110-1+deb13u5) ...

Setting up libopenal1:amd64 (1:1.24.2-1) ...

Setting up dbus-daemon (1.16.2-2) ...

Setting up xfonts-utils (1:7.7+7) ...

Setting up x11-xserver-utils (7.7+11) ...

Setting up librist4:amd64 (0.2.11+dfsg-1) ...

Setting up libglibmm-2.4-1t64:amd64 (2.66.8-1) ...

Setting up libxdo3:amd64 (1:3.20160805.1-5.1) ...

Setting up libvorbisfile3:amd64 (1.3.7-3) ...

Setting up python3-zstandard (0.23.0-4) ...

Setting up gdb (16.3-1) ...

Setting up libxml++2.6-2v5:amd64 (2.42.3-2) ...

Setting up libass9:amd64 (1:0.17.3-1+deb13u1) ...

Setting up python3-louis (3.33.0-1) ...

Setting up gir1.2-girepository-2.0:amd64 (1.84.0-1) ...

Setting up libdbus-glib-1-2:amd64 (0.114-1) ...

Setting up libatspi2.0-0t64:amd64 (2.56.2-1+deb13u2) ...

Setting up python3-gi (3.50.0-4+b1) ...

Setting up libplacebo349:amd64 (7.349.0-3) ...

Setting up libdc1394-25:amd64 (2.2.6-5) ...

Setting up libshout3:amd64 (2.4.6-1+b3) ...

Setting up python3-brlapi:amd64 (6.7-3.1+deb13u5) ...

Setting up librubberband2:amd64 (3.3.0+dfsg-2+b3) ...

Setting up libjack-jackd2-0:amd64 (1.9.22~dfsg-4) ...

Setting up libdrm2:amd64 (2.4.124-2) ...

Setting up libva-drm2:amd64 (2.22.0-3) ...

Setting up dbus-x11 (1.16.2-2) ...

Setting up libsord-0-0:amd64 (0.16.18-1) ...

Setting up libwayland-cursor0:amd64 (1.23.1-3) ...

Setting up libsratom-0-0:amd64 (0.6.18-1) ...

Setting up jq (1.7.1-6+deb13u4) ...

Setting up libdecor-0-0:amd64 (0.2.2-2) ...

Setting up libsndfile1:amd64 (1.2.2-2+deb13u1) ...

Setting up xserver-common (2:21.1.16-1.3+deb13u4) ...

Setting up libva-x11-2:amd64 (2.22.0-3) ...

Setting up liblilv-0-0:amd64 (0.24.26-1) ...

Setting up libopenmpt0t64:amd64 (0.7.13-1+b1) ...

Setting up libavahi-client3:amd64 (0.8-16) ...

Setting up libdrm-amdgpu1:amd64 (2.4.124-2) ...

Setting up libatk-bridge2.0-0t64:amd64 (2.56.2-1+deb13u2) ...

Setting up glib-networking-services (2.80.1-1) ...

Setting up libffado2:amd64 (2.4.9-2) ...

No diversion 'diversion of /lib/udev/rules.d/60-ffado.rules to /lib/udev/rules.d/60-ffado.rules.usr-is-merged by usr-is-merged', none removed.

Setting up xdotool (1:3.20160805.1-5.1) ...

Setting up mercurial-common (7.0.1-2+deb13u2) ...

Setting up libpulse0:amd64 (17.0+dfsg1-2+b1) ...

Setting up libdrm-intel1:amd64 (2.4.124-2) ...

Setting up libpulsedsp:amd64 (17.0+dfsg1-2+b1) ...

Setting up libgstreamer-plugins-base1.0-0:amd64 (1.26.2-1+deb13u2) ...

Setting up dconf-service (0.40.0-5) ...

Setting up gir1.2-atspi-2.0:amd64 (2.56.2-1+deb13u2) ...

Setting up fonts-urw-base35 (20200910-8) ...

Setting up libavutil59:amd64 (7:7.1.5-0+deb13u1) ...

Setting up libpostproc58:amd64 (7:7.1.5-0+deb13u1) ...

Setting up libsphinxbase3t64:amd64 (0.8+5prealpha+1-21+b1) ...

Setting up libswresample5:amd64 (7:7.1.5-0+deb13u1) ...

Setting up libswscale8:amd64 (7:7.1.5-0+deb13u1) ...

Setting up gstreamer1.0-plugins-base:amd64 (1.26.2-1+deb13u2) ...

Setting up libspa-0.2-modules:amd64 (1.4.2-1) ...

Setting up pulseaudio-utils (17.0+dfsg1-2+b1) ...

Setting up libavcodec61:amd64 (7:7.1.5-0+deb13u1) ...

Setting up libpipewire-0.3-0t64:amd64 (1.4.2-1) ...

Setting up libcups2t64:amd64 (2.4.10-3+deb13u2) ...

Setting up speech-dispatcher-audio-plugins:amd64 (0.12.0-5) ...

Setting up libgs10-common (10.05.1~dfsg-1+deb13u3) ...

Setting up mesa-libgallium:amd64 (25.0.7-2+deb13u1) ...

Setting up mercurial (7.0.1-2+deb13u2) ...

debconf: unable to initialize frontend: Dialog

debconf: (TERM is not set, so the dialog frontend is not usable.)

debconf: falling back to frontend: Readline

debconf: unable to initialize frontend: Readline

debconf: (This frontend requires a controlling tty.)

debconf: falling back to frontend: Teletype

debconf: unable to initialize frontend: Teletype

debconf: (This frontend requires a controlling tty.)

debconf: falling back to frontend: Noninteractive

Setting up dconf-gsettings-backend:amd64 (0.40.0-5) ...

Setting up libgbm1:amd64 (25.0.7-2+deb13u1) ...

Setting up libwireplumber-0.5-0:amd64 (0.5.8-2) ...

Setting up libgl1-mesa-dri:amd64 (25.0.7-2+deb13u1) ...

Setting up libavformat61:amd64 (7:7.1.5-0+deb13u1) ...

Setting up speech-dispatcher (0.12.0-5) ...

Setting up libpipewire-0.3-modules:amd64 (1.4.2-1) ...

Setting up libpocketsphinx3:amd64 (0.8+5prealpha+1-15+b4) ...

Setting up libegl-mesa0:amd64 (25.0.7-2+deb13u1) ...

Setting up libavfilter10:amd64 (7:7.1.5-0+deb13u1) ...

Setting up libegl1:amd64 (1.7.0-1+b2) ...

Setting up libsdl2-2.0-0:amd64 (2.32.4+dfsg-1) ...

Setting up libgtk-3-common (3.24.49-3) ...

Setting up libgs10:amd64 (10.05.1~dfsg-1+deb13u3) ...

Setting up gsettings-desktop-schemas (48.0-1) ...

Setting up libglx-mesa0:amd64 (25.0.7-2+deb13u1) ...

Setting up libglx0:amd64 (1.7.0-1+b2) ...

Setting up libspectre1:amd64 (0.2.12-1+b2) ...

Setting up pipewire-bin (1.4.2-1) ...

Setting up libgl1:amd64 (1.7.0-1+b2) ...

Setting up pipewire:amd64 (1.4.2-1) ...

Setting up libimlib2t64:amd64 (1.12.4-2) ...

Setting up xvfb (2:21.1.16-1.3+deb13u4) ...

Setting up libavdevice61:amd64 (7:7.1.5-0+deb13u1) ...

Setting up wireplumber (0.5.8-2) ...

Setting up ffmpeg (7:7.1.5-0+deb13u1) ...

Setting up pipewire-pulse (1.4.2-1) ...

Processing triggers for libc-bin (2.41-12+deb13u5) ...

Processing triggers for libglib2.0-0t64:amd64 (2.84.4-3~deb13u5) ...

Setting up libgtk-3-0t64:amd64 (3.24.49-3) ...

Setting up at-spi2-core (2.56.2-1+deb13u2) ...

Setting up libwnck-3-0:amd64 (43.2-1) ...

Setting up glib-networking:amd64 (2.80.1-1) ...

Processing triggers for fontconfig (2.15.0-2.3) ...

Processing triggers for hicolor-icon-theme (0.18-2) ...

Setting up libsoup-3.0-0:amd64 (3.6.5-3) ...

Setting up gir1.2-gtk-3.0:amd64 (3.24.49-3) ...

Setting up gir1.2-wnck-3.0:amd64 (43.2-1) ...

Setting up gstreamer1.0-plugins-good:amd64 (1.26.2-1+deb13u2) ...

Setting up orca (48.1-1+deb13u2) ...

Processing triggers for menu (2.1.51) ...

Setting up fluxbox (1.3.7-1+b1) ...

update-alternatives: using /usr/bin/startfluxbox to provide /usr/bin/x-window-manager (x-window-manager) in auto mode

Processing triggers for libc-bin (2.41-12+deb13u5) ...

Processing triggers for menu (2.1.51) ...

--> 27af26f63f0d
[3/3] STEP 3/20: RUN install -d -o root -g root -m 755 /etc/pipewire     && sed -e '/^context.spa-libs = {/,/^}$/ s/#\(audiotestsrc\)/\1/'         /usr/share/pipewire/pipewire.conf > /etc/pipewire/pipewire.conf
--> ac4821854824
[3/3] STEP 4/20: COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
--> 33e342944012
[3/3] STEP 5/20: COPY agents/bug-fix/hackbot.toml /app/hackbot.toml
--> 7cacd29cc207
[3/3] STEP 6/20: COPY agents/bug-fix/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
--> 154fc56ca53c
[3/3] STEP 7/20: RUN chmod +x /usr/local/bin/docker-entrypoint.sh
--> 741dbc301d85
[3/3] STEP 8/20: RUN useradd --create-home --shell /bin/bash agent     && mkdir -p /workspace     && chown agent:agent /workspace     && mkdir -p /tmp/.X11-unix     && chmod 1777 /tmp/.X11-unix     && git config --system user.name "Hackbot"     && git config --system user.email "hackbot@mozilla.tld"
--> 1386c2e026ee
[3/3] STEP 9/20: ENV SCREEN_WIDTH=1920
--> 4500c07d1cc8
[3/3] STEP 10/20: ENV SCREEN_HEIGHT=1080
--> 9a6fc70dfdcb
[3/3] STEP 11/20: ENV SCREEN_DEPTH=24
--> 75b4053b396e
[3/3] STEP 12/20: ENV DISPLAY=:99
--> 584b6fdfb86d
[3/3] STEP 13/20: ENV XDG_RUNTIME_DIR=/tmp/runtime-agent
--> e77ef1b83ef6
[3/3] STEP 14/20: ENV DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/runtime-agent/bus
--> fe12dd2733c2
[3/3] STEP 15/20: ENV PATH="/home/agent/.mozbuild/bin:/home/agent/.cargo/bin:/home/agent/.mozbuild/clang/bin:/home/agent/.mozbuild/minidump-stackwalk:/home/agent/.mozbuild/node/bin:/home/agent/.mozbuild/samply:${PATH}"
--> 552de495e95a
[3/3] STEP 16/20: ENV PATH="${PATH}:/home/agent/.mozbuild/jdk/current/bin:/home/agent/.mozbuild/android-sdk-linux/platform-tools:/home/agent/.mozbuild/android-sdk-linux/build-tools/latest:/home/agent/.mozbuild/android-sdk-linux/cmdline-tools/latest/bin"
--> 25f52c6f8fa9
[3/3] STEP 17/20: COPY --from=builder /opt/venv /opt/venv
--> 98bb54076ccd
[3/3] STEP 18/20: USER agent
--> 75d30049fe13
[3/3] STEP 19/20: ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
--> 54b285c55beb
[3/3] STEP 20/20: CMD ["python", "-m", "hackbot_agents.bug_fix"]
[3/3] COMMIT mozilla/bugbug-hackbot-agent-bug-fix:latest
--> a5204c91712c
Successfully tagged localhost/mozilla/bugbug-hackbot-agent-bug-fix:latest
a5204c91712ce3293c7fc0daa80306e655a692e9d02441680de8fd6af7758491
+ mkdir /images
+ podman save --format docker-archive mozilla/bugbug-hackbot-agent-bug-fix:latest
+ zstd -q -o /images/bugbug-hackbot-agent-bug-fix.tar.zst
+ podman image prune --force --filter 'until=168h'
[taskcluster 2026-12-04T20:06:35.013Z]                        Exit Code: 0
[taskcluster 2026-12-04T20:06:35.013Z]                        User Time: 62.222ms
[taskcluster 2026-12-04T20:06:35.013Z]                      Kernel Time: 72.593ms
[taskcluster 2026-12-04T20:06:35.013Z]                        Wall Time: 5m44.644525652s
[taskcluster 2026-12-04T20:06:35.013Z]  Average Available System Memory: 13.81 GiB
[taskcluster 2026-12-04T20:06:35.013Z]       Average System Memory Used: 1.80 GiB
[taskcluster 2026-12-04T20:06:35.013Z]          Peak System Memory Used: 2.20 GiB
[taskcluster 2026-12-04T20:06:35.013Z]              Total System Memory: 15.61 GiB
[taskcluster 2026-12-04T20:06:35.013Z]                           Result: SUCCEEDED
[taskcluster 2026-12-04T20:06:35.013Z] === Task Finished ===
[taskcluster 2026-12-04T20:06:35.013Z] Task Duration: 5m44.645043813s
[taskcluster 2026-12-04T20:06:50.511Z] [mounts] Preserving cache: Moving "/home/task_179641437726162/cache0" to "caches/PF6OqLCDQ6S0lMceaYF85g"