Skip to content

Feat/e2e full pipeline - #208

Merged
devJaja merged 4 commits into
Epta-Node:mainfrom
shogun444:feat/e2e-full-pipeline
Jul 26, 2026
Merged

Feat/e2e full pipeline#208
devJaja merged 4 commits into
Epta-Node:mainfrom
shogun444:feat/e2e-full-pipeline

Conversation

@shogun444

@shogun444 shogun444 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR implements the backend integration testing scope for Issue #179 by adding end-to-end coverage across the complete execution pipeline:

  • Task submission
  • Coordinator orchestration
  • Agent dispatch
  • Payment release
  • Smart contract interaction

The implementation reuses the existing E2E testing infrastructure without introducing new configuration or test runners.

Changes

Added

tests/e2e/full-pipeline.test.ts

Covers:

  • Complete 5-node DAG execution
  • Agent dispatch across all stages
  • Payment release verification
  • Final report validation
  • Graceful agent failure handling
  • 404 for unknown task IDs
  • 400 validation for invalid requests

tests/e2e/agent-lifecycle.test.ts

Covers:

  • Agent registration
  • Agent discovery
  • Agent detail retrieval
  • Task execution using the registered agent
  • Challenge/signature authenticated deregistration
  • Registry cleanup verification

Updated

backend/tests/e2e/pipeline.test.ts

Added integration coverage for:

  • HTTP 500 responses from agents
  • Payment release verification during HTTP dispatch

smart-contracts/tests/e2e/market-report.test.ts

Added assertions for:

  • Registry state after agent registration
  • lockTxHash validation
  • releaseTxHash validation

The existing RUN_STELLAR_E2E_TESTS gate remains unchanged.

Design

  • Reused the existing createApp({ dispatch, releasePayment }) pattern
  • Reused existing helpers and on-chain test infrastructure
  • Kept a single testing approach per file
  • Added assertions without expanding test infrastructure
  • No configuration changes
  • No new dependencies

Test Results

Root E2E

  • 5 test suites passed
  • 11 tests passed

Backend

  • All unit tests passed
  • All integration tests passed
  • Existing pipeline tests passed

Smart Contracts

  • 103 tests passed
  • 4 gated E2E tests skipped as expected when RUN_STELLAR_E2E_TESTS is not enabled

Closes #179

Steps to reproduce

# 1. Full pipeline + agent lifecycle + scenarios (11 tests)
node backend/node_modules/jest/bin/jest.js \
  --config tests/e2e/jest.config.js \
  --runInBand \
  --forceExit

# 2. Backend pipeline E2E with HTTP dispatch + payment (12 tests)
node backend/node_modules/jest/bin/jest.js \
  --config backend/jest.config.js \
  --runInBand \
  --forceExit \
  --testPathPattern "tests/e2e/pipeline"

# 3. Frontend wallet E2E (5 tests)
cd frontend

npx playwright test \
  --project chromium \
  --grep "Wallet"

Expected output:

  • Root E2E: 11 tests passed
  • Backend pipeline E2E: 12 tests passed
  • Frontend wallet E2E: 5 tests passed

Include screenshots of the final test summary for each command.

Screenshot 2026-07-25 181455 Screenshot 2026-07-25 181443 Screenshot 2026-07-25 181345 Screenshot 2026-07-25 181310

@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

@shogun444 is attempting to deploy a commit to the Jaja's projects Team on Vercel.

A member of the Team first needs to authorize it.

@devJaja
devJaja self-requested a review July 26, 2026 12:44
@devJaja
devJaja merged commit 6cde47d into Epta-Node:main Jul 26, 2026
10 of 11 checks passed
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.

[CRITICAL] Implement End-to-End Integration Tests Covering Full Pipeline

2 participants