fix(test): 8 pre-existing integration test failures in cli_plan_context_commands.robot #601

Closed
opened 2026-03-05 10:42:18 +00:00 by hurui200320 · 0 comments
Member

Background

Discovered during #495 (M4 acceptance gate). Parent Epic: #401.

Problem

8 tests in robot/cli_plan_context_commands.robot fail on master (verified file is identical on master and test/m4-acceptance-gate):

  1. Initialize New Project — fails with File '/app/src/cleveragents/_pre_commit_tests/__init__.py' does not exist
  2. Add Files To Context1 != 0 (non-zero exit code)
  3. Create Plan With Tell1 != 0
  4. Build Plan1 != 0
  5. Apply Plan Changes1 != 0
  6. Create New Empty Plan1 != 0
  7. Show Current Plan1 != 0
  8. Test Context List Files1.0 != 0.0

Tests 2-8 likely cascade from test 1 failing (the init test sets up the project directory used by subsequent tests).

Root Cause

The _pre_commit_tests package (src/cleveragents/_pre_commit_tests/__init__.py) does not exist in the repository. The Initialize New Project test invokes cleveragents init which appears to reference or validate this file.

Expected Behavior

All 8 tests should pass. Either the _pre_commit_tests package needs to be created, or the reference to it needs to be removed/updated.

Files

  • robot/cli_plan_context_commands.robot — Failing test suite
  • src/cleveragents/_pre_commit_tests/ — Missing directory
## Background Discovered during #495 (M4 acceptance gate). Parent Epic: #401. ## Problem 8 tests in `robot/cli_plan_context_commands.robot` fail on master (verified file is identical on master and `test/m4-acceptance-gate`): 1. `Initialize New Project` — fails with `File '/app/src/cleveragents/_pre_commit_tests/__init__.py' does not exist` 2. `Add Files To Context` — `1 != 0` (non-zero exit code) 3. `Create Plan With Tell` — `1 != 0` 4. `Build Plan` — `1 != 0` 5. `Apply Plan Changes` — `1 != 0` 6. `Create New Empty Plan` — `1 != 0` 7. `Show Current Plan` — `1 != 0` 8. `Test Context List Files` — `1.0 != 0.0` Tests 2-8 likely cascade from test 1 failing (the init test sets up the project directory used by subsequent tests). ## Root Cause The `_pre_commit_tests` package (`src/cleveragents/_pre_commit_tests/__init__.py`) does not exist in the repository. The `Initialize New Project` test invokes `cleveragents init` which appears to reference or validate this file. ## Expected Behavior All 8 tests should pass. Either the `_pre_commit_tests` package needs to be created, or the reference to it needs to be removed/updated. ## Files - `robot/cli_plan_context_commands.robot` — Failing test suite - `src/cleveragents/_pre_commit_tests/` — Missing directory
hurui200320 2026-03-05 11:19:46 +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#601
No description provided.