Skip to content

Conversation

Zaperex
Copy link
Member

@Zaperex Zaperex commented Sep 2, 2025

Description

  • Adds support for dynamic plugin version inheritance for OCI packages via a {{inherit}} tag.
  • Script also now throws an error if duplicate plugins are found across config files in the includes field.
    • It also throws errors if there are duplicate plugins in the dynamic-plugins.yaml.
    • Essentially any duplicates found in the same "level" will throw an error.

Which issue(s) does this PR fix

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@Zaperex Zaperex requested review from davidfestal and removed request for dzemanov and its-mitesh-kumar September 2, 2025 16:49
@Zaperex
Copy link
Member Author

Zaperex commented Sep 2, 2025

/retest

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
… and current info.

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@Zaperex Zaperex force-pushed the update-dynamic-plugin-install-script branch from 3762a9c to 692d1b1 Compare September 4, 2025 19:18
Copy link
Contributor

github-actions bot commented Sep 4, 2025

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Copy link
Contributor

github-actions bot commented Sep 8, 2025

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
…with tag/digest

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Copy link
Contributor

github-actions bot commented Sep 8, 2025

@Zaperex Zaperex requested a review from davidfestal September 8, 2025 22:55
Copy link
Contributor

github-actions bot commented Sep 8, 2025

# if `package` already exists in `allPlugins`, then override its fields
if package not in allPlugins:
if package.startswith('oci://'):
if inheritVersion is True:
Copy link
Member

Choose a reason for hiding this comment

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

Is there any way to reduce the nested if statements here and on line 165-166? This kind of nesting tends to lead to difficult to follow logic, and if we make this kind of test more than once maybe it'd be more clear in intent to have a helper function that makes this test.

Copy link
Member

Choose a reason for hiding this comment

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

@gashcrumb do you consider it resolved ?

Copy link
Contributor

github-actions bot commented Oct 4, 2025

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 21 days.

@github-actions github-actions bot added the Stale label Oct 4, 2025
@github-actions github-actions bot removed the Stale label Oct 5, 2025
Copy link
Contributor

github-actions bot commented Oct 8, 2025

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>
Assisted-by: Cursor

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
…ynamic-plugin-install-script

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@Zaperex Zaperex force-pushed the update-dynamic-plugin-install-script branch from 6fd29a5 to 0f78161 Compare October 14, 2025 15:49
Copy link
Contributor

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Copy link
Contributor

Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
…ynamic-plugin-install-script

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Frank Kong <frkong@redhat.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
Copy link
Contributor

Copy link

openshift-ci bot commented Oct 17, 2025

@Zaperex: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-tests 57ee712 link true /test e2e-tests
ci/prow/e2e-ocp-helm 77cc2c5 link true /test e2e-ocp-helm

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants