🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

feat(autodiscovery): replace versionfilters with tracks - #11478

Merged
olblak merged 2 commits into
updatecli:mainfrom
olblak:feat/autodiscovery-tracks
Nov 24, 2026
Merged

olblak merged 2 commits into
updatecli:mainfrom
olblak:feat/autodiscovery-tracks

Conversation

@olblak

@olblak olblak commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Autodiscovery "versionfilters" becomes "tracks", before it is released. Each track has a name and sets "versionfilter", "age" or both, so one crawler can, for example, take minor updates after 3 days and major updates after 14 days.

A track setting can't also be set on the crawler. Unknown track settings are rejected, and "age" is only accepted, and offered by the json schema, for crawlers supporting it. The generated pipelines are labelled with "updatecli.io/track" instead of "updatecli.io/versionfilter".

Fix #XXX

Test

To test this pull request, you can run the following commands:

cd <to_package_directory>
go test

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.
  • I have tested this pull request manually with a custom Updatecli build and it works as expected.

Tradeoff

Potential improvement

Summary by CodeRabbit

  • New Features
    • Autodiscovery now supports named tracks that combine version-filter and age settings, with tracks processed in rank order.
    • Track settings are validated against crawler capabilities, and age options are shown only for supported crawlers.
    • Generated pipeline labels and waiting messages identify the track.
  • Configuration
    • Define crawler variants with tracks and nest version-filter settings within each track.

Autodiscovery "versionfilters" becomes "tracks", before it is released.
Each track has a name and sets "versionfilter", "age" or both, so one
crawler can, for example, take minor updates after 3 days and major
updates after 14 days.

A track setting can't also be set on the crawler. Unknown track settings
are rejected, and "age" is only accepted, and offered by the json schema,
for crawlers supporting it. The generated pipelines are labelled with
"updatecli.io/track" instead of "updatecli.io/versionfilter".

Signed-off-by: Olblak <me@olblak.com>
@olblak olblak added the enhancement New feature or request label Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93750c73-78f8-444d-b39b-eec8dce2ba7b
Commits

Reviewing files that changed from the base of the PR and between 9fe894c and 52995ae.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Autodiscovery replaces named version filters with tracks. Tracks can contain version-filter or age settings. Expansion, validation, generated pipeline metadata, and gate ordering now use track names and ranks.

Changes: Autodiscovery tracks

Layer / File(s) Summary
Track configuration and expansion
pkg/core/pipeline/autodiscovery/variant.go, pkg/core/pipeline/autodiscovery/jsonschema.go, pkg/core/pipeline/autodiscovery/config.go, pkg/core/pipeline/autodiscovery/variant_test.go, pkg/core/pipeline/gate.go
The autodiscovery specification now accepts named tracks with version-filter or age settings. Expansion validates track names and settings, combines tracks with groups, and applies supported settings to crawler specs. Schemas expose age only for supported crawler kinds.
Track-based pipeline variants
e2e/updatecli.d/success.d/autodiscovery/dockerfile/tracks.yaml, pkg/core/engine/autodiscovery.go, pkg/core/engine/autodiscovery_variant.go, pkg/core/engine/autodiscovery_variant_test.go, pkg/core/pipeline/autodiscovery/main.go, pkg/core/pipeline/main.go
Generated pipeline IDs, labels, titles, and logs now identify tracks. The Dockerfile example defines minor and major tracks, each with a nested semver version filter.
Track ordering and waiting
pkg/core/engine/gate.go, pkg/core/engine/gate_test.go, pkg/core/engine/order.go, pkg/core/engine/order_test.go, pkg/core/engine/run.go
The engine uses track names and ranks when checking whether a pipeline must wait and when ordering gated pipelines. Pending-update and lookup behavior remain unchanged.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Possibly related PRs

Suggested reviewers: loispostula

Merge Risk: Minimal · previous review 9fe89

This change renames autodiscovery versionfilters to tracks and lets each track set a version filter, an age, or both. Generated pipelines use the updatecli.io/track label. No concrete defects were found in the reviewed changes, so the merge risk is minimal. The author should still run the package tests and finish the documentation and manual-testing checklist items.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(autodiscovery): replace versionfilters with tracks" matches the main change. The PR replaces the autodiscovery versionfilters configuration with tracks, which can set versionfilter, ag…
Description check Passed The description explains the purpose of the change. It states that versionfilters become tracks, that each track sets versionfilter, age, or both, and that track settings cannot also be set on the cra…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(autodiscovery): replace versionfilters with tracks" matches the main change. The PR replaces the autodiscovery versionfilters configuration with tracks, which can set versionfilter, age, or both. The title is short, specific, and follows a conventional commit style.

Full details: Description check

Explanation

The description explains the purpose of the change. It states that versionfilters become tracks, that each track sets versionfilter, age, or both, and that track settings cannot also be set on the crawler. It also covers unknown-setting rejection, age support limits in the JSON schema, and the new updatecli.io/track label. The template sections are kept. The Fix #XXX placeholder is unfilled, and the test section lacks specific test results. The checklist items are unchecked.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e54b7621-b167-44d6-a9a9-8f1be306d8db
Commits

Reviewing files that changed from the base of the PR and between 491afd6 and 9fe894c.

Files selected for processing: 16

  • e2e/updatecli.d/success.d/autodiscovery/dockerfile/tracks.yaml
  • pkg/core/engine/autodiscovery.go
  • pkg/core/engine/autodiscovery_variant.go
  • pkg/core/engine/autodiscovery_variant_test.go
  • pkg/core/engine/gate.go
  • pkg/core/engine/gate_test.go
  • pkg/core/engine/order.go
  • pkg/core/engine/order_test.go
  • pkg/core/engine/run.go
  • pkg/core/pipeline/autodiscovery/config.go
  • pkg/core/pipeline/autodiscovery/jsonschema.go
  • pkg/core/pipeline/autodiscovery/main.go
  • pkg/core/pipeline/autodiscovery/variant.go
  • pkg/core/pipeline/autodiscovery/variant_test.go
  • pkg/core/pipeline/gate.go
  • pkg/core/pipeline/main.go

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@olblak
olblak merged commit ba92b82 into updatecli:main Nov 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant