Skip to content

Commit e8186a4

Browse files
committed
remove e2e from concurrent script
1 parent 035192c commit e8186a4

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.github/workflows/dojo-e2e.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ jobs:
6464
echo "OPENAI_API_KEY=${OPENAI_API_KEY}" > python/ag_ui_langgraph/.env
6565
echo "LANGSMITH_API_KEY=${LANGSMITH_API_KEY}" >> python/ag_ui_langgraph/.env
6666
67-
- name: Run dojo e2e tests
67+
- name: Run dojo and agents
6868
working-directory: typescript-sdk/apps/dojo
6969
env:
7070
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
7171
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}
72-
run: node ./scripts/run-dojo-everything.js -e2e
72+
run: node ./scripts/run-dojo-everything.js &
73+
74+
- name: Run tests
75+
working-directory: typescript-sdk/apps/dojo
76+
run: npx wait-port 9999 && sleep 10 && echo "I AM ECHOING INSTEAD OF RUNNING TESTS"

typescript-sdk/apps/dojo/scripts/run-dojo-everything.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ if (showHelp) {
1414
Usage: node run-dojo-everything.js [options]
1515
1616
Options:
17-
--e2e Run end-to-end tests after starting services
1817
--dry-run Show what would be started without actually running
1918
--help, -h Show this help message
2019
2120
Examples:
2221
node run-dojo-everything.js
23-
node run-dojo-everything.js --e2e
2422
node run-dojo-everything.js --dry-run
2523
`);
2624
process.exit(0);
@@ -131,14 +129,6 @@ const dojo = {
131129
}
132130
}
133131

134-
// TODO: wire in actual tests here
135-
const e2e = {
136-
// Silly little sleep until we have a healthcheck or something on agents to know they're ready
137-
command: 'npx wait-port 9999 && sleep 10 && echo "I AM ECHOING INSTEAD OF RUNNING TESTS"',
138-
name: 'E2E',
139-
cwd: path.join(gitRoot, 'typescript-sdk/apps/dojo'),
140-
}
141-
142132
const procs = [
143133
serverStarter,
144134
serverStarterAllFeatures,
@@ -154,10 +144,6 @@ const procs = [
154144
dojo
155145
];
156146

157-
if (args.includes('--e2e')) {
158-
procs.push(e2e);
159-
}
160-
161147
function printDryRunServices(procs) {
162148
console.log('Dry run - would start the following services:');
163149
procs.forEach(proc => {
@@ -183,7 +169,7 @@ async function main() {
183169

184170
console.log('Starting services: ', procs.map(p => p.name).join(', '));
185171

186-
const {result} = concurrently(procs);
172+
const {result} = concurrently(procs, {killOthersOn: ['failure', 'success']});
187173

188174
result.then(() => process.exit(0)).catch((err) => {
189175
console.error(err);

0 commit comments

Comments
 (0)