Skip to content

chore: setup e2e tests - #338

Draft
sr07asthana wants to merge 21 commits into
mainfrom
sr-e2e-tests-setup
Draft

chore: setup e2e tests#338
sr07asthana wants to merge 21 commits into
mainfrom
sr-e2e-tests-setup

Conversation

@sr07asthana

@sr07asthana sr07asthana commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #

Changes

How was this tested?

Checklist

  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

Low Risk
Test and compose wiring only; no production server or API behavior changes. Risk is mainly operational (Docker, secrets in local .env, and live model/Daytona calls when running E2E).

Overview
Adds pnpm test:e2e at the repo root, which runs scripts/e2e.sh: bring up an isolated docker-compose.e2e.yml stack (Postgres, Redis, server on host 8792), probe /healthz and the UI shell, run the @truefoundry/trueforge e2e CLI, then down -v on exit.

The E2E harness lives under packages/trueforge/e2e/: run.ts loads e2e/.env (with real env vars winning), idempotently upserts model/MCP/sandbox settings and a named agent via the SDK, and runs eight sequential scenarios with optional --only. helpers.ts drives turns through createTurnStream, checks turn/stream invariants, and reconciles gathered stream events with listTurnEvents.

AGENTS.md now documents keeping docker-compose.e2e.yml aligned with other compose files and using packages/trueforge/e2e/.env for the E2E stack. A patch changeset records the new workflow for @truefoundry/trueforge.

Reviewed by Cursor Bugbot for commit a9145a1. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a9145a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@truefoundry/trueforge Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/trueforge/e2e/helpers.ts Outdated
Comment thread docker-compose.e2e.yml Outdated
Comment thread packages/trueforge/package.json
Comment thread AGENTS.md
Comment thread packages/trueforge/e2e/scenarios.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 62aaeae. Configure here.

Comment thread packages/trueforge/package.json
Keep E2E compose docs and scripts alongside local-sandbox smoke/contract commands from main.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chiragjn
chiragjn marked this pull request as draft August 24, 2026 09:56
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