Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
df2b5bf
feat(workflows): create Repository/User attribution nodes via Storage…
Jan 2, 2026
e0cc70a
prettier
youngchingjui Jan 2, 2026
4a70307
add TODO
youngchingjui Jan 2, 2026
b27ebfc
test(webhook): update issues payload tests for expanded repository/se…
Jan 2, 2026
b23869f
prettier
youngchingjui Jan 2, 2026
5e39c4e
redundant
youngchingjui Jan 2, 2026
c4f4b00
increased coverage
youngchingjui Jan 2, 2026
bb8f953
update shared imports
youngchingjui Jan 3, 2026
d2c6db8
chore(workflows): migrate run creation to StorageAdapter for key work…
Jan 3, 2026
e8a170b
Merge remote-tracking branch 'origin/main' into feature/workflows-rep…
youngchingjui Jan 3, 2026
7a62a2e
prettier
youngchingjui Jan 3, 2026
5058c6a
fix typing
youngchingjui Jan 3, 2026
e638fa7
refactor: update repository fields to be optional and adjust import p…
youngchingjui Jan 3, 2026
5db7385
Merge branch 'main' into feature/workflows-repo-user-attribution-nodes
youngchingjui Jan 4, 2026
aa9c9e8
fixed types
youngchingjui Jan 4, 2026
6dffeea
adding comments
youngchingjui Jan 5, 2026
a19844c
update to port
youngchingjui Jan 5, 2026
6a0c930
revert these changes - not needed in this PR
youngchingjui Jan 8, 2026
3acf39e
reverting some unused changes
youngchingjui Jan 8, 2026
d113d33
updated entities
youngchingjui Jan 9, 2026
fb5f35b
port seems OK
youngchingjui Jan 9, 2026
b107093
added tests that seem to wrok
youngchingjui Jan 9, 2026
9bbac8d
fixed deprecated issue
youngchingjui Jan 9, 2026
04439c8
renamed test
youngchingjui Jan 9, 2026
217ab10
everything seems to work somewhat
youngchingjui Jan 9, 2026
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ yarn-error.log*
# env files (can opt-in for committing if needed)
.env*
!.env.example
!__tests__/.env.example
!docker/env/.env.neo4j.example
!docker/env/.env.worker.example

Expand Down
19 changes: 19 additions & 0 deletions __tests__/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Neo4j Test Database Configuration
# Copy this file to .env and fill in your test database credentials
# IMPORTANT: Use a separate test database, not your production/development database!

# Neo4j connection URI
# Example: bolt://localhost:7687
NEO4J_URI=

# Neo4j username
# Example: neo4j
NEO4J_USER=

# Neo4j password
NEO4J_PASSWORD=

# Optional: Neo4j Database Name
# If using Neo4j Enterprise/AuraDB, you can specify a database name
# Default is "neo4j"
# NEO4J_DATABASE=neo4j-test
47 changes: 46 additions & 1 deletion __tests__/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,54 @@ pnpm test:agent
npx jest __tests__/llm-lint.llm.test.ts -t "test name"
```

## Neo4j Integration Tests

Neo4j integration tests require a running Neo4j database. **IMPORTANT: Use a separate test database, not your production or development database!**

### Setup

1. **Create test environment file:**

```bash
cp __tests__/.env.example __tests__/.env
```

2. **Configure test database credentials:**
Edit `__tests__/.env` and fill in your test Neo4j database credentials:

```env
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=your-test-password
```

3. **Ensure Neo4j is running:**
- If using Docker:
```bash
docker run -d \
--name neo4j-test \
-p 7687:7687 -p 7474:7474 \
-e NEO4J_AUTH=neo4j/your-test-password \
neo4j:latest
```
- Or use a local Neo4j installation pointing to a test database

### Running Neo4j Tests

```bash
pnpm test:neo4j
```

### Test Database Isolation

- Tests use hardcoded test data IDs (prefixed with `test-` or `test-prog-`)
- Cleanup functions remove only these specific test nodes
- Tests are designed to be idempotent and can be run multiple times

## Environment Variables

Agent tests automatically load environment variables from `.env.local` during test setup. Make sure your `.env.local` file contains all required variables for agent tests.
- **Agent tests**: Automatically load environment variables from `.env.local` (at project root) during test setup. Make sure your `.env.local` file contains all required variables for agent tests.
- **Neo4j integration tests**: Load environment variables from `__tests__/.env` for database configuration. This allows tests to use a separate test database.

## Notes

Expand Down
120 changes: 0 additions & 120 deletions __tests__/api/webhook/github.route.test.ts

This file was deleted.

Loading