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

fix: mark commits coming from forks in branch #217

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

giovanni-guidini
Copy link
Contributor

Changes the branch name of a commit that is part of a PR from a fork.
This prevents branch collision issues where the coverage from a branch
in the target repo is overwritten by an upload coming from a fork.

The CLI has logic to add the branch, the API as well, but those are
ignored when uploading the commit info from provider.
Might as well build the logic here instead of trsuting CLI and API.

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.

Changes the branch name of a commit that is part of a PR from a fork.
This prevents branch collision issues where the coverage from a branch
in the target repo is overwritten by an upload coming from a fork.

The CLI has logic to add the branch, the API as well, but those are
ignored when uploading the commit info from provider.
Might as well build the logic here instead of trsuting CLI and API.
@codecov-qa
Copy link

codecov-qa bot commented Dec 15, 2023

Codecov Report

Merging #217 (dbc3ba8) into main (3ac42c3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   98.23%   98.24%           
=======================================
  Files         362      362           
  Lines       29141    29168   +27     
=======================================
+ Hits        28628    28655   +27     
  Misses        513      513           
Flag Coverage Δ
integration 98.24% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.24% <100.00%> (+<0.01%) ⬆️
unit 98.24% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.47% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.97% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/repository.py 96.01% <100.00%> (+0.06%) ⬆️
services/tests/test_repository_service.py 99.75% <100.00%> (+<0.01%) ⬆️

Copy link

codecov-public-qa bot commented Dec 15, 2023

Codecov Report

Merging #217 (dbc3ba8) into main (3ac42c3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   98.23%   98.24%           
=======================================
  Files         362      362           
  Lines       29141    29168   +27     
=======================================
+ Hits        28628    28655   +27     
  Misses        513      513           
Flag Coverage Δ
integration 98.24% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.24% <100.00%> (+<0.01%) ⬆️
unit 98.24% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.47% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.97% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/repository.py 96.01% <100.00%> (+0.06%) ⬆️
services/tests/test_repository_service.py 99.75% <100.00%> (+<0.01%) ⬆️

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

Merging #217 (dbc3ba8) into main (3ac42c3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

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     #217   +/-   ##
=======================================
  Coverage   98.21%   98.21%           
=======================================
  Files         393      393           
  Lines       29841    29868   +27     
=======================================
+ Hits        29307    29334   +27     
  Misses        534      534           
Flag Coverage Δ
integration 98.24% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.24% <100.00%> (+<0.01%) ⬆️
unit 98.24% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.37% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.97% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/repository.py Critical 96.01% <100.00%> (+0.06%) ⬆️
services/tests/test_repository_service.py 99.75% <100.00%> (+<0.01%) ⬆️
Related Entrypoints
run/app.tasks.upload.Upload
run/app.tasks.upload.PreProcessUpload
run/app.tasks.commit_update.CommitUpdate

@giovanni-guidini giovanni-guidini merged commit 8342820 into main Dec 15, 2023
26 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/tokenless-case-branch-update branch December 15, 2023 15:58
scott-codecov added a commit that referenced this pull request Dec 15, 2023
* main:
  fix: mark commits coming from forks in branch (#217)
scott-codecov added a commit that referenced this pull request Dec 15, 2023
* main:
  fix: mark commits coming from forks in branch (#217)
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