Skip to content

[Bug] CI tests failing - E2E OpenAI API configuration issues (package exports FIXED) #52

@best

Description

@best

Problem Description

Test Failures Summary

  • FIXED: 22 test suites failed due to package entry resolution errors (after running pnpm build)
  • 🟡 IN PROGRESS: 7 E2E tests failed due to OpenAI API 404 errors

Root Cause Analysis

1. Package Entry Resolution Errors ✅ FIXED

Multiple packages couldn't resolve their entry points. This was fixed by:

  • Running pnpm build to generate dist/ folders
  • All packages now properly export their compiled files

2. OpenAI API 404 Errors 🟡 BEING FIXED

E2E tests failing with:

Route /v1/chat/completions not found

Current Status: CC development session started to fix E2E test configuration.

Steps to Reproduce

  1. git clone https://github.com/openlinkos/agent.git
  2. pnpm install
  3. pnpm build ← Required step (fixed package resolution)
  4. pnpm test → 7 E2E tests fail due to API configuration

Current Status

  • 1018+ unit/integration tests passing
  • 7 E2E tests failing due to OpenAI API configuration
  • 🔄 CC development in progress to fix configuration

Fix Progress

  • Investigate package.json exports for @openlinkos/ai, @openlinkos/agent, @openlinkos/channel
  • Fix entry point resolution (via pnpm build)
  • Identify OpenAI API URL configuration issue
  • Start CC development session
  • Complete CC development to fix E2E tests
  • Run full test suite to verify all tests pass

Impact

  • Most tests now pass (99%+ success rate)
  • Only E2E tests affected, not core functionality
  • CC development session started to resolve configuration issues

Tasks

  • Investigate package.json exports
  • Fix entry point resolution
  • Start CC development
  • Complete E2E test fix via CC
  • Update CI configuration
  • Verify full test suite pass

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions