Skip to content

Commit 80fffe1

Browse files
committed
detect avrea runners
1 parent dc2769a commit 80fffe1

8 files changed

Lines changed: 16 additions & 4 deletions

File tree

‎dist/index.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31963,6 +31963,8 @@ function detectThirdPartyRunnerProvider() {
3196331963
return "warp";
3196431964
if (runnerName.startsWith("blacksmith-"))
3196531965
return "blacksmith";
31966+
if (runnerName.startsWith("avrea-exe-"))
31967+
return "avrea";
3196631968
return null;
3196731969
}
3196831970
function utils_getAnnotationLogs(platform) {

‎dist/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/post/index.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31969,6 +31969,8 @@ function detectThirdPartyRunnerProvider() {
3196931969
return "warp";
3197031970
if (runnerName.startsWith("blacksmith-"))
3197131971
return "blacksmith";
31972+
if (runnerName.startsWith("avrea-exe-"))
31973+
return "avrea";
3197231974
return null;
3197331975
}
3197431976
function getAnnotationLogs(platform) {

‎dist/post/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/pre/index.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85161,6 +85161,8 @@ function detectThirdPartyRunnerProvider() {
8516185161
return "warp";
8516285162
if (runnerName.startsWith("blacksmith-"))
8516385163
return "blacksmith";
85164+
if (runnerName.startsWith("avrea-exe-"))
85165+
return "avrea";
8516485166
return null;
8516585167
}
8516685168
function utils_getAnnotationLogs(platform) {

‎dist/pre/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/utils.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ describe("detectThirdPartyRunnerProvider", () => {
177177
expect(detectThirdPartyRunnerProvider()).toBe("blacksmith");
178178
});
179179

180+
test("returns avrea for RUNNER_NAME prefix avrea-exe-", () => {
181+
process.env.RUNNER_NAME = "avrea-exe-01kpj";
182+
expect(detectThirdPartyRunnerProvider()).toBe("avrea");
183+
});
184+
180185
test("returns null when no env vars match", () => {
181186
expect(detectThirdPartyRunnerProvider()).toBeNull();
182187
});

‎src/utils.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function shouldDeployAgentOnSelfHosted(
8181
return deployOnSelfHostedVm && !isContainer && !agentAlreadyInstalled;
8282
}
8383

84-
export type ThirdPartyRunnerProvider = "depot" | "namespace" | "warp" | "blacksmith" | "bitrise" | "codebuild";
84+
export type ThirdPartyRunnerProvider = "depot" | "namespace" | "warp" | "blacksmith" | "avrea" | "bitrise" | "codebuild";
8585

8686
export function detectThirdPartyRunnerProvider(): ThirdPartyRunnerProvider | null {
8787
if (process.env["DEPOT_RUNNER"] === "1") return "depot";
@@ -91,6 +91,7 @@ export function detectThirdPartyRunnerProvider(): ThirdPartyRunnerProvider | nul
9191
const runnerName = process.env["RUNNER_NAME"] ?? "";
9292
if (runnerName.startsWith("warp-")) return "warp";
9393
if (runnerName.startsWith("blacksmith-")) return "blacksmith";
94+
if (runnerName.startsWith("avrea-exe-")) return "avrea";
9495
return null;
9596
}
9697

0 commit comments

Comments
 (0)