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: Configure multi apps per task per owner #279

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

giovanni-guidini
Copy link
Contributor

Allows for owners to define configuration of what app
to use for a specific task. Owners can have multiple apps
with the same name that are considered for the task,
as long as they are configured properly.

The catch here is that currently there's no way to configure
these apps unless you do it manually. We will use that for testing.

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.

@giovanni-guidini giovanni-guidini force-pushed the gio/multi-apps/task-app-name-config branch from cdbceb6 to 602dbb3 Compare February 22, 2024 21:50
Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.10%. Comparing base (a4762c4) to head (931477c).

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     #279   +/-   ##
=======================================
  Coverage   98.10%   98.10%           
=======================================
  Files         414      416    +2     
  Lines       32764    32819   +55     
=======================================
+ Hits        32142    32197   +55     
  Misses        622      622           
Flag Coverage Δ
integration 98.07% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.07% <100.00%> (+<0.01%) ⬆️
unit 98.07% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.10% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.89% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
database/models/core.py 97.40% <100.00%> (+0.09%) ⬆️
database/tests/unit/test_models.py 100.00% <100.00%> (ø)
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/bots.py Critical 100.00% <100.00%> (ø)
services/github.py 100.00% <100.00%> (ø)
services/repository.py Critical 96.17% <100.00%> (ø)
services/tests/test_bots.py 100.00% <100.00%> (ø)
tasks/notify.py Critical 98.49% <100.00%> (+0.03%) ⬆️
Related Entrypoints
run/app.tasks.notify.Notify
run/app.tasks.upload.Upload
run/app.tasks.upload.UploadProcessor
run/app.tasks.upload.PreProcessUpload
run/app.tasks.compute_comparison.ComputeComparison
run/app.tasks.commit_update.CommitUpdate
run/app.tasks.status.SetError
run/app.tasks.sync_repo_languages.SyncLanguages
run/app.tasks.pulls.Sync
run/app.tasks.test_results.TestResultsFinisherTask
run/app.tasks.sync_repos.SyncRepos
run/app.cron.daily.GitHubAppWebhooksCheckTask
run/app.tasks.sync_teams.SyncTeams
run/app.tasks.bundle_analysis.BundleAnalysisNotify
run/app.tasks.ai_pr_review.AiPrReview

@giovanni-guidini giovanni-guidini force-pushed the gio/multi-apps/task-app-name-config branch 5 times, most recently from 4926bf7 to f33fcd7 Compare February 26, 2024 17:57
@codecov-qa
Copy link

codecov-qa bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.07%. Comparing base (a4762c4) to head (931477c).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #279   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files         383      385    +2     
  Lines       32063    32118   +55     
=======================================
+ Hits        31445    31500   +55     
  Misses        618      618           
Flag Coverage Δ
integration 98.07% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.07% <100.00%> (+<0.01%) ⬆️
unit 98.07% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.16% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.89% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
database/models/core.py 97.40% <100.00%> (+0.09%) ⬆️
database/tests/unit/test_models.py 100.00% <100.00%> (ø)
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/bots.py 100.00% <100.00%> (ø)
services/github.py 100.00% <100.00%> (ø)
services/repository.py 96.17% <100.00%> (ø)
services/tests/test_bots.py 100.00% <100.00%> (ø)
tasks/notify.py 98.49% <100.00%> (+0.03%) ⬆️

Copy link

codecov-public-qa bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a4762c4) 98.07% compared to head (931477c) 98.07%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #279   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files         383      385    +2     
  Lines       32063    32118   +55     
=======================================
+ Hits        31445    31500   +55     
  Misses        618      618           
Flag Coverage Δ
integration 98.07% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.07% <100.00%> (+<0.01%) ⬆️
unit 98.07% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.16% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.89% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
database/models/core.py 97.40% <100.00%> (+0.09%) ⬆️
database/tests/unit/test_models.py 100.00% <100.00%> (ø)
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/bots.py 100.00% <100.00%> (ø)
services/github.py 100.00% <100.00%> (ø)
services/repository.py 96.17% <100.00%> (ø)
services/tests/test_bots.py 100.00% <100.00%> (ø)
tasks/notify.py 98.49% <100.00%> (+0.03%) ⬆️

Allows for owners to define configuration of what app
to use for a specific task. Owners can have multiple apps
with the same name that are considered for the task,
as long as they are configured properly.

The catch here is that currently there's no way to configure
these apps unless you do it manually. We will use that for testing.
@giovanni-guidini giovanni-guidini force-pushed the gio/multi-apps/task-app-name-config branch from f33fcd7 to 340e32f Compare February 26, 2024 20:33
@codecov-staging
Copy link

codecov-staging bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #279   +/-   ##
=======================================
  Coverage        ?   98.14%           
=======================================
  Files           ?      385           
  Lines           ?    32100           
  Branches        ?        0           
=======================================
  Hits            ?    31504           
  Misses          ?      596           
  Partials        ?        0           
Flag Coverage Δ
integration 98.14% <100.00%> (?)
latest-uploader-overall 98.14% <100.00%> (?)
unit 98.14% <100.00%> (?)

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

Components Coverage Δ
NonTestCode 96.22% <100.00%> (?)
OutsideTasks 97.91% <100.00%> (?)
Files Coverage Δ
database/models/core.py 97.40% <100.00%> (ø)
database/tests/unit/test_models.py 100.00% <100.00%> (ø)
helpers/github_installation.py 100.00% <100.00%> (ø)
helpers/tests/unit/test_github_installation.py 100.00% <100.00%> (ø)
services/bots.py 100.00% <100.00%> (ø)
services/github.py 100.00% <100.00%> (ø)
services/repository.py 96.17% <100.00%> (ø)
services/tests/test_bots.py 100.00% <100.00%> (ø)
tasks/notify.py 98.49% <100.00%> (ø)

@giovanni-guidini giovanni-guidini marked this pull request as ready for review February 26, 2024 20:33
@giovanni-guidini giovanni-guidini requested a review from a team February 26, 2024 20:33
@giovanni-guidini
Copy link
Contributor Author

Depends on codecov/codecov-api#421

@giovanni-guidini giovanni-guidini merged commit 7128005 into main Mar 5, 2024
26 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/multi-apps/task-app-name-config branch March 5, 2024 13:59
This pull request was closed.
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