Skip to content

fix: enable failure_memory tests and fix assertions (#127)#129

Closed
acailic wants to merge 1 commit into
mainfrom
fix/issue-127-failure-memory-tests
Closed

fix: enable failure_memory tests and fix assertions (#127)#129
acailic wants to merge 1 commit into
mainfrom
fix/issue-127-failure-memory-tests

Conversation

@acailic
Copy link
Copy Markdown
Owner

@acailic acailic commented Mar 31, 2026

Summary

  • Removes the pytestmark = pytest.mark.skip that was incorrectly blocking all tests in tests/test_feature_2_failure_memory.py — the feature is fully implemented in collector/failure_memory.py
  • Replaces local placeholder dataclasses (EmbeddingGenerationError, FailureSignature, SimilarFailureMatch) with real imports from collector.failure_memory, fixing isinstance assertions
  • Fixes metadata key access: add_args[1]["metadata"]add_args[1]["metadatas"][0] and update_args[1]["metadata"]update_args[1]["metadatas"][0] to match the implementation's use of the plural metadatas= kwarg

Test plan

  • All 12 previously-skipped tests now pass (python3 -m pytest -q tests/test_feature_2_failure_memory.py)
  • ruff check . passes with no errors

Closes #127

🤖 Generated with Claude Code

- Remove pytestmark skip; feature is fully implemented in collector/failure_memory.py
- Replace local placeholder classes with real imports from collector.failure_memory
- Fix metadata key: `metadata` -> `metadatas[0]` to match vector_db.add/update call signatures

Closes #127

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@acailic
Copy link
Copy Markdown
Owner Author

acailic commented Mar 31, 2026

Superseded — main deleted tests/test_feature_2_failure_memory.py in 0d4c5e3 (refactor: remove dead ranking module and unused feature tests). Also superseded by #128 which had more comprehensive fixes. Both are now obsolete.

@acailic acailic closed this Mar 31, 2026
@acailic acailic deleted the fix/issue-127-failure-memory-tests branch March 31, 2026 23:06
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.

bug: failure_memory tests incorrectly skipped; feature is implemented

1 participant