Skip to content

Add PCW validation in CharactersLogger tests #7879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

akalia25
Copy link
Contributor

@akalia25 akalia25 commented May 7, 2025

This PR adds PCW (Percentage of Code Written by Cody) tests for CharactersLogger. More info on PCW metric herehttps://sourcegraph.com/docs/analytics/pcw

  • Creates three focused test cases:
    • Base PCW calculation when both human and Cody contribute code
    • PCW updates when human deletes Cody-generated code
    • PCW updates when Cody deletes its own code

Test plan

Existing tests pass + all new test scenarios have been verified to pass with correct PCW calculations.

@akalia25 akalia25 marked this pull request as ready for review May 7, 2025 18:24
@akalia25 akalia25 changed the title Improve CharactersLogger tests for PCW calculation Add CharactersLogger tests for PCW calculation May 7, 2025
@akalia25 akalia25 changed the title Add CharactersLogger tests for PCW calculation Add PCW validation in CharactersLogger tests May 7, 2025
@akalia25
Copy link
Contributor Author

@hitesh-1997 / @valerybugakov, any chance I could get a review or suggestions on how I could make this PCW test better? 🙏 Thanks!

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