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

hotfix: avoid double inserts when sync_repos #412

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

giovanni-guidini
Copy link
Contributor

Sync_repos when the repos affected are knows is acting up.
Unsure if it's the filtering logic OR a race condition OR if something else
is inserting the repo.

We will be moving to upsert_repo to avoid this issue.

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.

Sync_repos when the repos affected are knows is acting up.
Unsure if it's the filtering logic OR a race condition OR if something else
is inserting the repo.

We will be moving to `upsert_repo` to avoid this issue.
@giovanni-guidini giovanni-guidini requested a review from a team April 24, 2024 21:11
@codecov-notifications
Copy link

codecov-notifications bot commented Apr 24, 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     #412      +/-   ##
==========================================
- Coverage   97.48%   97.48%   -0.01%     
==========================================
  Files         395      395              
  Lines       33378    33376       -2     
==========================================
- Hits        32538    32536       -2     
  Misses        840      840              
Flag Coverage Δ
integration 97.48% <100.00%> (-0.01%) ⬇️
latest-uploader-overall 97.48% <100.00%> (-0.01%) ⬇️
unit 97.48% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 94.84% <100.00%> (-0.01%) ⬇️
OutsideTasks 97.58% <ø> (ø)
Files Coverage Δ
tasks/sync_repos.py 97.24% <100.00%> (-0.03%) ⬇️

@codecov-qa
Copy link

codecov-qa bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.48%. Comparing base (78b8c10) to head (4f8fdbd).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
- Coverage   97.48%   97.48%   -0.01%     
==========================================
  Files         395      395              
  Lines       33378    33376       -2     
==========================================
- Hits        32538    32536       -2     
  Misses        840      840              
Flag Coverage Δ
integration 97.48% <100.00%> (-0.01%) ⬇️
latest-uploader-overall 97.48% <100.00%> (-0.01%) ⬇️
unit 97.48% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 94.84% <100.00%> (-0.01%) ⬇️
OutsideTasks 97.58% <ø> (ø)
Files Coverage Δ
tasks/sync_repos.py 97.24% <100.00%> (-0.03%) ⬇️

Copy link

codecov-public-qa bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.48%. Comparing base (78b8c10) to head (4f8fdbd).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
- Coverage   97.48%   97.48%   -0.01%     
==========================================
  Files         395      395              
  Lines       33378    33376       -2     
==========================================
- Hits        32538    32536       -2     
  Misses        840      840              
Flag Coverage Δ
integration 97.48% <100.00%> (-0.01%) ⬇️
latest-uploader-overall 97.48% <100.00%> (-0.01%) ⬇️
unit 97.48% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
NonTestCode 94.84% <100.00%> (-0.01%) ⬇️
OutsideTasks 97.58% <ø> (ø)
Files Coverage Δ
tasks/sync_repos.py 97.24% <100.00%> (-0.03%) ⬇️

@giovanni-guidini giovanni-guidini added this pull request to the merge queue Apr 24, 2024
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.50%. Comparing base (78b8c10) to head (4f8fdbd).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
- Coverage   97.50%   97.50%   -0.01%     
==========================================
  Files         426      426              
  Lines       34069    34067       -2     
==========================================
- Hits        33220    33218       -2     
  Misses        849      849              
Flag Coverage Δ
integration 97.48% <100.00%> (-0.01%) ⬇️
latest-uploader-overall 97.48% <100.00%> (-0.01%) ⬇️
unit 97.48% <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.01%) ⬇️
OutsideTasks 97.58% <ø> (ø)
Files Coverage Δ
tasks/sync_repos.py 97.26% <100.00%> (-0.03%) ⬇️
Related Entrypoints
run/app.tasks.sync_repos.SyncRepos

Merged via the queue into main with commit bcec347 Apr 24, 2024
30 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/hotfix-double-insert-repo branch April 24, 2024 21:22
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

3 participants