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

WIP #549

Closed
wants to merge 1 commit into from
Closed

WIP #549

wants to merge 1 commit into from

Conversation

adrian-codecov
Copy link
Contributor

This PR is to import token/bot logic from shared and replace its previous implementation in worker. This is WIP as of July 8th

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.

@@ -88,6 +88,13 @@ def db(engine, sqlalchemy_connect_url):
Base.metadata.create_all(engine)


@pytest.fixture(scope="session")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixture to avoid django trying to recreate a DB and instead pointing to the preexisting DB

@@ -105,6 +111,31 @@ class Owner(CodecovBaseModel):
passive_deletes=True,
)

business_email = Column(types.Text, server_default=FetchedValue())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missing fields from SQLAlchemy model compared to it's Django counterpart

@codecov-qa
Copy link

codecov-qa bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.86%. Comparing base (7691f5a) to head (cb16636).
Report is 3 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (7691f5a) and HEAD (cb16636). Click for more details.

HEAD has 4 uploads less than BASE
Flag BASE (7691f5a) HEAD (cb16636)
latest-uploader-overall 2 1
unit 2 1
integration 2 0

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #549       +/-   ##
===========================================
- Coverage   97.51%   85.86%   -11.65%     
===========================================
  Files         420      420               
  Lines       35432    35437        +5     
===========================================
- Hits        34550    30428     -4122     
- Misses        882     5009     +4127     
Flag Coverage Δ
integration ?
latest-uploader-overall 85.86% <100.00%> (-11.65%) ⬇️
unit 85.86% <100.00%> (-11.65%) ⬇️

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

Components Coverage Δ
NonTestCode 84.31% <100.00%> (-10.28%) ⬇️
OutsideTasks 90.79% <100.00%> (-6.95%) ⬇️
Files Coverage Δ
conftest.py 89.02% <100.00%> (-5.98%) ⬇️
database/models/core.py 96.71% <100.00%> (-0.72%) ⬇️
services/owner.py 100.00% <100.00%> (ø)
services/repository.py 89.49% <100.00%> (-6.85%) ⬇️
tasks/tests/unit/test_sync_repos_task.py 89.62% <100.00%> (-9.80%) ⬇️

... and 103 files with indirect coverage changes

Copy link

codecov-public-qa bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.86%. Comparing base (7691f5a) to head (cb16636).
Report is 3 commits behind head on main.

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #549       +/-   ##
===========================================
- Coverage   97.51%   85.86%   -11.65%     
===========================================
  Files         420      420               
  Lines       35432    35437        +5     
===========================================
- Hits        34550    30428     -4122     
- Misses        882     5009     +4127     
Flag Coverage Δ
integration 85.86% <100.00%> (-11.65%) ⬇️
latest-uploader-overall 85.86% <100.00%> (-11.65%) ⬇️
unit 85.86% <100.00%> (-11.65%) ⬇️

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

Components Coverage Δ
NonTestCode 84.31% <100.00%> (-10.28%) ⬇️
OutsideTasks 90.79% <100.00%> (-6.95%) ⬇️
Files Coverage Δ
conftest.py 89.02% <100.00%> (-5.98%) ⬇️
database/models/core.py 96.71% <100.00%> (-0.72%) ⬇️
services/owner.py 100.00% <100.00%> (ø)
services/repository.py 89.49% <100.00%> (-6.85%) ⬇️
tasks/tests/unit/test_sync_repos_task.py 89.62% <100.00%> (-9.80%) ⬇️

... and 103 files with indirect coverage changes

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.45%. Comparing base (7691f5a) to head (cb16636).
Report is 3 commits behind head on main.

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

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #549      +/-   ##
==========================================
- Coverage   97.53%   94.45%   -3.08%     
==========================================
  Files         451      451              
  Lines       36155    36489     +334     
==========================================
- Hits        35263    34466     -797     
- Misses        892     2023    +1131     
Flag Coverage Δ
integration 85.86% <100.00%> (-11.65%) ⬇️
latest-uploader-overall 85.86% <100.00%> (-11.65%) ⬇️
unit 85.86% <100.00%> (-11.65%) ⬇️

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

Components Coverage Δ
NonTestCode 91.70% <100.00%> (-2.93%) ⬇️
OutsideTasks 90.79% <100.00%> (-6.95%) ⬇️
Files Coverage Δ
conftest.py 95.12% <100.00%> (+0.12%) ⬆️
database/models/core.py 97.61% <100.00%> (+0.17%) ⬆️
services/owner.py 100.00% <100.00%> (ø)
services/repository.py Critical 94.52% <100.00%> (-1.83%) ⬇️
tasks/tests/unit/test_sync_repos_task.py 95.38% <100.00%> (-4.03%) ⬇️

... and 64 files with indirect coverage changes

This change has been scanned for critical changes. Learn more

@adrian-codecov
Copy link
Contributor Author

Closing in favor of new 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.

None yet

1 participant