Repository navigation
fix: filter component fetch to nodes only and safe channel close - #131
Merged
Merged
Conversation
synackd
force-pushed
the
pr/c-component-fetch-filter
branch
3 times, most recently
from
August 31, 2026 16:32
86dda3d to
8db0a0f
Compare
11 of 15 tasks
synackd
marked this pull request as ready for review
August 31, 2026 16:43
6 of 17 tasks
alexlovelltroy
requested changes
Aug 31, 2026
alexlovelltroy
left a comment
Member
There was a problem hiding this comment.
Looks like TestPopulateNodes is failing on this PR. We need to fix that before merging.
synackd
force-pushed
the
pr/c-component-fetch-filter
branch
2 times, most recently
from
September 2, 2026 20:19
4a479b3 to
08a16a1
Compare
The original implementation of ComponentInformation fetched the full component list without filtering, causing cache‑misses for non‑Node components and unnecessary processing. Update the SMD client to request only Node components by appending ?type=Node to the endpoint (/hsm/v2/State/Components). The change ensures that ComponentInformation and related cache logic operate correctly for node resources. Additionally, StopCacheRefresh now safely closes its stop channel using a select‑based guard (safeClose) to avoid panics if the channel is closed multiple times. Corresponding tests have been updated to reflect the new behavior. These improvements enhance performance and stability of the SMD client. Signed-off-by: Devon Bautista <17506592+synackd@users.noreply.github.com>
Signed-off-by: Devon Bautista <17506592+synackd@users.noreply.github.com>
synackd
force-pushed
the
pr/c-component-fetch-filter
branch
from
September 2, 2026 22:23
08a16a1 to
1e36996
Compare
synackd
enabled auto-merge (squash)
September 8, 2026 15:24
alexlovelltroy
approved these changes
Sep 8, 2026
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
The original implementation of
ComponentInformationfetched the full component list without filtering, causing cache‑misses for non‑Node components and unnecessary processing. Update the SMD client to request only Node components by appending?type=Nodeto the endpoint (/hsm/v2/State/Components). The change ensures thatComponentInformationand related cache logic operate correctly for node resources. Additionally,StopCacheRefreshnow safely closes its stop channel using a select‑based guard (safeClose) to avoid panics if the channel is closed multiple times. Corresponding tests have been updated to reflect the new behavior. These improvements enhance performance and stability of the SMD client.Fixes #128 (comment)
Fixes #128 (comment)
Checklist
make test(or equivalent) locally and all tests passgit commit -s) with my real name and email<filename>.licensesidecarLICENSES/directoryType of Change