Repository navigation
Conversation
kash2104
requested review from
FogDong,
Somefive,
anoop2811,
briankane,
jguionnet,
leejanee and
wonderflow
as code owners
September 21, 2026 17:50
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #259 +/- ##
===========================================
+ Coverage 62.49% 75.44% +12.95%
===========================================
Files 62 73 +11
Lines 4415 5169 +754
===========================================
+ Hits 2759 3900 +1141
+ Misses 1324 1269 -55
+ Partials 332 0 -332
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
2 of 4 tasks
Signed-off-by: kash2104 <kparikh1104@gmail.com>
Signed-off-by: kash2104 <kparikh1104@gmail.com>
chore: Run linter and formatting. Signed-off-by: kash2104 <kparikh1104@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of your changes
This PR replaces the
sync.mapwith thecache.Cache[string]that has been introduced inkubevela/pkgPR to use the centralized package instead of declaring separate sync.map for email routine cache.Fixes #253
I have:
make reviewableto ensure this PR is ready for review.backport release-x.ylabels to auto-backport this PR if necessary.How has this code been tested
Since this PR for the email routine cache hasn't been merged yet, used workspaces to test this feature and this email routine is being used in the
kubevelarepo.Note: Avoid running go mod tidy in any repo, as it updates the module graph and throws error saying that
package cache doesn't exist in kubevela/pkgdependency.mkto disable the workspace when downloading the pinned module version for CRDs.This ensures that the CRDs are copied from the module version pinned in go.mod rather than from the local workspace checkout.
github.com/kubevela/workflowandgithubproxy.fjygbaifeng.eu.org/kubevela/kubevelais being used and that the changes work as expected.Special notes for your reviewer
This would also require changes in the
github.com/kubevela/kubevelarepo since we need to initialize the cache and register similar to what has been done with rateLimiter and stepStatusCache.Summary by cubic
Swaps the per-provider
sync.Maptracking email send status forcache.Cache[string]fromkubevela/pkg, and guards cache reads with a mutex so concurrent cold invocations can't both dial and send duplicate emails. Completed sends now delete their cache entry, so a later invocation for the same session ID starts a fresh send instead of hanging on the previous result.Migration
InitEmailCache(ctx)during startup; thekubevelarepo needs a matching change.kubevela/pkgrelease that introduces thecache.Cachepackage.Tests
Written for commit f3b563d. Summary will update on new commits.