test(e2e): add M4 correction + subplan suites #187

Closed
opened 2026-02-22 23:39:57 +00:00 by freemo · 3 comments
Owner

Metadata

  • Commit Message: test(e2e): add M4 correction + subplan suites
  • Branch: feature/m4-correction-subplan-smoke

Background

E2E fixtures cover correction flows, subplan execution, and conflict simulations. The suite exercises corrections (revert/append), subplan scheduling, and merge conflict handling in integrated scenarios.

Acceptance Criteria

  • Add fixtures for correction flows, subplan execution, and conflict simulations.
  • Update docs/development/testing.md with M4 suite usage.

Definition of Done

This issue is complete when:

  • All subtasks below are completed and checked off.
  • A Git commit is created where the first line of the commit message matches
    the Commit Message in Metadata exactly, followed by a blank line, then
    additional lines providing relevant details about the implementation. The
    commit body should be appropriate in size for a commit message and relatively
    complete in describing what was done.
  • The commit is pushed to the remote on the branch matching the Branch in
    Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and
    merged before this issue is marked done.

Subtasks

  • Add fixtures for correction flows, subplan execution, and conflict simulations.
  • Update docs/development/testing.md with M4 suite usage.
  • Tests (Behave): Add features/m4_correction_subplan_smoke.feature covering correction flows and subplan merges.
  • Tests (Robot): Add Robot integration suite for correction + subplan CLI flows.
  • Tests (ASV): Add benchmarks/m4_smoke_bench.py for suite runtime.
  • Verify coverage >=97% via nox -s coverage_report. If coverage is <97% then review the current unit test coverage report at build/coverage.xml and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun nox -s coverage_report to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across entire code base, do not ignore any failure even if it seems unrelated to this commit, fix it.

Section: #### M4: Corrections + Subplans + Checkpoints (Day 22)
Status: Open

## Metadata - **Commit Message**: `test(e2e): add M4 correction + subplan suites` - **Branch**: `feature/m4-correction-subplan-smoke` ## Background E2E fixtures cover correction flows, subplan execution, and conflict simulations. The suite exercises corrections (revert/append), subplan scheduling, and merge conflict handling in integrated scenarios. ## Acceptance Criteria - [ ] Add fixtures for correction flows, subplan execution, and conflict simulations. - [ ] Update `docs/development/testing.md` with M4 suite usage. ## Definition of Done This issue is complete when: - All subtasks below are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation. The commit body should be appropriate in size for a commit message and relatively complete in describing what was done. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. ## Subtasks - [ ] Add fixtures for correction flows, subplan execution, and conflict simulations. - [ ] Update `docs/development/testing.md` with M4 suite usage. - [ ] Tests (Behave): Add `features/m4_correction_subplan_smoke.feature` covering correction flows and subplan merges. - [ ] Tests (Robot): Add Robot integration suite for correction + subplan CLI flows. - [ ] Tests (ASV): Add `benchmarks/m4_smoke_bench.py` for suite runtime. - [ ] Verify coverage >=97% via `nox -s coverage_report`. If coverage is <97% then review the current unit test coverage report at `build/coverage.xml` and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun `nox -s coverage_report` to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. - [ ] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across **entire** code base, do not ignore any failure even if it seems unrelated to this commit, fix it. **Section**: #### M4: Corrections + Subplans + Checkpoints (Day 22) **Status**: Open
freemo added this to the v3.3.0 milestone 2026-02-22 23:39:57 +00:00
Author
Owner

Expected completion updated (Day 15 rebaseline): Day 33 / 2026-03-13 (previously Day 25 / 2026-03-05)

**Expected completion updated (Day 15 rebaseline):** Day 33 / 2026-03-13 (previously Day 25 / 2026-03-05)
freemo added the due date 2026-03-04 2026-02-23 18:41:38 +00:00
Member

CI fix pushed in PR #441 (commit 3c9a3ef). All five bugs in the M4 correction + subplan smoke test suite have been resolved — wrong patch targets, incorrect mock method names, invalid ULID strings, missing CLI flags, and wrong feature-file assertions. All nox stages (lint, typecheck, unit_tests, integration_tests, coverage_report at 97.1%) pass locally.

CI fix pushed in PR #441 (commit `3c9a3ef`). All five bugs in the M4 correction + subplan smoke test suite have been resolved — wrong patch targets, incorrect mock method names, invalid ULID strings, missing CLI flags, and wrong feature-file assertions. All nox stages (lint, typecheck, unit_tests, integration_tests, coverage_report at 97.1%) pass locally.
Author
Owner

Closing: M4 correction + subplan E2E suites merged via Brent QA batch PR #442 on 2026-02-26.

Closing: M4 correction + subplan E2E suites merged via Brent QA batch PR #442 on 2026-02-26.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

2026-03-04

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