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

Move fetch_commit_yaml_and_possibly_store to services.repository #604

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

Swatinem
Copy link
Contributor

@Swatinem Swatinem commented Aug 9, 2024

This function was copy-pasted across two different classes although it was not depending on any self class members.

The function is deduplicated and moved to a different place, along with its tests.


This PR was extracted from #592, as its a simple standalone change.

@Swatinem Swatinem requested a review from a team August 9, 2024 10:06
@Swatinem Swatinem self-assigned this Aug 9, 2024
@codecov-qa
Copy link

codecov-qa bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.59%. Comparing base (ebfe076) to head (50e17c7).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
+ Coverage   97.57%   97.59%   +0.01%     
==========================================
  Files         431      431              
  Lines       36093    36073      -20     
==========================================
- Hits        35219    35205      -14     
+ Misses        874      868       -6     
Flag Coverage Δ
integration 97.59% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 97.59% <100.00%> (+0.01%) ⬆️
unit 97.59% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.78% <100.00%> (+0.03%) ⬆️
OutsideTasks 97.82% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/repository.py 96.69% <100.00%> (+0.34%) ⬆️
services/tests/test_repository_service.py 99.78% <100.00%> (+0.01%) ⬆️
tasks/preprocess_upload.py 100.00% <100.00%> (+8.75%) ⬆️
tasks/tests/unit/test_preprocess_upload.py 97.77% <ø> (ø)
tasks/tests/unit/test_upload_task.py 99.52% <100.00%> (-0.04%) ⬇️
tasks/upload.py 91.09% <100.00%> (-0.46%) ⬇️

... and 1 file with indirect coverage changes

@codecov-notifications
Copy link

codecov-notifications bot commented Aug 9, 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     #604      +/-   ##
==========================================
+ Coverage   97.57%   97.59%   +0.01%     
==========================================
  Files         431      431              
  Lines       36093    36073      -20     
==========================================
- Hits        35219    35205      -14     
+ Misses        874      868       -6     
Flag Coverage Δ
integration 97.59% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 97.59% <100.00%> (+0.01%) ⬆️
unit 97.59% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.78% <100.00%> (+0.03%) ⬆️
OutsideTasks 97.82% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/repository.py 96.69% <100.00%> (+0.34%) ⬆️
services/tests/test_repository_service.py 99.78% <100.00%> (+0.01%) ⬆️
tasks/preprocess_upload.py 100.00% <100.00%> (+8.75%) ⬆️
tasks/tests/unit/test_preprocess_upload.py 97.77% <ø> (ø)
tasks/tests/unit/test_upload_task.py 99.52% <100.00%> (-0.04%) ⬇️
tasks/upload.py 91.09% <100.00%> (-0.46%) ⬇️

... and 1 file with indirect coverage changes

Copy link

codecov-public-qa bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.59%. Comparing base (ebfe076) to head (50e17c7).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
+ Coverage   97.57%   97.59%   +0.01%     
==========================================
  Files         431      431              
  Lines       36093    36073      -20     
==========================================
- Hits        35219    35205      -14     
+ Misses        874      868       -6     
Flag Coverage Δ
integration 97.59% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 97.59% <100.00%> (+0.01%) ⬆️
unit 97.59% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.78% <100.00%> (+0.03%) ⬆️
OutsideTasks 97.82% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/repository.py 96.69% <100.00%> (+0.34%) ⬆️
services/tests/test_repository_service.py 99.78% <100.00%> (+0.01%) ⬆️
tasks/preprocess_upload.py 100.00% <100.00%> (+8.75%) ⬆️
tasks/tests/unit/test_preprocess_upload.py 97.77% <ø> (ø)
tasks/tests/unit/test_upload_task.py 99.52% <100.00%> (-0.04%) ⬇️
tasks/upload.py 91.09% <100.00%> (-0.46%) ⬇️

... and 1 file with indirect coverage changes

Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.63%. Comparing base (ebfe076) to head (50e17c7).

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     #604      +/-   ##
==========================================
+ Coverage   97.61%   97.63%   +0.01%     
==========================================
  Files         466      466              
  Lines       37299    37279      -20     
==========================================
- Hits        36411    36397      -14     
+ Misses        888      882       -6     
Flag Coverage Δ
integration 97.59% <100.00%> (+0.01%) ⬆️
latest-uploader-overall 97.59% <100.00%> (+0.01%) ⬆️
unit 97.59% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.86% <100.00%> (+0.03%) ⬆️
OutsideTasks 97.82% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/repository.py Critical 96.69% <100.00%> (+0.34%) ⬆️
services/tests/test_repository_service.py 99.78% <100.00%> (+0.01%) ⬆️
tasks/preprocess_upload.py 100.00% <100.00%> (+8.64%) ⬆️
tasks/tests/unit/test_preprocess_upload.py 97.77% <ø> (ø)
tasks/tests/unit/test_upload_task.py 99.52% <100.00%> (-0.04%) ⬇️
tasks/upload.py Critical 91.15% <100.00%> (-0.45%) ⬇️

... and 1 file with indirect coverage changes

Related Entrypoints
run/app.tasks.upload.Upload
run/app.tasks.upload.PreProcessUpload

@Swatinem Swatinem added this pull request to the merge queue Aug 9, 2024
Merged via the queue into main with commit bc5e098 Aug 9, 2024
25 of 26 checks passed
@Swatinem Swatinem deleted the swatinem/mv-commityaml branch August 9, 2024 11:03
Copy link

sentry-io bot commented Aug 16, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TorngitServer5xxCodeError: Github is having 5xx issues app.tasks.upload.Upload View Issue

Did you find this useful? React with a 👍 or 👎

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