Skip to content

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented May 24, 2025

Test Kubernetes Credentials Provider plugin update

Tests fail for kubernetes credentials provider plugin as a result of the Jackson 2 API plugin upgrade.

#5076 (comment)

Issue opened to track the future removal of the exclusion:

Testing done

Found a workaround that can be released in the Kubernetes Credentials Provider plugin:

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

…-weekly (jenkinsci#5078)"

Tests fail for kubernetes credentials provider plugin and possible others as a result of the API plugin upgrade.

jenkinsci#5076 (comment)

This reverts commit 7b9de21.
MarkEWaite added a commit to MarkEWaite/bitbucket-branch-source-plugin that referenced this pull request May 24, 2025
…tibility

Blue Ocean Bitbucket plugin depends on this plugin and uses the
BitbucketEndpointConfiguration.normalizeServerUrl method.  Rather than
require a new release of Blue Ocean, let's retain compatibility by
restoring that method and marking it as deprecated.

Detected in:

* jenkinsci/bom#5076
* jenkinsci/bom#5088

Testing done:

mvn -Dtest=BitbucketSCMNavigatorTest,BitbucketEndpointConfigurationTest,BitbucketServerEndpointTest,BitbucketSCMNavigatorTest clean verify
Jackson 2 API 2.19.0 seems to cause class loading issues in the
kubernetes credentials provider tests.  Pull request has been
submitted that shows the issue:

* jenkinsci/kubernetes-credentials-provider-plugin#115
@MarkEWaite MarkEWaite changed the title Revert jackson2-api 2.19.0 Exclude several Kubernetes Credentials Provider plugin tests May 26, 2025
@MarkEWaite MarkEWaite marked this pull request as ready for review May 26, 2025 03:48
@MarkEWaite MarkEWaite requested a review from a team as a code owner May 26, 2025 03:48
@MarkEWaite
Copy link
Contributor Author

I've requested a review from @basil because he may have better insights into a solution.

MarkEWaite added a commit to MarkEWaite/kubernetes-credentials-provider-plugin that referenced this pull request May 26, 2025
Workaround to prevent plugin BOM tests from failing with Jackson 2
API 2.19.0.

jenkinsci/bom#5076 (comment)
provides some additional details.

Incremental build will be tested with:

* jenkinsci/bom#5088

Does not alter the runtime dependencies of the plugin, since the
dependencies that have been added are test dependencies.  Confirmed by
comparing the MANIFEST.MF entries from the most recent plugin release
and this change.
Confirmed to pass tests with:

LINE=weekly PLUGINS=kubernetes-credentials-provider TEST=KubernetesCredentialsProviderTest#startWatchingForSecrets bash ./local-test.sh
@MarkEWaite MarkEWaite changed the title Exclude several Kubernetes Credentials Provider plugin tests Test Kubernetes Credentials Provider plugin update May 26, 2025
@basil
Copy link
Member

basil commented May 26, 2025

I vaguely recall class loading issues with Jackson but I have no recollection of what they were.

@MarkEWaite
Copy link
Contributor Author

MarkEWaite commented May 27, 2025

Resolved by the release of Kubernetes credentials provider plugin release 1.281.v331e3f5a_05a_9. That includes a dependency on openstack-cloud-plugin 1456.v1c7380506a_ed that removes its incorrect inclusion of the Jackson API library inside the plugin HPI file.

Requires test exclusions until the 2.492.x line is dropped. Exclusion added in:

Issue created to track the eventual removal of those exclusions:

@MarkEWaite MarkEWaite closed this May 27, 2025
@MarkEWaite MarkEWaite deleted the revert-jackson-and-test-weekly branch June 27, 2025 14:48
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