Skip to content

Conversation

@olblak
Copy link
Member

@olblak olblak commented Dec 9, 2025

When a project contains a lot of pipeline, it can be useful to trigger a subset of them.
Especially when those pipeline were generated by the autodiscovery feature

This pull request add a new parameter --pipeline-ids <comma separated list of pipelineid> to limit the pipeline executed based on a list of pipeline IDs.

Test

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

go build -o bin/updatecli .
./bin/updatecli manifest show --config updatecli/updatecli.d --values updatecli/values.d/scm.yaml --pipeline-ids "venom"

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

/

Potential improvement

/

Signed-off-by: Olblak <me@olblak.com>
@olblak olblak requested a review from Copilot December 9, 2025 20:01
@olblak olblak added enhancement New feature or request core All things related to Updatecli core engine labels Dec 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new --pipeline-ids parameter to filter which pipelines execute based on a comma-separated list of pipeline IDs. This is particularly useful in projects with many pipelines, especially those generated by autodiscovery features.

Key Changes:

  • Added --pipeline-ids flag to multiple commands (apply, diff, show, manifest, compose)
  • Modified config.New() to accept and filter pipelines based on pipeline ID list
  • Updated engine.Options to include PipelineIDs field with documentation

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
cmd/root.go Added pipelineIds variable and parsing logic to split comma-separated IDs
cmd/apply.go Added --pipeline-ids flag to apply command
cmd/diff.go Added --pipeline-ids flag to diff command
cmd/show.go Added --pipeline-ids flag to show command
cmd/manifest_show.go Added --pipeline-ids flag to manifest show command
cmd/manifest_upgrade.go Added --pipeline-ids flag to manifest upgrade command
cmd/compose_apply.go Added --pipeline-ids flag to compose apply command
cmd/compose_diff.go Added --pipeline-ids flag to compose diff command
cmd/compose_show.go Added --pipeline-ids flag to compose show command
pkg/core/engine/options.go Added PipelineIDs field with documentation comments
pkg/core/engine/configuration.go Updated to pass PipelineIDs to config.New() and added nil check
pkg/core/config/main.go Refactored to accept pipeline ID filters, filter configs, and improved error handling
pkg/core/config/main_test.go Updated test to pass empty pipeline ID list to New()
pkg/core/pipeline/main_test.go Updated test to pass empty pipeline ID list to New()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

olblak and others added 3 commits December 9, 2025 21:19
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
@olblak olblak enabled auto-merge (squash) December 9, 2025 20:29
@olblak olblak merged commit a750dba into updatecli:main Dec 12, 2025
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core All things related to Updatecli core engine enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant