Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter-prefix option to update config. #1083

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smoser
Copy link
Contributor

@smoser smoser commented Mar 12, 2024

There is not currently a way to include only matching versions from the release update service

This adds filter-prefix entry to Update section of melange.yaml. Specific use case for filter-prefix is a streamed package (ruby).

After the corresponding change to make use of this filter lands in wolfi, then we can update ruby-3.2 to enable the release monitor like with:

update:
enabled: true
manual: true
filter-prefix: "3.2."
release-monitor:
identifier: 4223

Melange Pull Request Template

Functional Changes

  • This change can build all of Wolfi without errors (describe results in notes)

Notes:

SCA Changes

  • Examining several representative APKs show no regression / the desired effect (details in notes)

Notes:

Linter

  • The new check is clean across Wolfi
  • The new check is opt-in or a warning

Notes:

@smoser smoser force-pushed the feature/filter-prefix-update branch from b04c42e to ec49063 Compare March 12, 2024 13:29
There is not currently a way to include only matching versions
from the release update service

This adds filter-prefix entry to Update section of melange.yaml.
Specific use case for filter-prefix is a streamed package (ruby).

After the corresponding change to make use of this filter lands
in wolfi, then we can update ruby-3.2 to enable the release monitor
like with:

 > update:
 >  enabled: true
 >  manual: true
 >  filter-prefix: "3.2."
 >  release-monitor:
 >    identifier: 4223

Signed-off-by: Scott Moser <smoser@brickies.net>
@smoser smoser force-pushed the feature/filter-prefix-update branch from ec49063 to ee4923d Compare March 12, 2024 13:35
smoser added a commit to smoser/wolfictl that referenced this pull request Mar 12, 2024
This relies on
chainguard-dev/melange#1083

And allows adding an "include prefix" for update checks.
@@ -459,6 +459,8 @@ type Update struct {
GitHubMonitor *GitHubMonitor `json:"github,omitempty" yaml:"github,omitempty"`
// The configuration block for transforming the `package.version` into an APK version
VersionTransform []VersionTransform `json:"version-transform,omitempty" yaml:"version-transform,omitempty"`
// Prefix filter to apply when searching releases
FilterPrefix string `json:"filter-prefix,omitempty" yaml:"filter-prefix,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if putting it under the update block will cause confusion with the existing filter-prefix that is under the github block? I.e. would it be better if we move this under the release-monitor block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or maybe Deprecate the 'TagFilterPrefix' in github block? filtering strings isn't really "provider specific".

I'm happy to do whatever you think is right.

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.

None yet

2 participants