From ac5598861e16a736868967ee9ea10d6cac89ad12 Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Tue, 14 Jan 2025 13:26:18 -0800 Subject: [PATCH 1/9] Configure workflow to run e2e on dev-azure on demand --- .github/workflows/demand.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index 4c22515a..35ed276b 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -23,7 +23,7 @@ on: - 'PROD' - 'STAGE' - 'DEV' - + - 'DEV-AZURE' run-name: On Demand Test Run - ${{ github.event.inputs.environment }} - ${{ github.event.inputs.os }} jobs: From 980e5e2ce994a46ac747fb015ad1f9bc234cc06a Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:08:24 -0800 Subject: [PATCH 2/9] moved variables to secrets --- .github/workflows/demand.yml | 28 ++++++++-------------------- e2e/connection/audio.spec.ts | 6 +++--- e2e/connection/packet.spec.ts | 10 +++++----- e2e/connection/text.spec.ts | 6 +++--- e2e/goals/emotion.spec.ts | 6 +++--- e2e/goals/trigger.spec.ts | 6 +++--- e2e/goals/verbatim.spec.ts | 6 +++--- e2e/knowledge/common.spec.ts | 6 +++--- e2e/knowledge/name.spec.ts | 6 +++--- e2e/knowledge/personal.spec.ts | 6 +++--- e2e/knowledge/scene.spec.ts | 8 ++++---- 11 files changed, 41 insertions(+), 53 deletions(-) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index 35ed276b..a6aa4d37 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -16,14 +16,10 @@ on: - windows-latest - macos-latest environment: - type: choice + type: environment description: Choose environment to run on - default: 'PROD' - options: - - 'PROD' - - 'STAGE' - - 'DEV' - - 'DEV-AZURE' + default: 'DEV' + run-name: On Demand Test Run - ${{ github.event.inputs.environment }} - ${{ github.event.inputs.os }} jobs: @@ -31,17 +27,6 @@ jobs: runs-on: ${{ github.event.inputs.os }} environment: ${{ github.event.inputs.environment }} env: - INWORLD_E2E_KEY: ${{ secrets.INWORLD_E2E_KEY }} - INWORLD_E2E_SECRET: ${{ secrets.INWORLD_E2E_SECRET }} - INWORLD_E2E_SCENE_HOUSE: ${{ vars.INWORLD_E2E_SCENE_HOUSE }} - INWORLD_E2E_SCENE_MOVIESET: ${{ vars.INWORLD_E2E_SCENE_MOVIESET }} - INWORLD_E2E_SCENE_CASTLE: ${{ vars.INWORLD_E2E_SCENE_CASTLE }} - INWORLD_E2E_SCENE_STUDIO: ${{ vars.INWORLD_E2E_SCENE_STUDIO }} - INWORLD_E2E_CHARACTER_AUDIO: ${{ vars.INWORLD_E2E_CHARACTER_AUDIO }} - INWORLD_E2E_CHARACTER_SCENE: ${{ vars.INWORLD_E2E_CHARACTER_SCENE }} - INWORLD_E2E_CHARACTER_TEXT: ${{ vars.INWORLD_E2E_CHARACTER_TEXT }} - INWORLD_E2E_CHARACTER_VERB: ${{ vars.INWORLD_E2E_CHARACTER_VERB }} - INWORLD_E2E_CHARACTER_NARRATOR: ${{ vars.INWORLD_E2E_CHARACTER_NARRATOR }} ALLURE_ENDPOINT: 'https://inworld.testops.cloud/' ALLURE_PROJECT_ID: '35' ALLURE_JOB_RUN_ID: '' @@ -50,7 +35,6 @@ jobs: AUTH_SERVICE_ACCOUNT: ${{ vars.AUTH_SERVICE_ACCOUNT }} ENV: ${{ github.event.inputs.environment }} OS: ${{ github.event.inputs.os }} - PROJECT_ID: ${{ vars.PROJECT_ID }} NODE_SDK_INWORLD_ENGINE_HOST: ${{ secrets.NODE_SDK_INWORLD_ENGINE_HOST }} permissions: contents: 'read' @@ -73,7 +57,9 @@ jobs: uses: 'google-github-actions/get-secretmanager-secrets@v2' with: secrets: |- - ALLURE_TOKEN:${{env.PROJECT_ID}}/allure-token + STUDIO_INTEGRATIONS_API_KEY:${{vars.GOOGLE_PROJECT_ID}}/nodejs-sdk-integration-studio-key + STUDIO_INTEGRATIONS_API_SECRET:${{vars.GOOGLE_PROJECT_ID}}/nodejs-sdk-integration-studio-secret + ALLURE_TOKEN:${{vars.GOOGLE_PROJECT_ID}}/allure-token - name: Install Packages run: yarn install - name: Install inworld/nodejs-sdk @@ -90,6 +76,8 @@ jobs: run: yarn jest "${{ github.event.inputs.test_suite }}" - name: Upload Allure Results env: + STUDIO_INTEGRATIONS_API_KEY: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_KEY }}' + STUDIO_INTEGRATIONS_API_SECRET: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_SECRET }}' ALLURE_TOKEN: '${{ steps.secrets.outputs.ALLURE_TOKEN }}' if: always() run: allurectl upload ${{ env.ALLURE_RESULTS }} diff --git a/e2e/connection/audio.spec.ts b/e2e/connection/audio.spec.ts index 7090b02c..4fd6d7de 100644 --- a/e2e/connection/audio.spec.ts +++ b/e2e/connection/audio.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_AUDIO!; +let npc: string = 'workspaces/integrations_testing/characters/audio'; const config = { capabilities: { emotions: true }, diff --git a/e2e/connection/packet.spec.ts b/e2e/connection/packet.spec.ts index 531956d1..faff6e38 100644 --- a/e2e/connection/packet.spec.ts +++ b/e2e/connection/packet.spec.ts @@ -3,13 +3,13 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_TEXT!; -let npc2: string = process.env.INWORLD_E2E_CHARACTER_NARRATOR!; -let npc3: string = process.env.INWORLD_E2E_CHARACTER_VERB!; +let npc: string = 'workspaces/integrations_testing/characters/text'; +let npc2: string = 'workspaces/integrations_testing/characters/narrator'; +let npc3: string = 'workspaces/integrations_testing/characters/verb'; const config = { capabilities: { emotions: true }, diff --git a/e2e/connection/text.spec.ts b/e2e/connection/text.spec.ts index 5e99242e..bd6b527a 100644 --- a/e2e/connection/text.spec.ts +++ b/e2e/connection/text.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_TEXT!; +let npc: string = 'workspaces/integrations_testing/characters/text'; const config = { capabilities: { emotions: true }, diff --git a/e2e/goals/emotion.spec.ts b/e2e/goals/emotion.spec.ts index 21b560dd..1c648339 100644 --- a/e2e/goals/emotion.spec.ts +++ b/e2e/goals/emotion.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_VERB!; +let npc: string = 'workspaces/integrations_testing/characters/verb'; const config = { capabilities: { emotions: true }, diff --git a/e2e/goals/trigger.spec.ts b/e2e/goals/trigger.spec.ts index d3743a07..cc788fa2 100644 --- a/e2e/goals/trigger.spec.ts +++ b/e2e/goals/trigger.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_VERB!; +let npc: string = 'workspaces/integrations_testing/characters/verb'; const config = { capabilities: { emotions: true }, diff --git a/e2e/goals/verbatim.spec.ts b/e2e/goals/verbatim.spec.ts index 8ef5f6de..9b4260f4 100644 --- a/e2e/goals/verbatim.spec.ts +++ b/e2e/goals/verbatim.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_VERB!; +let npc: string = 'workspaces/integrations_testing/characters/verb'; const config = { capabilities: { emotions: true }, diff --git a/e2e/knowledge/common.spec.ts b/e2e/knowledge/common.spec.ts index adf75206..f218979e 100644 --- a/e2e/knowledge/common.spec.ts +++ b/e2e/knowledge/common.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_SCENE!; +let npc: string = 'workspaces/integrations_testing/characters/scene'; const config = { capabilities: { emotions: true }, diff --git a/e2e/knowledge/name.spec.ts b/e2e/knowledge/name.spec.ts index 3b838bc1..643c67d2 100644 --- a/e2e/knowledge/name.spec.ts +++ b/e2e/knowledge/name.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Billy'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_SCENE!; +let npc: string = 'workspaces/integrations_testing/characters/scene'; const config = { capabilities: { emotions: true }, diff --git a/e2e/knowledge/personal.spec.ts b/e2e/knowledge/personal.spec.ts index ead91625..abc40480 100644 --- a/e2e/knowledge/personal.spec.ts +++ b/e2e/knowledge/personal.spec.ts @@ -3,11 +3,11 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Billy'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_SCENE!; +let npc: string = 'workspaces/integrations_testing/characters/scene'; const config = { capabilities: { emotions: true }, diff --git a/e2e/knowledge/scene.spec.ts b/e2e/knowledge/scene.spec.ts index f4aad19c..46460646 100644 --- a/e2e/knowledge/scene.spec.ts +++ b/e2e/knowledge/scene.spec.ts @@ -3,12 +3,12 @@ import * as allure from 'allure-js-commons'; import { openConnectionManually } from '../e2e_helpers'; let key: [string, string] = [ - process.env.INWORLD_E2E_KEY!, - process.env.INWORLD_E2E_SECRET!, + process.env.STUDIO_INTEGRATIONS_API_KEY!, + process.env.STUDIO_INTEGRATIONS_API_SECRET!, ]; let name: string = 'Tester'; -let npc: string = process.env.INWORLD_E2E_CHARACTER_SCENE!; -let scene: string = process.env.INWORLD_E2E_SCENE_MOVIESET!; +let npc: string = 'workspaces/integrations_testing/characters/scene'; +let scene: string = 'workspaces/integrations_testing/scenes/movie_set'; const config = { capabilities: { emotions: false }, From e45ed972edafa17587905889f798f54c17f582a7 Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:15:24 -0800 Subject: [PATCH 3/9] changed path --- .github/workflows/demand.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index a6aa4d37..74a66c49 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -40,6 +40,7 @@ jobs: contents: 'read' id-token: 'write' steps: + - run: echo "PROJECT_NAME=$(echo inworld-ai-${{ inputs.environment_name }} | awk '{print tolower($0)}')" >> $GITHUB_ENV - name: Setup node uses: actions/setup-node@v3 with: @@ -57,9 +58,9 @@ jobs: uses: 'google-github-actions/get-secretmanager-secrets@v2' with: secrets: |- - STUDIO_INTEGRATIONS_API_KEY:${{vars.GOOGLE_PROJECT_ID}}/nodejs-sdk-integration-studio-key - STUDIO_INTEGRATIONS_API_SECRET:${{vars.GOOGLE_PROJECT_ID}}/nodejs-sdk-integration-studio-secret - ALLURE_TOKEN:${{vars.GOOGLE_PROJECT_ID}}/allure-token + STUDIO_INTEGRATIONS_API_KEY:${{vars.PROJECT_ID}}/nodejs-sdk-integration-studio-key + STUDIO_INTEGRATIONS_API_SECRET:${{vars.PROJECT_ID}}/nodejs-sdk-integration-studio-secret + ALLURE_TOKEN:${{vars.PROJECT_ID}}/allure-token - name: Install Packages run: yarn install - name: Install inworld/nodejs-sdk From 415ba35c83abdd17b9d5ce01c383381aa2216c92 Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:20:37 -0800 Subject: [PATCH 4/9] added keys --- .github/workflows/demand.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index 74a66c49..3f0ff10a 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -74,11 +74,12 @@ jobs: allure-project-id: ${{ env.ALLURE_PROJECT_ID }} continue-on-error: true - name: Run Tests - run: yarn jest "${{ github.event.inputs.test_suite }}" - - name: Upload Allure Results env: STUDIO_INTEGRATIONS_API_KEY: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_KEY }}' STUDIO_INTEGRATIONS_API_SECRET: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_SECRET }}' + run: yarn jest "${{ github.event.inputs.test_suite }}" + - name: Upload Allure Results + env: ALLURE_TOKEN: '${{ steps.secrets.outputs.ALLURE_TOKEN }}' if: always() run: allurectl upload ${{ env.ALLURE_RESULTS }} From e4c0dcd76b7143d2e824ec0b28ab541a62e1823f Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Thu, 16 Jan 2025 09:24:15 -0800 Subject: [PATCH 5/9] added NODE_SDK_INWORLD_ENGINE_HOST --- .github/workflows/demand.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index 3f0ff10a..dd02325f 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -35,7 +35,7 @@ jobs: AUTH_SERVICE_ACCOUNT: ${{ vars.AUTH_SERVICE_ACCOUNT }} ENV: ${{ github.event.inputs.environment }} OS: ${{ github.event.inputs.os }} - NODE_SDK_INWORLD_ENGINE_HOST: ${{ secrets.NODE_SDK_INWORLD_ENGINE_HOST }} + NODE_SDK_INWORLD_ENGINE_HOST: ${{ vars.NODE_SDK_INWORLD_ENGINE_HOST }} permissions: contents: 'read' id-token: 'write' From bb47fafdc203da6105001dcbff3f67c457e90632 Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:30:30 -0800 Subject: [PATCH 6/9] cleanup --- .github/workflows/demand.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index dd02325f..19adb318 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -35,12 +35,12 @@ jobs: AUTH_SERVICE_ACCOUNT: ${{ vars.AUTH_SERVICE_ACCOUNT }} ENV: ${{ github.event.inputs.environment }} OS: ${{ github.event.inputs.os }} + PROJECT_ID: ${{ vars.PROJECT_ID }} NODE_SDK_INWORLD_ENGINE_HOST: ${{ vars.NODE_SDK_INWORLD_ENGINE_HOST }} permissions: contents: 'read' id-token: 'write' steps: - - run: echo "PROJECT_NAME=$(echo inworld-ai-${{ inputs.environment_name }} | awk '{print tolower($0)}')" >> $GITHUB_ENV - name: Setup node uses: actions/setup-node@v3 with: @@ -58,9 +58,9 @@ jobs: uses: 'google-github-actions/get-secretmanager-secrets@v2' with: secrets: |- - STUDIO_INTEGRATIONS_API_KEY:${{vars.PROJECT_ID}}/nodejs-sdk-integration-studio-key - STUDIO_INTEGRATIONS_API_SECRET:${{vars.PROJECT_ID}}/nodejs-sdk-integration-studio-secret - ALLURE_TOKEN:${{vars.PROJECT_ID}}/allure-token + STUDIO_INTEGRATIONS_API_KEY:${{env.PROJECT_ID}}/nodejs-sdk-integration-studio-key + STUDIO_INTEGRATIONS_API_SECRET:${{env.PROJECT_ID}}/nodejs-sdk-integration-studio-secret + ALLURE_TOKEN:${{env.PROJECT_ID}}/allure-token - name: Install Packages run: yarn install - name: Install inworld/nodejs-sdk From 30476cdf32303005edf34a89f1ce56763b431764 Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:44:04 -0800 Subject: [PATCH 7/9] changed daily run --- .github/workflows/daily.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 184c32f0..8d37be36 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -9,23 +9,13 @@ jobs: runs-on: ubuntu-latest environment: 'PROD' env: - INWORLD_E2E_KEY: ${{ secrets.INWORLD_E2E_KEY }} - INWORLD_E2E_SECRET: ${{ secrets.INWORLD_E2E_SECRET }} - INWORLD_E2E_SCENE_HOUSE: ${{ vars.INWORLD_E2E_SCENE_HOUSE }} - INWORLD_E2E_SCENE_MOVIESET: ${{ vars.INWORLD_E2E_SCENE_MOVIESET }} - INWORLD_E2E_SCENE_CASTLE: ${{ vars.INWORLD_E2E_SCENE_CASTLE }} - INWORLD_E2E_SCENE_STUDIO: ${{ vars.INWORLD_E2E_SCENE_STUDIO }} - INWORLD_E2E_CHARACTER_AUDIO: ${{ vars.INWORLD_E2E_CHARACTER_AUDIO }} - INWORLD_E2E_CHARACTER_SCENE: ${{ vars.INWORLD_E2E_CHARACTER_SCENE }} - INWORLD_E2E_CHARACTER_TEXT: ${{ vars.INWORLD_E2E_CHARACTER_TEXT }} - INWORLD_E2E_CHARACTER_VERB: ${{ vars.INWORLD_E2E_CHARACTER_VERB }} - INWORLD_E2E_CHARACTER_NARRATOR: ${{ vars.INWORLD_E2E_CHARACTER_NARRATOR }} ALLURE_ENDPOINT: 'https://inworld.testops.cloud/' ALLURE_PROJECT_ID: '35' ALLURE_JOB_RUN_ID: '' ALLURE_RESULTS: 'build/allure-results' AUTH_IDENTITY_PROVIDER: ${{ vars.AUTH_IDENTITY_PROVIDER }} AUTH_SERVICE_ACCOUNT: ${{ vars.AUTH_SERVICE_ACCOUNT }} + NODE_SDK_INWORLD_ENGINE_HOST: ${{ vars.NODE_SDK_INWORLD_ENGINE_HOST }} ENV: 'PROD' permissions: contents: 'read' @@ -49,6 +39,8 @@ jobs: with: secrets: |- ALLURE_TOKEN:inworld-ai-prod/allure-token + STUDIO_INTEGRATIONS_API_KEY:inworld-ai-prod/nodejs-sdk-integration-studio-key + STUDIO_INTEGRATIONS_API_SECRET:inworld-ai-prod/nodejs-sdk-integration-studio-secret - name: Install Packages run: yarn install - name: Install inworld/nodejs-sdk @@ -62,6 +54,9 @@ jobs: allure-project-id: ${{ env.ALLURE_PROJECT_ID }} continue-on-error: true - name: Run Tests + env: + STUDIO_INTEGRATIONS_API_KEY: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_KEY }}' + STUDIO_INTEGRATIONS_API_SECRET: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_SECRET }}' run: yarn test:e2e - name: Upload Allure Results env: From a0f6239920e03e267f34f02f24b518f006ef6ee7 Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:47:26 -0800 Subject: [PATCH 8/9] experiment --- .github/workflows/demand.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index 19adb318..04cd1009 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -35,8 +35,6 @@ jobs: AUTH_SERVICE_ACCOUNT: ${{ vars.AUTH_SERVICE_ACCOUNT }} ENV: ${{ github.event.inputs.environment }} OS: ${{ github.event.inputs.os }} - PROJECT_ID: ${{ vars.PROJECT_ID }} - NODE_SDK_INWORLD_ENGINE_HOST: ${{ vars.NODE_SDK_INWORLD_ENGINE_HOST }} permissions: contents: 'read' id-token: 'write' @@ -58,9 +56,9 @@ jobs: uses: 'google-github-actions/get-secretmanager-secrets@v2' with: secrets: |- - STUDIO_INTEGRATIONS_API_KEY:${{env.PROJECT_ID}}/nodejs-sdk-integration-studio-key - STUDIO_INTEGRATIONS_API_SECRET:${{env.PROJECT_ID}}/nodejs-sdk-integration-studio-secret - ALLURE_TOKEN:${{env.PROJECT_ID}}/allure-token + STUDIO_INTEGRATIONS_API_KEY:${{env.GOOGLE_CLOUD_PROJECT}}/nodejs-sdk-integration-studio-key + STUDIO_INTEGRATIONS_API_SECRET:${{env.GOOGLE_CLOUD_PROJECT}}/nodejs-sdk-integration-studio-secret + ALLURE_TOKEN:${{env.GOOGLE_CLOUD_PROJECT}}/allure-token - name: Install Packages run: yarn install - name: Install inworld/nodejs-sdk From 4a9fa804caed680b5cd6160bf7a915ba3318d046 Mon Sep 17 00:00:00 2001 From: Chalova <101586709+Chalova@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:52:28 -0800 Subject: [PATCH 9/9] returted NODE_SDK_INWORLD_ENGINE_HOST --- .github/workflows/demand.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/demand.yml b/.github/workflows/demand.yml index 04cd1009..c2ad511a 100644 --- a/.github/workflows/demand.yml +++ b/.github/workflows/demand.yml @@ -35,6 +35,7 @@ jobs: AUTH_SERVICE_ACCOUNT: ${{ vars.AUTH_SERVICE_ACCOUNT }} ENV: ${{ github.event.inputs.environment }} OS: ${{ github.event.inputs.os }} + NODE_SDK_INWORLD_ENGINE_HOST: ${{ vars.NODE_SDK_INWORLD_ENGINE_HOST }} permissions: contents: 'read' id-token: 'write'