Conversation
Allda
reviewed
Sep 26, 2025
Contributor
Allda
left a comment
There was a problem hiding this comment.
Hey Tomas, I am not sure how this is going to work. The preflight trigger needs a bundle and index image as an input that are created in earlier stages by the task that you moved. I am honesly not sure how the pipeline could pass if the index image created by IIB is created only after preflight trigger.
Could you perhaps build it using same source and later during a testing the solution used the index from previous pipeline run whre the order of the task was correct?
Contributor
Author
|
Closing PR as this change will not be implemented. Details in the jira story itself. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I reorganised the tasks in the hosted pipeline in order for preflight to validate and catch the incorrectly referenced CSV in the earlier stages. There should not be any problems by doing so. The hosted pipeline can run it's course normally.
Preflight is using 4 validators from operator-sdk -> https://github.com/redhat-openshift-ecosystem/openshift-preflight/blob/main/internal/bundle/bundle.go#L50-L55 -> 2 of them are responsible for metadata requirements, 1 is checking API deprecation and
OperatorHubV2Validatoris validating the bundle against the operatorhub.io requirements which is one we need. (Validators (all and ones used in preflight) are referenced here in operator-framewrok api: https://github.com/operator-framework/api/blob/master/pkg/validation/validation.go)If there are incorrectly referenced specs in CSV (such as was the case why this ticket was raised), not only will the validation fail for checking the operatorhub requirements but other scorecards will fail as well.
Since the bundle will be run through validations before add-bundle-to-index task, we will save up the time and owners can fix potential problems earlier, with a clear error message.
Tested in preprod; artifacts from preflight -> logs and pipeline logs.
Merge Request Checklists