Skip to content

process: test fidelity verification script + enforcement docs#30

Merged
patrick-chinchill merged 1 commit into
mainfrom
process/test-fidelity-enforcement
Apr 7, 2026
Merged

process: test fidelity verification script + enforcement docs#30
patrick-chinchill merged 1 commit into
mainfrom
process/test-fidelity-enforcement

Conversation

@patrick-chinchill
Copy link
Copy Markdown
Collaborator

Adds scripts/verify_test_fidelity.py. Updates CLAUDE.md and CONTRIBUTING.md with required process.

scripts/verify_test_fidelity.py enforces 1:1 test name correspondence
between TS and Python. Must be run before committing test changes.

CLAUDE.md and CONTRIBUTING.md updated with the required process.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@patrick-chinchill patrick-chinchill merged commit c7a3394 into main Apr 7, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation regarding the test translation process and includes a critical fix for merge conflict markers in src/chat_sdk/shared/mock_adapter.py. However, the PR appears to delete core test files (test_channel.py, test_chat.py, test_thread.py) without providing the corresponding replacements, which would cause a significant loss in test coverage. The merge conflict in mock_adapter.py must be resolved immediately.

Comment on lines +172 to +178
<<<<<<< Updated upstream
trigger_id: str = "",
modal: Any = None,
=======
trigger_id: str,
modal: Any,
>>>>>>> Stashed changes
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Merge conflict markers detected in the code. These must be resolved before the PR can be merged. Based on the surrounding context and the adapter protocol, the version without default values for trigger_id and modal appears to be the intended implementation.

        trigger_id: str,
        modal: Any,

Comment thread tests/test_channel.py
@@ -1,496 +0,0 @@
"""Tests for ChannelImpl.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This PR deletes several core test files (e.g., test_channel.py, test_chat.py, test_thread.py) but does not include their replacements (the faithful versions referenced in the MAPPING dict in scripts/verify_test_fidelity.py). This results in a significant loss of test coverage for the SDK's core logic. If the intention is to migrate to a new test structure, the new tests should be included in the same PR.

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.

1 participant