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: remove set-cache-item experiment #68896

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Apr 15, 2024

The experiment/feature flag was a success. We can remove it now.

@anonrig anonrig requested review from mitsuhiko, markstory, fpacifici and a team April 15, 2024 13:58
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 15, 2024
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.89%. Comparing base (ef9d8e9) to head (908c1b9).
Report is 11 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #68896   +/-   ##
=======================================
  Coverage   77.89%   77.89%           
=======================================
  Files        6519     6519           
  Lines      290468   290467    -1     
  Branches    50264    50264           
=======================================
+ Hits       226263   226264    +1     
+ Misses      57964    57963    -1     
+ Partials     6241     6240    -1     
Files Coverage Δ
src/sentry/db/models/fields/node.py 77.03% <100.00%> (ø)
src/sentry/issues/escalating_group_forecast.py 96.77% <ø> (ø)
src/sentry/nodestore/base.py 84.67% <100.00%> (-0.13%) ⬇️

... and 9 files with indirect coverage changes

@anonrig anonrig force-pushed the anonrig/remove-experiment branch 2 times, most recently from 58d1ded to 80bf6e6 Compare April 16, 2024 20:13
@anonrig anonrig requested a review from a team as a code owner April 16, 2024 20:13
@anonrig
Copy link
Member Author

anonrig commented Apr 16, 2024

@markstory @mitsuhiko I had to remove several tests and add a field for override_cache option to preserve the existing change for several fields. Can you validate if the change is indeed correct, or do we NOT need any override_cache option, and just simply remove/update the tests that rely on this behavior?

Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with the nuances of escalating issues, but the NodeData change looks good to me.

@@ -156,7 +156,7 @@ def save(self, subkeys=None):
subkeys = subkeys or {}
subkeys[None] = to_write

nodestore.backend.set_subkeys(self.id, subkeys)
nodestore.backend.set_subkeys(self.id, subkeys, override_cache=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This write to cache makes sense to me. The node could be in cache (because of a read) and any update to the data should also reflect in future reads which could be served from cache.

@getsantry
Copy link
Contributor

getsantry bot commented May 14, 2024

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label May 14, 2024
@anonrig anonrig removed the Stale label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants