Fix session create error test failures (DI container issue) #4191

Open
opened 2026-04-06 23:14:13 +00:00 by freemo · 0 comments
Owner

Problem

The session create error tests in features/session_create_error.feature are currently failing and have been tagged with @tdd_expected_fail to allow CI to pass.

Tests Affected

All 4 scenarios in features/session_create_error.feature that are marked with @tdd_issue @tdd_issue_570:

  • Session create produces a new session
  • Created session persists and can be retrieved
  • Session create with custom actor succeeds
  • Session create with arbitrary actor name succeeds

Root Cause

Bug #570 reports that the DI container fix for session create command is not working correctly. The file comment indicates that these are "regression tests for bug #570 — verifies that the DI container fix for session create command works correctly." The comment also mentions "The @tdd_expected_fail tags have been removed now that the fix has landed" but the tests are still failing, suggesting the fix may not be complete or there's a regression.

Definition of Done

  1. Investigate why the session create tests are failing after the fix was supposedly applied
  2. Fix the underlying DI container wiring issue
  3. Remove @tdd_expected_fail tags from all scenarios
  4. Verify all tests pass without the expected fail tags
  5. CI shows all tests passing

Priority

High - Session creation is a core functionality and DI container issues can affect many parts of the system.

Labels

  • Type/Bug
  • Priority/High
  • Component/DI
  • Component/CLI
  • TDD/Expected-Fail
## Problem The session create error tests in `features/session_create_error.feature` are currently failing and have been tagged with `@tdd_expected_fail` to allow CI to pass. ## Tests Affected All 4 scenarios in `features/session_create_error.feature` that are marked with `@tdd_issue @tdd_issue_570`: - Session create produces a new session - Created session persists and can be retrieved - Session create with custom actor succeeds - Session create with arbitrary actor name succeeds ## Root Cause Bug #570 reports that the DI container fix for session create command is not working correctly. The file comment indicates that these are "regression tests for bug #570 — verifies that the DI container fix for session create command works correctly." The comment also mentions "The @tdd_expected_fail tags have been removed now that the fix has landed" but the tests are still failing, suggesting the fix may not be complete or there's a regression. ## Definition of Done 1. [ ] Investigate why the session create tests are failing after the fix was supposedly applied 2. [ ] Fix the underlying DI container wiring issue 3. [ ] Remove `@tdd_expected_fail` tags from all scenarios 4. [ ] Verify all tests pass without the expected fail tags 5. [ ] CI shows all tests passing ## Priority High - Session creation is a core functionality and DI container issues can affect many parts of the system. ## Labels - Type/Bug - Priority/High - Component/DI - Component/CLI - TDD/Expected-Fail
HAL9000 self-assigned this 2026-04-08 12:12:44 +00:00
HAL9000 added this to the v3.5.0 milestone 2026-04-08 12:12:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#4191
No description provided.