Skip to content

PKO-305: re-add fixed enqueue watching #225

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

erdii
Copy link
Member

@erdii erdii commented Jul 18, 2025

Summary

PKO-305: https://issues.redhat.com/browse/PKO-305

This PR re-introduces the enqueue watching cache source feature.
I've added some fixes and simplifications on top.

Change Type

New Feature
Bug Fix

Check List Before Merging

  • This PR passes all pre-commit hook validations.
  • This PR is fully tested and regression tests are included.
  • Relevant documentation has been updated.

Additional Information

@erdii erdii changed the title re-add fixed enqueue watching PKO-305: re-add fixed enqueue watching Jul 21, 2025
@erdii erdii force-pushed the readd-enqueue-watching branch 4 times, most recently from 1333268 to c521e84 Compare July 24, 2025 14:59
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

Attention: Patch coverage is 52.55474% with 65 lines in your changes missing coverage. Please review.

Project coverage is 54.08%. Comparing base (660af55) to head (5776d87).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
managedcache/enqueue_watching.go 52.00% 18 Missing and 6 partials ⚠️
managedcache/trackingcache.go 37.14% 22 Missing ⚠️
managedcache/objectboundaccess.go 63.46% 17 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #225      +/-   ##
==========================================
+ Coverage   45.81%   54.08%   +8.27%     
==========================================
  Files          27       28       +1     
  Lines        2916     3021     +105     
==========================================
+ Hits         1336     1634     +298     
+ Misses       1476     1257     -219     
- Partials      104      130      +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@erdii erdii marked this pull request as ready for review July 24, 2025 15:09
@erdii erdii requested review from eqrx and radimous July 24, 2025 15:09
Comment on lines 92 to 93
// TODO: error reporting?
panic(err)

Choose a reason for hiding this comment

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

Add fmt.Sprintf to the panic with object info.

Comment on lines +119 to +126
for i := range owned {
j := len(owned) - i
objects := owned[:j]

Choose a reason for hiding this comment

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

Please add comment 😄

@erdii erdii force-pushed the readd-enqueue-watching branch from 5776d87 to 21a3868 Compare July 28, 2025 09:39
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