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

Use bot logic from shared + eliminate worker one #555

Merged
merged 5 commits into from
Jul 18, 2024

Conversation

adrian-codecov
Copy link
Contributor

We recently moved some logic from worker to shared and we're now using the shared version, see here codecov/shared#277. This is still missing on the latest shared version to be approved, see here codecov/shared#277

This PR:

  • replaces imports for shared functionality
  • deletes preexisting logic (all now moved to shared)
  • adjusts tests that mock said paths

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@adrian-codecov adrian-codecov marked this pull request as ready for review July 10, 2024 23:15
@codecov-qa
Copy link

codecov-qa bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.49%. Comparing base (4e85d90) to head (cb35ace).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   97.52%   97.49%   -0.03%     
==========================================
  Files         425      414      -11     
  Lines       35506    34980     -526     
==========================================
- Hits        34626    34103     -523     
+ Misses        880      877       -3     
Flag Coverage Δ
integration 97.49% <100.00%> (-0.03%) ⬇️
latest-uploader-overall 97.49% <100.00%> (-0.03%) ⬇️
unit 97.49% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.53% <100.00%> (-0.07%) ⬇️
OutsideTasks 97.70% <100.00%> (-0.05%) ⬇️
Files Coverage Δ
services/notification/notifiers/tests/conftest.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/owner.py 100.00% <100.00%> (ø)
services/repository.py 96.34% <100.00%> (ø)
services/tests/test_ai_pr_review.py 100.00% <100.00%> (ø)
services/tests/test_owner_service.py 100.00% <ø> (ø)
services/tests/test_repository_service.py 99.77% <ø> (ø)
services/tests/unit/test_bots.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_sync_repos_task.py 99.70% <ø> (ø)

... and 3 files with indirect coverage changes

Copy link

codecov-public-qa bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.49%. Comparing base (4e85d90) to head (cb35ace).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   97.52%   97.49%   -0.03%     
==========================================
  Files         425      414      -11     
  Lines       35506    34980     -526     
==========================================
- Hits        34626    34103     -523     
+ Misses        880      877       -3     
Flag Coverage Δ
integration 97.49% <100.00%> (-0.03%) ⬇️
latest-uploader-overall 97.49% <100.00%> (-0.03%) ⬇️
unit 97.49% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.53% <100.00%> (-0.07%) ⬇️
OutsideTasks 97.70% <100.00%> (-0.05%) ⬇️
Files Coverage Δ
services/notification/notifiers/tests/conftest.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/owner.py 100.00% <100.00%> (ø)
services/repository.py 96.34% <100.00%> (ø)
services/tests/test_ai_pr_review.py 100.00% <100.00%> (ø)
services/tests/test_owner_service.py 100.00% <ø> (ø)
services/tests/test_repository_service.py 99.77% <ø> (ø)
services/tests/unit/test_bots.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_sync_repos_task.py 99.70% <ø> (ø)

... and 3 files with indirect coverage changes

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.54%. Comparing base (4e85d90) to head (cb35ace).

Changes have been made to critical files, which contain lines commonly executed in production. Learn more

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   97.55%   97.54%   -0.02%     
==========================================
  Files         458      449       -9     
  Lines       36578    36186     -392     
==========================================
- Hits        35684    35297     -387     
+ Misses        894      889       -5     
Flag Coverage Δ
integration 97.49% <100.00%> (-0.03%) ⬇️
latest-uploader-overall 97.49% <100.00%> (-0.03%) ⬇️
unit 97.49% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.63% <100.00%> (-0.06%) ⬇️
OutsideTasks 97.70% <100.00%> (-0.05%) ⬇️
Files Coverage Δ
services/notification/notifiers/tests/conftest.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/owner.py 100.00% <100.00%> (ø)
services/repository.py Critical 96.34% <100.00%> (ø)
services/tests/test_ai_pr_review.py 100.00% <100.00%> (ø)
services/tests/test_owner_service.py 100.00% <ø> (ø)
services/tests/test_repository_service.py 99.77% <ø> (ø)
services/tests/unit/test_bots.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_sync_repos_task.py 99.70% <ø> (ø)

... and 1 file with indirect coverage changes

This change has been scanned for critical changes. Learn more

@codecov-notifications
Copy link

codecov-notifications bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   97.52%   97.49%   -0.03%     
==========================================
  Files         425      414      -11     
  Lines       35506    34980     -526     
==========================================
- Hits        34626    34103     -523     
+ Misses        880      877       -3     
Flag Coverage Δ
integration 97.49% <100.00%> (-0.03%) ⬇️
latest-uploader-overall 97.49% <100.00%> (-0.03%) ⬇️
unit 97.49% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.53% <100.00%> (-0.07%) ⬇️
OutsideTasks 97.70% <100.00%> (-0.05%) ⬇️
Files Coverage Δ
services/notification/notifiers/tests/conftest.py 100.00% <ø> (ø)
.../notification/notifiers/tests/unit/test_comment.py 100.00% <ø> (ø)
services/owner.py 100.00% <100.00%> (ø)
services/repository.py 96.34% <100.00%> (ø)
services/tests/test_ai_pr_review.py 100.00% <100.00%> (ø)
services/tests/test_owner_service.py 100.00% <ø> (ø)
services/tests/test_repository_service.py 99.77% <ø> (ø)
services/tests/unit/test_bots.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_sync_repos_task.py 99.70% <ø> (ø)

... and 3 files with indirect coverage changes

@adrian-codecov adrian-codecov added this pull request to the merge queue Jul 18, 2024
Merged via the queue into main with commit 3cf5a1d Jul 18, 2024
17 of 30 checks passed
@adrian-codecov adrian-codecov deleted the 1969-v2-add-bots-code-from-shared branch July 18, 2024 16:03
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.

2 participants