Skip to content

chore(services): store observed counts in permissionsServer#2929

Draft
barakmich wants to merge 1 commit intomainfrom
barakmich/ps_counts
Draft

chore(services): store observed counts in permissionsServer#2929
barakmich wants to merge 1 commit intomainfrom
barakmich/ps_counts

Conversation

@barakmich
Copy link
Contributor

Description

Testing

References

@github-actions github-actions bot added area/api v1 Affects the v1 API area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Feb 28, 2026
@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.19%. Comparing base (a01eddc) to head (0bd1e09).
⚠️ Report is 21 commits behind head on main.

❌ Your project check has failed because the head coverage (52.19%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage.

❗ There is a different number of reports uploaded between BASE (a01eddc) and HEAD (0bd1e09). Click for more details.

HEAD has 11 uploads less than BASE
Flag BASE (a01eddc) HEAD (0bd1e09)
25 14
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2929       +/-   ##
===========================================
- Coverage   74.55%   52.19%   -22.36%     
===========================================
  Files         489      217      -272     
  Lines       60365    22971    -37394     
===========================================
- Hits        44998    11987    -33011     
+ Misses      12219     9694     -2525     
+ Partials     3148     1290     -1858     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@barakmich barakmich force-pushed the barakmich/ps_counts branch from e95f9b9 to 0bd1e09 Compare March 2, 2026 18:05
// This allows tracking which parts of query plans are used most frequently.
type QueryPlanMetadata struct {
mu sync.Mutex
stats map[query.CanonicalKey]query.CountStats // GUARDED_BY(mu)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we put a cap on how much this map can grow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api v1 Affects the v1 API area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants