Skip to content

fix(ISV-7101): Make add-bundle-to-fbc run as last task before finally block#931

Merged
JakubDurkac merged 1 commit intomainfrom
ISV-7101
Apr 21, 2026
Merged

fix(ISV-7101): Make add-bundle-to-fbc run as last task before finally block#931
JakubDurkac merged 1 commit intomainfrom
ISV-7101

Conversation

@JakubDurkac
Copy link
Copy Markdown
Contributor

@JakubDurkac JakubDurkac commented Apr 16, 2026

Made add-bundle-to-fbc not run in parallel with a group of tasks, but rather as last task in the group before finally block. This is to ensure that duplicate PRs are not created when a task from the parallel group fails -> need to retry the pipeline -> running add-bundle-to-fbc multiple times -> multiple duplicate PRs.

Before:

  1. publish-pyxis-data
  2. add-bundle-to-fbc
  3. get-supported-versions -> build-fragment-images -> acquire-lease -> add-bundle-to-index / build-fbc-index-images -> sign-index-image -> publish-to-index
  4. finally block

After:

  1. publish-pyxis-data
  2. get-supported-versions -> build-fragment-images -> acquire-lease -> add-bundle-to-index / build-fbc-index-images -> sign-index-image -> publish-to-index -> add-bundle-to-fbc
  3. finally block

Merge Request Checklists

  • Development is done in feature branches
  • Code changes are submitted as pull request into a primary branch [Provide reason for non-primary branch submissions]
  • Code changes are covered with unit and integration tests.
  • Code passes all automated code tests:
    • Linting
    • Code formatter - Black
    • Security scanners
    • Unit tests
    • Integration tests
  • Code is reviewed by at least 1 team member
  • Pull request is tagged with "risk/good-to-go" label for minor changes

@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Reorder add-bundle-to-fbc task to run after publish-to-index

🐞 Bug fix

Grey Divider

Walkthroughs

Description
• Reorders add-bundle-to-fbc task to run after publish-to-index
• Prevents duplicate PR creation when parallel tasks fail and retry
• Ensures bundle is added to FBC only after index publishing completes
Diagram
flowchart LR
  A["publish-pyxis-data"] --> B["get-supported-versions"]
  B --> C["build-fragment-images"]
  C --> D["acquire-lease"]
  D --> E["add-bundle-to-index"]
  D --> F["build-fbc-index-images"]
  E --> G["sign-index-image"]
  F --> G
  G --> H["publish-to-index"]
  H --> I["add-bundle-to-fbc"]
  I --> J["finally block"]
Loading

Grey Divider

File Changes

1. ansible/roles/operator-pipeline/templates/openshift/pipelines/operator-release-pipeline.yml ⚙️ Configuration changes +42/-42

Move add-bundle-to-fbc after publish-to-index task

• Removed add-bundle-to-fbc task from running after publish-pyxis-data in parallel with other
 tasks
• Added add-bundle-to-fbc task to run after publish-to-index task completes
• Changed runAfter dependency from publish-pyxis-data to publish-to-index
• Task configuration and parameters remain unchanged

ansible/roles/operator-pipeline/templates/openshift/pipelines/operator-release-pipeline.yml


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Apr 16, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

Copy link
Copy Markdown
Contributor

@bclindner bclindner left a comment

Choose a reason for hiding this comment

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

pretty easy review, LGTM, thanks for the explainer

@JakubDurkac JakubDurkac merged commit a3bf689 into main Apr 21, 2026
19 of 22 checks passed
@JakubDurkac JakubDurkac deleted the ISV-7101 branch April 21, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants