Skip to content

Conversation

sanketsudake
Copy link
Member

@sanketsudake sanketsudake commented Jan 2, 2024

Description

Making typed common cache with generics so that we don't use wrong types
across set/get methods and more higher level methods can be
defined for the cache.

Currently, we are not able to operate over all keys of the cache due to generic types.

Primary changes made in pkg/cache/cache.go

Which issue(s) this PR fixes:

Fixes #

Testing

Checklist:

  • I ran tests as well as code linting locally to verify my changes.
  • I have done manual verification of my changes, changes working as expected.
  • I have added new tests to cover my changes.
  • My changes follow contributing guidelines of Fission.
  • I have signed all of my commits.

Making typed common cache so that we dont use wrong types
across set/get methods and more higher level methods can be
defined for cache.
Currently, we are not able to operate over all keys of cache
due to generic types.
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 39 lines in your changes are missing coverage. Please review.

Comparison is base (12f8017) 46.68% compared to head (6d51b5e) 46.72%.

Files Patch % Lines
pkg/buildermgr/pkgwatcher.go 3.03% 32 Missing ⚠️
pkg/executor/fscache/functionServiceCache.go 61.53% 4 Missing and 1 partial ⚠️
pkg/executor/executortype/poolmgr/gpm.go 50.00% 1 Missing ⚠️
pkg/router/functionServiceMap.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2896      +/-   ##
==========================================
+ Coverage   46.68%   46.72%   +0.04%     
==========================================
  Files         215      215              
  Lines       22551    22511      -40     
==========================================
- Hits        10527    10519       -8     
+ Misses      10668    10637      -31     
+ Partials     1356     1355       -1     
Flag Coverage Δ
unittests 46.72% <49.35%> (+0.04%) ⬆️

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

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

@sanketsudake sanketsudake merged commit 0c85734 into main Jan 4, 2024
@sanketsudake sanketsudake deleted the typed-cache branch August 17, 2024 13:26
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