Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ describe("AzureDevOpsCli.layer", () => {
classifyFailure?.("TF401180: The requested pull request was not found."),
"not-found",
);
assert.strictEqual(
classifyFailure?.(
"ERROR: TF400733: The request has been canceled: Request was blocked due to exceeding usage of resource 'Global' in namespace 'User'.",
),
"rate-limited",
);
assert.deepStrictEqual(call, {
operation: "AzureDevOpsCli.execute",
command: "az",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ const classifyAzFailure = (stderr: string): VcsProcessExitFailureKind | null =>
if (normalized.includes("az devops login") || /please run '?az login'?/.test(normalized)) {
return "authentication";
}
// Azure DevOps reports usage-limit throttling as TF400733, often without an HTTP status.
if (normalized.includes("tf400733")) return "rate-limited";
return normalized.includes("pull request") &&
(normalized.includes("not found") || normalized.includes("does not exist"))
? "not-found"
Expand Down
Loading