GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(autodiscovery): label generated pipelines with their crawler and parent by olblak · Pull Request #11470 · updatecli/updatecli

Conversation

@olblak

@olblak olblak commented Nov 23, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Pipelines generated by autodiscovery now carry two more labels:

  • "updatecli.io/autodiscovery": the crawler kind, such as "golang".
  • "updatecli.io/parent": the pipeline ID of the autodiscovery manifest.

The "--labels" filter is now applied to generated pipelines too. It only ran on manifests loaded from disk, so filtering on a label set by autodiscovery, such as "updatecli.io/group", dropped the autodiscovery manifest and nothing was generated. An autodiscovery manifest not matching the filter now keeps its autodiscovery, scms and actions, without its own sources, conditions and targets.

Test

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

make 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-generated pipelines now include labels identifying their parent pipeline and crawler, along with group and version-filter labels when available. These labels can be used to filter generated pipelines.
  • Bug Fixes
    • Manifests with labels that don’t match the configured filter can still provide autodiscovery configuration; their regular sources, conditions, and targets are excluded.
    • Generated pipelines that don’t match the configured label filter are skipped.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@olblak
feat(autodiscovery): label generated pipelines with their crawler and…
31667c2
… parent

Pipelines generated by autodiscovery now carry two more labels:
  * "updatecli.io/autodiscovery": the crawler kind, such as "golang".
  * "updatecli.io/parent": the pipeline ID of the autodiscovery manifest.

The "--labels" filter is now applied to generated pipelines too.
It only ran on manifests loaded from disk, so filtering on a label set by
autodiscovery, such as "updatecli.io/group", dropped the autodiscovery
manifest and nothing was generated. An autodiscovery manifest not matching
the filter now keeps its autodiscovery, scms and actions, without its own
sources, conditions and targets.

Signed-off-by: Olblak <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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: ca4109a0-451a-4f98-883a-c77219370b7b
Commits

Reviewing files that changed from the base of the PR and between 70b42f0 and c7cf2cc.

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

Configuration loading retains autodiscovery settings when labels do not match, while clearing sources, conditions, and targets. Generated manifests now receive crawler, parent, and variant labels, then undergo label filtering before pipeline generation. The label-matching helper is exported.

Changes: Autodiscovery label filtering

Layer / File(s) Summary
Retain crawler configuration on label mismatch
pkg/core/config/main.go, pkg/core/config/main_test.go
When labels do not match, configurations with autodiscovery crawlers retain their crawler settings and clear sources, conditions, and targets. The label-matching helper is now exported. A test covers filtered and unfiltered loading.
Define generated pipeline labels
pkg/core/engine/autodiscovery_variant.go, pkg/core/engine/autodiscovery_variant_test.go, pkg/core/pipeline/autodiscovery/config.go
Generated pipeline labels include crawler kind and parent pipeline ID, plus group and version-filter values when set. The helper replaces conflicting reserved labels and preserves unrelated labels. Tests and the Config comment describe these labels.
Filter generated manifests
pkg/core/engine/autodiscovery.go
Generated manifests use the expanded label helper and are skipped when their labels do not match the engine’s configured filters.

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Autodiscovery
  participant GeneratedManifest
  participant EngineLabelFilter
  participant PipelineGeneration
  Autodiscovery->>GeneratedManifest: Add autodiscovery labels
  GeneratedManifest->>EngineLabelFilter: Check labels against configured filters
  alt labels match
    EngineLabelFilter->>PipelineGeneration: Continue pipeline generation
  else labels do not match
    EngineLabelFilter-->>Autodiscovery: Skip generated manifest
  end
Loading

Possibly related PRs

  • updatecli/updatecli#11465: Adds group and version-filter labels to autodiscovery-generated pipelines, which this change incorporates into expanded label generation and filtering.

Suggested labels: autodiscovery, core

Merge Risk: Minimal · previous review 31667

This change labels autodiscovery-generated pipelines with their crawler and parent, and applies the --labels filter to the generated pipelines. Manifests that do not match the filter keep their autodiscovery settings but lose their own sources, conditions and targets. No concrete defect was found, and tests cover the new loading and labeling behavior, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: generated autodiscovery pipelines get labels for their crawler kind and parent pipeline. The title is specific and matches the changeset, which adds the autodiscovery …
Description check Passed The description covers the two new labels, the change that applies the --labels filter to generated pipelines, and the behavior for manifests that do not match the filter. It gives a concrete test com…
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 names the main change: generated autodiscovery pipelines get labels for their crawler kind and parent pipeline. The title is specific and matches the changeset, which adds the autodiscovery and parent labels. It does not mention the label-filter change to generated pipelines, but that secondary change is expected to be omitted.

Full details: Description check

Explanation

The description covers the two new labels, the change that applies the --labels filter to generated pipelines, and the behavior for manifests that do not match the filter. It gives a concrete test command. It follows the template's Test section. The Fix line is missing an issue reference, and the Checklist and Tradeoff sections are left as template placeholders. These are non-critical, so the description is mostly complete.

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
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: 081a2174-c5a6-453a-bf1e-38de0a21e361
Commits

Reviewing files that changed from the base of the PR and between d6e90bb and 31667c2.

Files selected for processing: 6

  • pkg/core/config/main.go
  • pkg/core/config/main_test.go
  • pkg/core/engine/autodiscovery.go
  • pkg/core/engine/autodiscovery_variant.go
  • pkg/core/engine/autodiscovery_variant_test.go
  • pkg/core/pipeline/autodiscovery/config.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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olblak
Merge branch 'main' into feat/autodiscovery-origin-labels
70b42f0
@olblak olblak added enhancement New feature or request autodiscovery All things related to the autodiscovery feature labels Nov 23, 2026
@olblak
olblak enabled auto-merge (squash) November 23, 2026 12:35
@olblak
Merge branch 'main' into feat/autodiscovery-origin-labels
c7cf2cc
@olblak
olblak merged commit 491afd6 into updatecli:main Nov 23, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

jsahome pushed a commit to jsahome/updatecli that referenced this pull request Nov 23, 2026
@olblak @jsahome
feat(autodiscovery): label generated pipelines with their crawler and…
b6c7fba
… parent (updatecli#11470)

Pipelines generated by autodiscovery now carry two more labels:
  * "updatecli.io/autodiscovery": the crawler kind, such as "golang".
  * "updatecli.io/parent": the pipeline ID of the autodiscovery manifest.

The "--labels" filter is now applied to generated pipelines too.
It only ran on manifests loaded from disk, so filtering on a label set by
autodiscovery, such as "updatecli.io/group", dropped the autodiscovery
manifest and nothing was generated. An autodiscovery manifest not matching
the filter now keeps its autodiscovery, scms and actions, without its own
sources, conditions and targets.

Signed-off-by: Olblak <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request Nov 23, 2026
feat(autodiscovery): replace versionfilters with tracks #11478
Merged
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

autodiscovery All things related to the autodiscovery feature enhancement New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@olblak
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.