NO-ISSUE: Improve osimagestream pkg API#6271
Conversation
This change makes some changes to the internal osimagestream package to extract some common sources logic into a separated entity with shared behavior. Signed-off-by: Pablo Rodriguez Nava <git@amail.pablintino.eu>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@pablintino: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Caution Review failedAn error occurred during the review process. Please try again later. WalkthroughThis PR introduces a new ChangesStreamDiscoverer Extraction
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Factory as DefaultStreamSourceFactory
participant Source as StreamSource
participant Discoverer as StreamDiscoverer
participant Inspector as ImagesInspector
participant Extractor as ImageDataExtractor
Factory->>Discoverer: NewStreamDiscoverer(imagesInspector, imagesExtractor)
Factory->>Source: NewImageStreamStreamSource/NewOSImagesURLStreamSource(discoverer, provider)
Source->>Source: FetchStreams(ctx)
Source->>Discoverer: Discover(ctx, images)
Discoverer->>Inspector: Inspect(images)
Inspector-->>Discoverer: results, error
Discoverer->>Extractor: extract labels per image
Extractor-->>Discoverer: image metadata
Discoverer-->>Source: []OSImageStreamSet, error
Source-->>Factory: []OSImageStreamSet, error
Compact metadata:
🐰 A discoverer hops through images with care, ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Comment |
isabella-janssen
left a comment
There was a problem hiding this comment.
/lgtm
Clear cleanup & tests look to be passing
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: isabella-janssen, pablintino The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/pipeline required |
|
/verified by CI |
|
@pablintino: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/test e2e-hypershift |
|
/retest-required |
|
@pablintino: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
- What I did
This change makes some changes to the internal osimagestream package to extract some common sources logic into a separated entity with shared behavior.
- How to verify it
Simple internal change that should be good with just regular CI e2e's passing.
- Description for the changelog
This change makes some changes to the internal osimagestream package to extract some common sources logic into a separated entity with shared behavior.
Summary by CodeRabbit