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

repository secret was being saved to repo when the update failed #557

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

nora-codecov
Copy link
Contributor

fixes an issue from #521

Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.53%. Comparing base (a9332e2) to head (843c764).
Report is 1 commits behind head on main.

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     #557   +/-   ##
=======================================
  Coverage   97.53%   97.53%           
=======================================
  Files         451      451           
  Lines       36111    36129   +18     
=======================================
+ Hits        35221    35239   +18     
  Misses        890      890           
Flag Coverage Δ
integration 97.51% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.51% <100.00%> (+<0.01%) ⬆️
unit 97.51% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.63% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_task.py 99.56% <100.00%> (+0.01%) ⬆️
tasks/upload.py Critical 91.59% <100.00%> (+0.02%) ⬆️

This change has been scanned for critical changes. Learn more

@codecov-notifications
Copy link

codecov-notifications bot commented Jul 11, 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     #557   +/-   ##
=======================================
  Coverage   97.51%   97.51%           
=======================================
  Files         420      420           
  Lines       35389    35407   +18     
=======================================
+ Hits        34509    34527   +18     
  Misses        880      880           
Flag Coverage Δ
integration 97.51% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.51% <100.00%> (+<0.01%) ⬆️
unit 97.51% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.58% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_task.py 99.56% <100.00%> (+0.01%) ⬆️
tasks/upload.py 91.54% <100.00%> (+0.02%) ⬆️

@codecov-qa
Copy link

codecov-qa bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.51%. Comparing base (a9332e2) to head (843c764).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #557   +/-   ##
=======================================
  Coverage   97.51%   97.51%           
=======================================
  Files         420      420           
  Lines       35389    35407   +18     
=======================================
+ Hits        34509    34527   +18     
  Misses        880      880           
Flag Coverage Δ
integration 97.51% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.51% <100.00%> (+<0.01%) ⬆️
unit 97.51% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.58% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_task.py 99.56% <100.00%> (+0.01%) ⬆️
tasks/upload.py 91.54% <100.00%> (+0.02%) ⬆️

Copy link

codecov-public-qa bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.51%. Comparing base (a9332e2) to head (843c764).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #557   +/-   ##
=======================================
  Coverage   97.51%   97.51%           
=======================================
  Files         420      420           
  Lines       35389    35407   +18     
=======================================
+ Hits        34509    34527   +18     
  Misses        880      880           
Flag Coverage Δ
integration 97.51% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.51% <100.00%> (+<0.01%) ⬆️
unit 97.51% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.58% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.74% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_upload_task.py 99.56% <100.00%> (+0.01%) ⬆️
tasks/upload.py 91.54% <100.00%> (+0.02%) ⬆️

@@ -991,13 +991,15 @@ def possibly_setup_webhooks(self, commit, repository_service):
)
repository.hookid = hookid
repo_data["repo"]["hookid"] = hookid
repository.webhook_secret = webhook_secret
Copy link
Contributor

Choose a reason for hiding this comment

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

So we save the webhook if should_post_webhook or before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, only add the webhook_secret to the repository if the create_webhook or webhook_update update goes through without error

@nora-codecov nora-codecov added this pull request to the merge queue Jul 15, 2024
Merged via the queue into main with commit 7a265f3 Jul 15, 2024
29 of 30 checks passed
@nora-codecov nora-codecov deleted the nora/366 branch July 15, 2024 18:00
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