Skip to content

Clone into an explicit ai-dev directory in Taskcluster tasks - #7702

Merged
suhaibmujahid merged 2 commits into
mozilla:masterfrom
suhaibmujahid:fix-tc-clone-dir
Nov 28, 2026
Merged

suhaibmujahid merged 2 commits into
mozilla:masterfrom
suhaibmujahid:fix-tc-clone-dir

Conversation

@suhaibmujahid

Copy link
Copy Markdown
Member

Part of #7701

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.

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.
@suhaibmujahid
suhaibmujahid requested a review from a team as a code owner November 28, 2026 01:39
Copilot AI balanced review requested due to automatic review settings November 28, 2026 01:39
@community-tc-integration

Copy link
Copy Markdown
Uh oh! Looks like an error!

Taskcluster-GitHub attempted to create a task for this event with the following scopes:

["assume:repo:github.com/mozilla/ai-dev:pull-request","queue:route:checks","queue:scheduler-id:taskcluster-github"]

The expansion of these scopes is not sufficient to create the task, leading to the following:

Client ID static/taskcluster/github does not have sufficient scopes and is missing the following scopes:

{
  "AnyOf": [
    "queue:create-task:highest:proj-bugbug/batch",
    "queue:create-task:very-high:proj-bugbug/batch",
    "queue:create-task:high:proj-bugbug/batch",
    "queue:create-task:medium:proj-bugbug/batch",
    "queue:create-task:low:proj-bugbug/batch",
    "queue:create-task:very-low:proj-bugbug/batch",
    "queue:create-task:lowest:proj-bugbug/batch"
  ]
}

This request requires the client to satisfy the following scope expression:

{
  "AllOf": [
    "queue:route:checks",
    "queue:create-task:project:none",
    "queue:scheduler-id:taskcluster-github",
    {
      "AnyOf": [
        "queue:create-task:highest:proj-bugbug/batch",
        "queue:create-task:very-high:proj-bugbug/batch",
        "queue:create-task:high:proj-bugbug/batch",
        "queue:create-task:medium:proj-bugbug/batch",
        "queue:create-task:low:proj-bugbug/batch",
        "queue:create-task:very-low:proj-bugbug/batch",
        "queue:create-task:lowest:proj-bugbug/batch"
      ]
    }
  ]
}

  • method: createTask
  • errorCode: InsufficientScopes
  • statusCode: 403
  • time: 2026-11-28T01:39:24.700Z

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the changes that standardize Taskcluster checkout paths for upstream and fork builds.

No open issues 🎉

What changed in this PR

Makes Taskcluster checkout paths consistent after the repository rename to ai-dev (#7701), so tasks work for both upstream pushes and pull requests from forks still named bugbug.

Changes:

  • Sets ai-dev as the explicit destination for repository clones.
  • Updates the corresponding cd commands to use that directory.
File Description
infra/​data-pipeline.yml Uses the explicit checkout directory in integration-test and hook-build tasks.
.taskcluster.yml Uses the explicit checkout directory across CI and data-pipeline hook-build tasks.

Review effort: Balanced

Comment thread .taskcluster.yml Resolved
@suhaibmujahid
suhaibmujahid enabled auto-merge (squash) November 28, 2026 02:36
@suhaibmujahid
suhaibmujahid merged commit 2bcf767 into mozilla:master Nov 28, 2026
12 of 13 checks passed
@suhaibmujahid
suhaibmujahid deleted the fix-tc-clone-dir branch November 28, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants