Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure workflow to run e2e on dev-azure on demand #327

Merged
merged 9 commits into from
Jan 17, 2025
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
17 changes: 6 additions & 11 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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:
Expand Down
29 changes: 9 additions & 20 deletions .github/workflows/demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ on:
- windows-latest
- macos-latest
environment:
type: choice
type: environment
description: Choose environment to run on
default: 'PROD'
options:
- 'PROD'
- 'STAGE'
- 'DEV'
default: 'DEV'

run-name: On Demand Test Run - ${{ github.event.inputs.environment }} - ${{ github.event.inputs.os }}

Expand All @@ -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: ''
Expand All @@ -50,8 +35,7 @@ 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 }}
NODE_SDK_INWORLD_ENGINE_HOST: ${{ vars.NODE_SDK_INWORLD_ENGINE_HOST }}
permissions:
contents: 'read'
id-token: 'write'
Expand All @@ -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:${{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
Expand All @@ -87,6 +73,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 jest "${{ github.event.inputs.test_suite }}"
- name: Upload Allure Results
env:
Expand Down
6 changes: 3 additions & 3 deletions e2e/connection/audio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
10 changes: 5 additions & 5 deletions e2e/connection/packet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions e2e/connection/text.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions e2e/goals/emotion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions e2e/goals/trigger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions e2e/goals/verbatim.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions e2e/knowledge/common.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions e2e/knowledge/name.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions e2e/knowledge/personal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
8 changes: 4 additions & 4 deletions e2e/knowledge/scene.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
Loading