Skip to content
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

[draft][wip] Add codecov client #1169

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

rohitvinnakota-codecov
Copy link
Member

@rohitvinnakota-codecov rohitvinnakota-codecov commented Sep 17, 2024

This PR updates automated test generation by adding a couple of code coverage related pieces of information.

We fetch this information by querying 2 public APIs

1.) https://docs.codecov.com/reference/repos_pulls_retrieve
2.) https://docs.codecov.com/reference/repos_test_results_retrieve

These queries are defined in a new class CodecovClient, and are called in src/seer/automation/codegen/unit_test_coding_component.py so that we can add that context to the prompt.

We only send additional coverage data if they are relevant.

import requests


CODECOV_TOKEN = 'FETCH FROM ENV'
Copy link
Member Author

Choose a reason for hiding this comment

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

This will eventually be an environment variable once it's configured.

import requests


CODECOV_TOKEN = "FETCH FROM ENV"
Copy link
Member Author

Choose a reason for hiding this comment

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

This will eventually be an environment variable. For now we can use the token I provided @corps

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