Skip to content

feat(575): regex glob resolver#780

Merged
matthiasbruns merged 16 commits into
open-component-model:mainfrom
matthiasbruns:feat/575_regex_glob_resolver
Sep 5, 2025
Merged

feat(575): regex glob resolver#780
matthiasbruns merged 16 commits into
open-component-model:mainfrom
matthiasbruns:feat/575_regex_glob_resolver

Conversation

@matthiasbruns

@matthiasbruns matthiasbruns commented Sep 3, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Provide a replacement for fallbackresolvers to reduce resolving time based on glob pattern matching.
This PR focusses on the spec/binding side. The repository will follow afterwards.

Which issue(s) this PR fixes

Fixes: open-component-model/ocm-project#575

On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@github-actions github-actions Bot added the size/l Large label Sep 3, 2025
Comment thread bindings/go/configuration/resolvers/v1/matcher/matcher.go Outdated
@matthiasbruns matthiasbruns force-pushed the feat/575_regex_glob_resolver branch 4 times, most recently from 3512182 to 57cd871 Compare September 3, 2025 09:40
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns matthiasbruns force-pushed the feat/575_regex_glob_resolver branch from 57cd871 to c0c55f0 Compare September 3, 2025 09:40
@matthiasbruns matthiasbruns changed the title Feat/575 regex glob resolver feat(575): regex glob resolver Sep 3, 2025
@github-actions github-actions Bot added the kind/feature new feature, enhancement, improvement, extension label Sep 3, 2025
@matthiasbruns matthiasbruns marked this pull request as ready for review September 3, 2025 15:50
@matthiasbruns matthiasbruns requested a review from a team as a code owner September 3, 2025 15:50
matthiasbruns and others added 3 commits September 3, 2025 17:52
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Comment thread bindings/go/configuration/resolvers/v1/matcher/matcher.go Outdated
Comment thread bindings/go/configuration/resolvers/v1/matcher/matcher.go Outdated
Comment thread bindings/go/configuration/resolvers/v1/matcher/matcher.go Outdated
Comment thread bindings/go/configuration/resolvers/v1/matcher/matcher_test.go Outdated
Comment thread bindings/go/configuration/resolvers/v1/runtime/config.go Outdated
@matthiasbruns

Copy link
Copy Markdown
Contributor Author

Options for glob packages

@jakobmoellerdev I will keep searching for more packages

@jakobmoellerdev

Copy link
Copy Markdown
Member

For such fundamental libraries they are sometimes "feature-complete". In those cases you cannot avoid that they dont have a lot of pushes. Most used least broken is a good principle here :D

Comment thread bindings/go/configuration/resolvers/v1/matcher/matcher.go Outdated
@fabianburth

Copy link
Copy Markdown
Contributor

We could also discuss whether we think the capabilities of https://pkg.go.dev/path?utm_source=chatgpt.com#Match are sufficient for our use case here.

On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns matthiasbruns force-pushed the feat/575_regex_glob_resolver branch from f6986f8 to 286d52d Compare September 4, 2025 13:55
@github-actions github-actions Bot added the size/m Medium label Sep 4, 2025
matthiasbruns and others added 2 commits September 4, 2025 15:58
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>

@jakobmoellerdev jakobmoellerdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

needs some cleanup, docs and a regeneration, then LGTM for me

Comment thread bindings/go/configuration/go.mod Outdated
Comment thread bindings/go/configuration/resolvers/v1/spec/config.go Outdated
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns

Copy link
Copy Markdown
Contributor Author

We could also discuss whether we think the capabilities of https://pkg.go.dev/path?utm_source=chatgpt.com#Match are sufficient for our use case here.

Yeah I have seen it - but wasn't sure since it's only for pathing

On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns

Copy link
Copy Markdown
Contributor Author

@jakobmoellerdev regenerated

Comment thread bindings/go/configuration/resolvers/v1/matcher/matcher_test.go
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns

Copy link
Copy Markdown
Contributor Author

Decided in the Warroom to stick with sdtlib path instead of an external lib

@matthiasbruns matthiasbruns force-pushed the feat/575_regex_glob_resolver branch from afb26a6 to ee03a4b Compare September 5, 2025 12:07
@matthiasbruns matthiasbruns enabled auto-merge (squash) September 5, 2025 12:09
@matthiasbruns matthiasbruns force-pushed the feat/575_regex_glob_resolver branch from 615ed82 to 2614c42 Compare September 5, 2025 12:18
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com>

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@matthiasbruns matthiasbruns force-pushed the feat/575_regex_glob_resolver branch from 2614c42 to 05ac839 Compare September 5, 2025 12:31
@matthiasbruns

Copy link
Copy Markdown
Contributor Author

@jakobmoellerdev @fabianburth done

@matthiasbruns matthiasbruns merged commit 973540b into open-component-model:main Sep 5, 2025
16 checks passed
matthiasbruns added a commit that referenced this pull request Sep 12, 2025
#### What this PR does / why we need it
In #780
we implemented a new configuration resolver implementation that resolves
components with a glob matcher. This PR implement the repository that
uses the new matcher

- the cli integration will be implemented in a follow up pr

#### Which issue(s) this PR fixes
Contributes
open-component-model/ocm-project#575

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature new feature, enhancement, improvement, extension size/l Large size/m Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Regex/Glob based resolver

3 participants