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

[ft] Add continue unit test generation workflow #2023

Merged
merged 37 commits into from
Mar 20, 2025

Conversation

rohitvinnakota-codecov
Copy link
Member

@rohitvinnakota-codecov rohitvinnakota-codecov commented Feb 27, 2025

This change lays out the groundwork for running unit tests against code coverage and test analytics metrics to generate better tests for a given PR. The retry unit tests endpoint will be invoked from Codecov's Shelter service

This change also adds a DbPrContextToUnitTestGenerationRunIdMapping table that will store information(owner, repo, etc) + agent context about past runs, which will be leveraged as a memory store for subsequent unit test runs.

Some other updates:

  • Fix for an issue where a generated tests PR is based off of the main branch. It should be built on top of the feature branch tests are being requested on
  • Update Claude version
  • Add logic that lets the codecov-ai GH app post updates instead of autofix under certain conditions

@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch 3 times, most recently from 135a073 to 9a0cc60 Compare March 3, 2025 19:09
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from f8437cd to e672c0f Compare March 3, 2025 19:10
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from f862d53 to fd7cea0 Compare March 3, 2025 19:13
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 010af4e to 21de77f Compare March 3, 2025 23:19
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 5d14b59 to 7796fee Compare March 3, 2025 23:29
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 78e8f0a to 3e24d94 Compare March 3, 2025 23:32
@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [WIP] Add continue unit test generation workflow [Part 1] Add continue unit test generation workflow Mar 3, 2025
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 14278a8 to dcf71f5 Compare March 3, 2025 23:44
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 4637f2c to 0a3f868 Compare March 4, 2025 13:53
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 247a30b to ee46e5d Compare March 4, 2025 15:01
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from c11a8a7 to fa84677 Compare March 4, 2025 15:16
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 7d36e17 to 0d673ad Compare March 5, 2025 21:56
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 6d4f154 to 687dd9b Compare March 6, 2025 15:10
@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [Part 1] Add continue unit test generation workflow [ft] Add continue unit test generation workflow Mar 6, 2025
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 256a021 to 464fd0a Compare March 6, 2025 15:22
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 015d47a to 11d0796 Compare March 17, 2025 23:30
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from e294386 to ea51f91 Compare March 18, 2025 00:01
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 4e9a919 to 60d9d59 Compare March 18, 2025 13:40
@rohitvinnakota-codecov rohitvinnakota-codecov marked this pull request as ready for review March 18, 2025 20:08
@rohitvinnakota-codecov rohitvinnakota-codecov requested a review from a team as a code owner March 18, 2025 20:08
Copy link
Member

@roaga roaga left a comment

Choose a reason for hiding this comment

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

Could you also add some more tests since this is a big PR? We're trying to keep code coverage up in Seer

@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch 3 times, most recently from 8d01e3b to 74fcd20 Compare March 19, 2025 20:12
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from f78f493 to 6dfe889 Compare March 20, 2025 13:49
@rohitvinnakota-codecov rohitvinnakota-codecov force-pushed the rvinnakota-continue-unit-tests branch from 3fa11ee to 8388c6a Compare March 20, 2025 15:09
@rohitvinnakota-codecov rohitvinnakota-codecov merged commit 7d2006f into main Mar 20, 2025
24 of 25 checks passed
@rohitvinnakota-codecov rohitvinnakota-codecov deleted the rvinnakota-continue-unit-tests branch March 20, 2025 17:05
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.

3 participants