From 31373493cbe55126c73db63a245ffa4c6b61664d Mon Sep 17 00:00:00 2001 From: Nicole White Date: Fri, 18 Aug 2023 16:24:07 -0400 Subject: [PATCH 1/2] AUTOBLOCKS_REPLAY_ID -> AUTOBLOCKS_SIMULATION_ID --- src/util.ts | 6 +++--- test/headers.spec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util.ts b/src/util.ts index 4c078bc..588351e 100644 --- a/src/util.ts +++ b/src/util.ts @@ -37,7 +37,7 @@ const zCommitSchema = z.object({ type Commit = z.infer; const zEnvSchema = z.object({ - AUTOBLOCKS_REPLAY_ID: z.string().optional(), + AUTOBLOCKS_SIMULATION_ID: z.string().optional(), GITHUB_ACTIONS: z.string().optional(), }); @@ -264,8 +264,8 @@ export class HeadersBuilder { private makeReplayRun(): ReplayRun | null { if (this.env.GITHUB_ACTIONS) { return this.makeGitHubReplayRun(); - } else if (this.env.AUTOBLOCKS_REPLAY_ID) { - return this.makeLocalReplayRun(this.env.AUTOBLOCKS_REPLAY_ID); + } else if (this.env.AUTOBLOCKS_SIMULATION_ID) { + return this.makeLocalReplayRun(this.env.AUTOBLOCKS_SIMULATION_ID); } return null; diff --git a/test/headers.spec.ts b/test/headers.spec.ts index 5dcce73..3f95e37 100644 --- a/test/headers.spec.ts +++ b/test/headers.spec.ts @@ -29,7 +29,7 @@ describe('Replay Headers', () => { it('local replay', async () => { replacedEnv = jest.replaceProperty(process, 'env', { - AUTOBLOCKS_REPLAY_ID: 'my-replay-id', + AUTOBLOCKS_SIMULATION_ID: 'my-replay-id', }); const builder = new HeadersBuilder(); From 6e3d4c618b8c4edbac8ebaa50d4a11b7be9c39f7 Mon Sep 17 00:00:00 2001 From: Nicole White Date: Fri, 18 Aug 2023 16:30:26 -0400 Subject: [PATCH 2/2] Update view ID --- e2e/run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/run.ts b/e2e/run.ts index 730f155..f0260af 100644 --- a/e2e/run.ts +++ b/e2e/run.ts @@ -5,7 +5,7 @@ const { AUTOBLOCKS_API_KEY, AUTOBLOCKS_INGESTION_KEY } = process.env; // We've created a view in our demo org to be used in CI tests. // It has one filter, message == 'sdk.e2e', and its timespan is "last 1 hour" -const E2E_TESTS_VIEW_ID = 'clldzryfx0001i908okbbe5pf'; +const E2E_TESTS_VIEW_ID = 'cllh1o6bz0001jr08kocrn1fw'; const E2E_TESTS_EXPECTED_MESSAGE = 'sdk.e2e'; const sleep = (seconds: number) =>