From adf425b975cc139d279ce10c3a108751855cc800 Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Fri, 27 Nov 2026 20:37:42 -0500 Subject: [PATCH 1/2] Clone into an explicit ai-dev directory in Taskcluster tasks After the repository rename, a plain clone creates a directory named after the source repository: ai-dev for pushes, but usually still bugbug for PRs from forks. Naming the directory keeps the following cd working for both. --- .taskcluster.yml | 40 ++++++++++++++++++++-------------------- infra/data-pipeline.yml | 16 ++++++++-------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 2af3ef4a63a..6cfc7b82552 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -71,8 +71,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && uv sync --locked --package bugbug --only-group test && uv run pre-commit run -a --show-diff-on-failure" @@ -89,8 +89,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && python infra/version_check.py" metadata: @@ -109,9 +109,9 @@ tasks: - "-cx" - "apt-get -qq update && apt-get -qq install -y libhdf5-dev zstd && - git clone --quiet ${repository} && + git clone --quiet ${repository} ai-dev && curl -L https://github.com/mozilla/rust-code-analysis/releases/download/v0.0.23/rust-code-analysis-linux-web-x86_64.tar.gz | tar -C /usr/bin -xzv && - cd bugbug && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && cp infra/hgrc /etc/mercurial/hgrc.d/bugbug.rc && uv sync --locked --package bugbug --group test --extra nlp --group spawn-pipeline && @@ -134,9 +134,9 @@ tasks: - "-cx" - "apt-get -qq update && apt-get -qq install -y zstd && - git clone --quiet ${repository} && + git clone --quiet ${repository} ai-dev && curl -L https://github.com/mozilla/rust-code-analysis/releases/download/v0.0.23/rust-code-analysis-linux-web-x86_64.tar.gz | tar -C /usr/bin -xzv && - cd bugbug && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && cp infra/hgrc /etc/mercurial/hgrc.d/bugbug.rc && uv sync --locked --package bugbug --package bugbug-http-service --group test && @@ -157,8 +157,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && export COVERAGE_FILE=$(pwd)/.coverage && cd libs/agent-tools && @@ -191,8 +191,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && export COVERAGE_FILE=$(pwd)/.coverage && cd services/hackbot-api && @@ -217,8 +217,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && export COVERAGE_FILE=$(pwd)/.coverage && cd agents/bug-fix && @@ -254,8 +254,8 @@ tasks: - "-cx" - "apt-get -qq update && apt-get -qq install -y libhdf5-dev && - git clone --quiet ${repository} && - cd bugbug && + git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && uv build && uv venv /tmp/test-venv && @@ -636,8 +636,8 @@ tasks: - "-cx" - "apt-get -qq update && apt-get -qq install -y redis-server && - git clone --quiet ${repository} && - cd bugbug && + git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && python -c 'import os; print(os.environ.keys())' && bash ./scripts/integration_test.sh" @@ -667,8 +667,8 @@ tasks: command: - "/bin/sh" - "-cxe" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && python infra/set_hook_version.py ${head_branch[10:]} infra/taskcluster-hook-data-pipeline.json && taskboot --target . build-hook infra/taskcluster-hook-data-pipeline.json project-bugbug bugbug" diff --git a/infra/data-pipeline.yml b/infra/data-pipeline.yml index d0071f3bd28..09e2a8d0166 100644 --- a/infra/data-pipeline.yml +++ b/infra/data-pipeline.yml @@ -2003,8 +2003,8 @@ tasks: - "-cx" - "apt-get -qq update && apt-get -qq install -y redis-server && - git clone --quiet ${repository} && - cd bugbug && + git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${version} && python -c 'import os; print(os.environ.keys())' && bash ./scripts/integration_test.sh" @@ -2035,8 +2035,8 @@ tasks: command: - "/bin/sh" - "-cxe" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${version} && python infra/set_hook_version.py ${version} infra/taskcluster-hook-check-models-start.json && taskboot --target . build-hook infra/taskcluster-hook-check-models-start.json project-bugbug bugbug-checks" @@ -2066,8 +2066,8 @@ tasks: command: - "/bin/sh" - "-cxe" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${version} && python infra/set_hook_version.py ${version} infra/taskcluster-hook-classify-patch.json && taskboot --target . build-hook infra/taskcluster-hook-classify-patch.json project-bugbug bugbug-classify-patch" @@ -2099,8 +2099,8 @@ tasks: command: - "/bin/sh" - "-cxe" - - "git clone --quiet ${repository} && - cd bugbug && + - "git clone --quiet ${repository} ai-dev && + cd ai-dev && git -c advice.detachedHead=false checkout ${version} && python infra/set_hook_version.py ${version} infra/taskcluster-hook-landings-risk-report.json && taskboot --target . build-hook infra/taskcluster-hook-landings-risk-report.json project-bugbug bugbug-landings-risk-report" From c29c5bdc69c4757930442703d519ac246451b6a6 Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Fri, 27 Nov 2026 21:35:52 -0500 Subject: [PATCH 2/2] Rename absolute bugbug clone paths to ai-dev --- .taskcluster.yml | 26 +++++++++++++------------- infra/landings-pipeline.yml | 6 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 6cfc7b82552..5374e4f49f2 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -336,8 +336,8 @@ tasks: command: - "/bin/sh" - "-cxe" - - "git clone --quiet ${repository} /bugbug && - cd /bugbug && + - "git clone --quiet ${repository} /ai-dev && + cd /ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && cd ui/changes && npm install --no-progress && @@ -345,7 +345,7 @@ tasks: artifacts: public/frontend: expires: { $fromNow: "2 weeks" } - path: /bugbug/ui/changes/dist + path: /ai-dev/ui/changes/dist type: directory metadata: name: bugbug ui build @@ -359,8 +359,8 @@ tasks: command: - "/bin/sh" - "-cxe" - - "git clone --quiet ${repository} /bugbug && - cd /bugbug && + - "git clone --quiet ${repository} /ai-dev && + cd /ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && cd services/hackbot-ui && npm ci --no-progress && @@ -424,8 +424,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} /tmp/bugbug && - cd /tmp/bugbug && + - "git clone --quiet ${repository} /tmp/ai-dev && + cd /tmp/ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && /usr/local/bin/python3 -m pip install --quiet --disable-pip-version-check --target /tmp/pydeps pytest==9.1.0 pytest-asyncio==1.4.0 && cd agents/bug-fix && @@ -456,8 +456,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} /tmp/bugbug && - cd /tmp/bugbug && + - "git clone --quiet ${repository} /tmp/ai-dev && + cd /tmp/ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && /usr/local/bin/python3 -m pip install --quiet --disable-pip-version-check --target /tmp/pydeps pytest==9.1.0 pytest-asyncio==1.4.0 && cd agents/bug-fix && @@ -493,8 +493,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} /tmp/bugbug && - cd /tmp/bugbug && + - "git clone --quiet ${repository} /tmp/ai-dev && + cd /tmp/ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && /usr/local/bin/python3 -m pip install --quiet --disable-pip-version-check --target /tmp/pydeps pytest==9.1.0 pytest-asyncio==1.4.0 && cd agents/bug-fix && @@ -529,8 +529,8 @@ tasks: command: - "/bin/bash" - "-cx" - - "git clone --quiet ${repository} /tmp/bugbug && - cd /tmp/bugbug && + - "git clone --quiet ${repository} /tmp/ai-dev && + cd /tmp/ai-dev && git -c advice.detachedHead=false checkout ${head_rev} && /usr/local/bin/python3 -m pip install --quiet --disable-pip-version-check --target /tmp/pydeps pytest==9.1.0 pytest-asyncio==1.4.0 && cd agents/bug-fix && diff --git a/infra/landings-pipeline.yml b/infra/landings-pipeline.yml index cd83ba1f2c0..1f36cd66513 100644 --- a/infra/landings-pipeline.yml +++ b/infra/landings-pipeline.yml @@ -66,15 +66,15 @@ tasks: command: - "/bin/sh" - "-cxe" - - "git clone --quiet ${repository} /bugbug && - cd /bugbug && + - "git clone --quiet ${repository} /ai-dev && + cd /ai-dev && git -c advice.detachedHead=false checkout ${version} && cd ui/changes && npm install --no-progress && npm run release" artifacts: public/frontend: - path: /bugbug/ui/changes/dist + path: /ai-dev/ui/changes/dist type: directory routes: - notify.email.bugbug-team@mozilla.com.on-failed