Skip to content

test and db - #10

Merged
NalinDalal merged 24 commits into
nerdev-co:mainfrom
NalinDalal:main
Sep 17, 2026
Merged

NalinDalal merged 24 commits into
nerdev-co:mainfrom
NalinDalal:main

Conversation

@NalinDalal

@NalinDalal NalinDalal commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Test cases added for the conditions
DB intitated, with server
pipeline is being set up and now we can actually test it out


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

Summary by CodeRabbit

  • New Features

    • Added API traffic snapshot capture and drift detection for request and response changes.
    • Added deterministic fix suggestions, dry-run support, and optional GitHub pull request creation.
    • Added GitHub webhook handling with signature verification and health endpoints.
    • Added captured request/response details during sandbox testing.
  • Bug Fixes

    • Improved handling of missing or invalid snapshots and incomplete traffic captures.
    • Secured local database access by binding PostgreSQL to localhost.
  • Documentation

    • Updated setup, CLI, workflow, and fix-command documentation to reflect current capabilities.

NalinDalal and others added 22 commits September 15, 2026 20:43
Add @driftlock/diff for schema inference, breaking/non-breaking
classification, and deterministic fix templates (field rename, ??,
coercion). Wire it into apps/cli fix command: run sandbox with capture
proxy, persist baselines to .driftlock/snapshots, diff on subsequent
runs, apply fixes, open PR via PRGenerator.

Proxy now captures request/response bodies and reports the actual
assigned port. PRGenerator accepts an injected Octokit for testability.
Rewrite e2e driftflow test to drive the real pipeline; add table-driven
diff and proxy body-capture tests. Fix CLI help-text assertions and
remove unused Agent import. Update README and QUICKSTART to reflect the
capture-based detection loop.
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 3dcf9c2d-1a01-4e12-a53c-6b6155924897

📥 Commits

Reviewing files that changed from the base of the PR and between 304305c and e51f80d.

⛔ Files ignored due to path filters (4)
  • assets/logo-icon-v2.svg is excluded by !**/*.svg
  • assets/logo-light-v2.svg is excluded by !**/*.svg
  • assets/logo-v2.svg is excluded by !**/*.svg
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (42)
  • BLUEPRINT.md
  • QUICKSTART.md
  • README.md
  • apps/cli/drift.ts
  • apps/cli/index.ts
  • apps/cli/package.json
  • apps/webhook/index.ts
  • apps/webhook/manifest.json
  • apps/webhook/package.json
  • apps/webhook/tsconfig.json
  • apps/webhook/webhooks.ts
  • docker-compose.yml
  • docs/architecture.md
  • docs/call-prep-kai.md
  • docs/competitive-analysis.md
  • docs/mvp.md
  • docs/product-engineering.md
  • docs/yc-application.md
  • package.json
  • packages/db/migrations/0001_grey_ender_wiggin.sql
  • packages/db/migrations/meta/0001_snapshot.json
  • packages/db/migrations/meta/_journal.json
  • packages/db/package.json
  • packages/db/schema.ts
  • packages/diff/index.ts
  • packages/diff/package.json
  • packages/diff/tsconfig.json
  • packages/git/index.ts
  • packages/git/package.json
  • packages/git/prGenerator.ts
  • packages/git/prWriter.ts
  • packages/parser/package.json
  • packages/sandbox/proxy.ts
  • packages/sandbox/runner.ts
  • packages/tests/e2e/driftflow.test.ts
  • packages/tests/package.json
  • packages/tests/unit/cli/cli.test.ts
  • packages/tests/unit/diff/diffShapes.test.ts
  • packages/tests/unit/diff/fixWorks.test.ts
  • packages/tests/unit/diff/inferShape.test.ts
  • packages/tests/unit/git/prWriter.test.ts
  • packages/tests/unit/sandbox/proxy.test.ts
 ____________________
< Expecto bugtronum! >
 --------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)

Comment @coderabbitai help to get the list of available commands.

NalinDalal and others added 2 commits September 17, 2026 16:36
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
@NalinDalal
NalinDalal merged commit ea9d733 into nerdev-co:main Sep 17, 2026
2 checks passed
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Note

Unit test generation is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.


Generating unit tests... This may take up to 20 minutes.

@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

🤖 Coding Agent task started for unit test generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant