Skip to content
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
20 changes: 20 additions & 0 deletions .github/composite-actions/cypress-e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,33 @@ runs:
shell: bash
run: cd agents-manage-ui && pnpm exec cypress install

- name: Wait for DoltGres to be fully initialized
shell: bash
run: |
echo "Waiting for DoltGres system tables to be available..."
for i in $(seq 1 30); do
if PGPASSWORD=password psql -h localhost -p 5432 -U appuser -d inkeep_agents -c 'SELECT count(*) FROM dolt_status' 2>/dev/null; then
echo "DoltGres is ready!"
break
fi
if [ $i -eq 30 ]; then
echo "Timeout waiting for DoltGres after 60 seconds"
exit 1
fi
echo " Attempt $i/30..."
sleep 2
done

- name: Setup development environment
shell: bash
env:
ENVIRONMENT: development
run: pnpm setup-dev

- name: Start backend API server
shell: bash
env:
ENVIRONMENT: development
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: ${{ env.INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET }}
BETTER_AUTH_SECRET: ${{ env.BETTER_AUTH_SECRET }}
run: pnpm dev --filter='@inkeep/agents-api' & # & means run job in background
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
ports:
- 5432:5432
options: >-
--health-cmd "PGPASSWORD=password psql -h localhost -U appuser -d inkeep_agents -c 'SELECT 1' || exit 1"
--health-cmd "PGPASSWORD=password psql -h localhost -U appuser -d inkeep_agents -c 'SELECT count(*) FROM dolt_status' || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 10
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
ports:
- 5432:5432
options: >-
--health-cmd "PGPASSWORD=password psql -h localhost -U appuser -d inkeep_agents -c 'SELECT 1' || exit 1"
--health-cmd "PGPASSWORD=password psql -h localhost -U appuser -d inkeep_agents -c 'SELECT count(*) FROM dolt_status' || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-start-period 20s
--health-retries 10
--health-start-period 30s
postgres:
image: postgres:18
env:
Expand Down Expand Up @@ -125,6 +125,7 @@ jobs:
TURBO_CACHE_DIR: .turbo
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
ENVIRONMENT: test
INKEEP_AGENTS_MANAGE_DATABASE_URL: postgresql://appuser:password@localhost:5432/inkeep_agents
INKEEP_AGENTS_RUN_DATABASE_URL: postgresql://appuser:password@localhost:5433/inkeep_agents
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: test-bypass-secret-for-ci
Expand Down
10 changes: 4 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
"$schema": "https://turbo.build/schema.json",
"ui": "tui",
"concurrency": "15",
"globalDependencies": [".env"],
"globalEnv": [
"NODE_ENV",
"CI",
"TURBO_TOKEN",
"TURBO_TEAM",
"TURBO_TELEMETRY_DISABLED",
"ANTHROPIC_API_KEY",
"OPENAI_API_KEY",
"ENVIRONMENT",
"INKEEP_AGENTS_MANAGE_DATABASE_URL",
"INKEEP_AGENTS_RUN_DATABASE_URL",
Expand All @@ -33,7 +30,7 @@
},
"build": {
"dependsOn": ["^build", "sync:licenses"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"inputs": ["$TURBO_DEFAULT$", ".env.example"],
"outputs": ["dist/**", "build/**", ".next/**", "!.next/cache/**"]
},
"dev": {
Expand All @@ -52,16 +49,17 @@
"test": {
"dependsOn": ["build"],
"inputs": ["$TURBO_DEFAULT$", "**/*.{test,spec}.{js,jsx,ts,tsx}"],
"env": ["ANTHROPIC_API_KEY", "OPENAI_API_KEY"],
"outputs": ["coverage/**"]
},
"@inkeep/agents-manage-mcp#build": {
"dependsOn": ["^build", "sync:licenses"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"inputs": ["$TURBO_DEFAULT$", ".env.example"],
"outputs": ["dist/**", "bin/**", ".tsbuildinfo"]
},
"@inkeep/agents-mcp#build": {
"dependsOn": ["^build", "sync:licenses"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"inputs": ["$TURBO_DEFAULT$", ".env.example"],
"outputs": ["esm/**", "bin/**", ".tsbuildinfo"]
},
"test:watch": {
Expand Down