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

chore: update sync_pull experiment #507

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

giovanni-guidini
Copy link
Contributor

This changes the sync_pull_task_time_to_get_lock_seconds from "distribution" to "gauge".
Turns out distributions only let you aggregate by average, min and max. I want quantiles.

Also adds a new metric sync_pull_task_rejected_count to count how many tasks DONT run
per wait period. After all the goal if this experiment is to see if the reduced wait time
is effective in reducing the number of tasks that run

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.

This changes the `sync_pull_task_time_to_get_lock_seconds` from "distribution" to "gauge".
Turns out distributions only let you aggregate by average, min and max. I want quantiles.

Also adds a new metric `sync_pull_task_rejected_count` to count how many tasks DONT run
per wait period. After all the goal if this experiment is to see if the reduced wait time
is effective in reducing the number of tasks that run
@codecov-notifications
Copy link

codecov-notifications bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #507   +/-   ##
=======================================
  Coverage   97.46%   97.47%           
=======================================
  Files         417      417           
  Lines       34796    34811   +15     
=======================================
+ Hits        33913    33931   +18     
+ Misses        883      880    -3     
Flag Coverage Δ
integration 97.47% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.47% <100.00%> (+<0.01%) ⬆️
unit 97.47% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.51% <100.00%> (+0.03%) ⬆️
OutsideTasks 97.74% <ø> (+<0.01%) ⬆️
Files Coverage Δ
tasks/sync_pull.py 98.83% <100.00%> (+1.16%) ⬆️

... and 8 files with indirect coverage changes

@codecov-qa
Copy link

codecov-qa bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (4382f51) to head (8b0b634).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #507   +/-   ##
=======================================
  Coverage   97.46%   97.47%           
=======================================
  Files         417      417           
  Lines       34796    34811   +15     
=======================================
+ Hits        33913    33931   +18     
+ Misses        883      880    -3     
Flag Coverage Δ
integration 97.47% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.47% <100.00%> (+<0.01%) ⬆️
unit 97.47% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.51% <100.00%> (+0.03%) ⬆️
OutsideTasks 97.74% <ø> (+<0.01%) ⬆️
Files Coverage Δ
tasks/sync_pull.py 98.83% <100.00%> (+1.16%) ⬆️

... and 8 files with indirect coverage changes

Copy link

codecov-public-qa bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (4382f51) to head (8b0b634).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #507   +/-   ##
=======================================
  Coverage   97.46%   97.47%           
=======================================
  Files         417      417           
  Lines       34796    34811   +15     
=======================================
+ Hits        33913    33931   +18     
+ Misses        883      880    -3     
Flag Coverage Δ
integration 97.47% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.47% <100.00%> (+<0.01%) ⬆️
unit 97.47% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.51% <100.00%> (+0.03%) ⬆️
OutsideTasks 97.74% <ø> (+<0.01%) ⬆️
Files Coverage Δ
tasks/sync_pull.py 98.83% <100.00%> (+1.16%) ⬆️

... and 8 files with indirect coverage changes

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.51%. Comparing base (4382f51) to head (8b0b634).
Report is 4 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     #507      +/-   ##
==========================================
+ Coverage   97.48%   97.51%   +0.02%     
==========================================
  Files         448      448              
  Lines       35525    35916     +391     
==========================================
+ Hits        34632    35023     +391     
  Misses        893      893              
Flag Coverage Δ
integration 97.47% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.47% <100.00%> (+<0.01%) ⬆️
unit 97.47% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.62% <100.00%> (+0.09%) ⬆️
OutsideTasks 97.74% <ø> (+<0.01%) ⬆️
Files Coverage Δ
tasks/sync_pull.py 98.83% <100.00%> (+1.16%) ⬆️

... and 8 files with indirect coverage changes

Related Entrypoints
run/app.tasks.pulls.Sync

@giovanni-guidini giovanni-guidini requested a review from a team June 19, 2024 11:12
@michelletran-codecov
Copy link
Contributor

According to the Sentry documentation, gauges don't give percentiles and that distributions should. I did take a look at the metric on Sentry and was unable to see the p90 metric (which it gave as an example for distribution metric in the docs).

After the Sentry metrics disappointed in producing quantiles we are switching to prometheus.
The query language is hard, but we know that it can be done.
I basically copied the code from `tasks.base` and modified it.

I also re-wired the experiment so that we can have more feature flags in there (if wanted)
@giovanni-guidini giovanni-guidini added this pull request to the merge queue Jun 20, 2024
Merged via the queue into main with commit 7073984 Jun 20, 2024
29 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/update-sync-pull-experiment branch June 20, 2024 17:32
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