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

feat: add task gh_app_name override for more tasks #436

Merged
merged 2 commits into from
May 7, 2024

Conversation

giovanni-guidini
Copy link
Contributor

@giovanni-guidini giovanni-guidini commented May 7, 2024

This adds ability for more tasks to use the existing configuration options and
provide overrides for the GitHubAppInstallation name to be used for a given user.

Some of these usages have to be propagated through the task, as is the case with
ComputeComparison, for example.

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.

@codecov-qa
Copy link

codecov-qa bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 97.01493% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 97.34%. Comparing base (c398e4b) to head (cc255a5).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #436   +/-   ##
=======================================
  Coverage   97.34%   97.34%           
=======================================
  Files         399      399           
  Lines       33732    33758   +26     
=======================================
+ Hits        32836    32862   +26     
  Misses        896      896           
Flag Coverage Δ
integration 97.34% <97.01%> (+<0.01%) ⬆️
latest-uploader-overall 97.34% <97.01%> (+<0.01%) ⬆️
unit 97.34% <97.01%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.58% <98.18%> (+0.01%) ⬆️
OutsideTasks 97.49% <92.59%> (+<0.01%) ⬆️
Files Coverage Δ
helpers/github_installation.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 97.00% <100.00%> (+0.02%) ⬆️
services/comparison/__init__.py 96.79% <100.00%> (+0.01%) ⬆️
services/comparison/overlays/__init__.py 100.00% <ø> (ø)
services/comparison/overlays/critical_path.py 100.00% <100.00%> (ø)
...cation/notifiers/tests/integration/test_comment.py 93.03% <100.00%> (ø)
tasks/bundle_analysis_notify.py 92.85% <100.00%> (+0.35%) ⬆️
tasks/commit_update.py 100.00% <100.00%> (ø)
tasks/compute_comparison.py 100.00% <100.00%> (ø)
tasks/notify.py 98.55% <100.00%> (ø)
... and 9 more

Copy link

codecov-public-qa bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 97.01493% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 97.34%. Comparing base (c398e4b) to head (cc255a5).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #436   +/-   ##
=======================================
  Coverage   97.34%   97.34%           
=======================================
  Files         399      399           
  Lines       33732    33758   +26     
=======================================
+ Hits        32836    32862   +26     
  Misses        896      896           
Flag Coverage Δ
integration 97.34% <97.01%> (+<0.01%) ⬆️
latest-uploader-overall 97.34% <97.01%> (+<0.01%) ⬆️
unit 97.34% <97.01%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.58% <98.18%> (+0.01%) ⬆️
OutsideTasks 97.49% <92.59%> (+<0.01%) ⬆️
Files Coverage Δ
helpers/github_installation.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 97.00% <100.00%> (+0.02%) ⬆️
services/comparison/__init__.py 96.79% <100.00%> (+0.01%) ⬆️
services/comparison/overlays/__init__.py 100.00% <ø> (ø)
services/comparison/overlays/critical_path.py 100.00% <100.00%> (ø)
...cation/notifiers/tests/integration/test_comment.py 93.03% <100.00%> (ø)
tasks/bundle_analysis_notify.py 92.85% <100.00%> (+0.35%) ⬆️
tasks/commit_update.py 100.00% <100.00%> (ø)
tasks/compute_comparison.py 100.00% <100.00%> (ø)
tasks/notify.py 98.55% <100.00%> (ø)
... and 9 more

Copy link

codecov bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 97.01493% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 97.37%. Comparing base (c398e4b) to head (cc255a5).

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     #436   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files         430      430           
  Lines       34423    34449   +26     
=======================================
+ Hits        33518    33544   +26     
  Misses        905      905           
Flag Coverage Δ
integration 97.34% <97.01%> (+<0.01%) ⬆️
latest-uploader-overall 97.34% <97.01%> (+<0.01%) ⬆️
unit 97.34% <97.01%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.60% <98.18%> (+0.01%) ⬆️
OutsideTasks 97.49% <92.59%> (+<0.01%) ⬆️
Files Coverage Δ
helpers/github_installation.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 97.00% <100.00%> (+0.02%) ⬆️
services/comparison/__init__.py 96.80% <100.00%> (+0.01%) ⬆️
services/comparison/overlays/__init__.py 100.00% <ø> (ø)
services/comparison/overlays/critical_path.py 100.00% <100.00%> (ø)
...cation/notifiers/tests/integration/test_comment.py 93.03% <100.00%> (ø)
tasks/bundle_analysis_notify.py 92.85% <100.00%> (+0.35%) ⬆️
tasks/commit_update.py 100.00% <100.00%> (ø)
tasks/compute_comparison.py 100.00% <100.00%> (ø)
tasks/notify.py Critical 98.55% <100.00%> (ø)
... and 9 more
Related Entrypoints
run/app.tasks.upload.Upload
run/app.tasks.notify.Notify
run/app.tasks.pulls.Sync
run/app.tasks.compute_comparison.ComputeComparison
run/app.tasks.upload.UploadFinisher
run/app.tasks.upload.UploadProcessor
run/app.tasks.commit_update.CommitUpdate
run/app.tasks.upload.PreProcessUpload
run/app.tasks.bundle_analysis.BundleAnalysisNotify
run/app.tasks.sync_repo_languages.SyncLanguages

This adds ability for more tasks to use the existing configuration options and
provide overrides for the GitHubAppInstallation name to be used for a given user.

Some of these usages have to be propagated through the task, as is the case with
ComputeComparison, for example.

:warning: These are not all instances, but most of them. Still working on others.
@giovanni-guidini giovanni-guidini force-pushed the gio/more-tasks-with-dedicated-apps branch from 5b1ca4c to 3e67a19 Compare May 7, 2024 09:51
This is actually only relevant when we are creating a new report,
with carryforward. So should affect mostly `Upload` and `PreProcessUpload` tasks.

In any case I've added to some tasks that make intense use of reports.
@giovanni-guidini giovanni-guidini force-pushed the gio/more-tasks-with-dedicated-apps branch from 2d1125e to cc255a5 Compare May 7, 2024 10:05
@giovanni-guidini giovanni-guidini requested a review from a team May 7, 2024 10:23
@giovanni-guidini giovanni-guidini added this pull request to the merge queue May 7, 2024
Merged via the queue into main with commit 9a02734 May 7, 2024
22 of 25 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/more-tasks-with-dedicated-apps branch May 7, 2024 12:52
Copy link

sentry-io bot commented May 8, 2024

Suspect Issues

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

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