diff --git a/packages/cypress-cloud/lib/api/types/run.ts b/packages/cypress-cloud/lib/api/types/run.ts index 8a8a6ff..30d3a6b 100644 --- a/packages/cypress-cloud/lib/api/types/run.ts +++ b/packages/cypress-cloud/lib/api/types/run.ts @@ -25,6 +25,7 @@ export type CreateRunPayload = { autoCancelAfterFailures: ValidatedCurrentsParameters["autoCancelAfterFailures"]; coverageEnabled?: boolean; previousCiBuildId?: string; + providedMachineId?: string; }; export type CloudWarning = { diff --git a/packages/cypress-cloud/lib/run.ts b/packages/cypress-cloud/lib/run.ts index ed118aa..f91dae0 100644 --- a/packages/cypress-cloud/lib/run.ts +++ b/packages/cypress-cloud/lib/run.ts @@ -110,10 +110,14 @@ export async function run(params: CurrentsRunParameters = {}) { autoCancelAfterFailures, coverageEnabled: experimentalCoverageRecording, previousCiBuildId: process.env.CURRENTS_PREVIOUS_CI_BUILD_ID, + providedMachineId: process.env.CURRENTS_MACHINE_ID, }); setRunId(run.runId); info("🎥 Run URL:", bold(run.runUrl)); + process.env.CURRENTS_MACHINE_ID + ? info("🤖 Machine ID:", bold(run.machineId)) + : null; cutInitialOutput(); await startWSS(); diff --git a/turbo.json b/turbo.json index a560ccb..ead9d99 100644 --- a/turbo.json +++ b/turbo.json @@ -17,6 +17,7 @@ "CURRENTS_API_URL", "CURRENTS_RECORD_KEY", "CURRENTS_PREVIOUS_CI_BUILD_ID", + "CURRENTS_MACHINE_ID", "TF_BUILD", "TF_BUILD_BUILDNUMBER", "AZURE_HTTP_USER_AGENT",