Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented Jul 14, 2025

strangelookingnerd and others added 2 commits July 11, 2025 14:24
* Bump baseline and dependencies
* Replace docker-fixtures with testcontainers
* Cleanup
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sso</artifactId>
<!-- Not apparently packaged as a plugin, but anyway used only for developer testing: -->
Copy link
Member Author

Choose a reason for hiding this comment

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

public void smokes() throws Exception {
ArtifactManagerTest.artifactArchiveAndDelete(j, new JCloudsArtifactManagerFactory(new MockBlobStore()), false, null);
ArtifactManagerTest.artifactStashAndDelete(j, new JCloudsArtifactManagerFactory(new MockBlobStore()), false, null);
assumeFalse("Does not work when Dockerized since the mock server is inaccessible from the container", DockerClientFactory.instance().isDockerAvailable());
Copy link
Member Author

Choose a reason for hiding this comment

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

Replacement API does not have a version which declines to start a container when it could, which this test would need. Not much of a concern since this is a test facility used only by NetworkTest anyway.

Copy link

@MarkEWaite MarkEWaite Jul 22, 2025

Choose a reason for hiding this comment

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

Thanks for this change. I'm seeing failures of the MockBlobStoreTest on the weekly line of the plugin BOM when trying to add the 2.516.x line and remove the 2.479.x line. The failure is visible in this check and in the matching ci.jenkins.io job. The failure message is:

java.lang.NoSuchMethodError: 'void org.jenkinsci.plugins.workflow.ArtifactManagerTest.artifactArchiveAndDelete(org.jvnet.hudson.test.JenkinsRule, jenkins.model.ArtifactManagerFactory, boolean, org.jenkinsci.test.acceptance.docker.DockerImage)'
	at io.jenkins.plugins.artifact_manager_jclouds.MockBlobStoreTest.smokes(MockBlobStoreTest.java:44)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:648)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.lang.Thread.run(Thread.java:1583)

I can duplicate that failure in a local run of the plugin BOM with the command:

PLUGINS=artifact-manager-s3 LINE=weekly TEST=MockBlobStoreTest bash ./local-test.sh

I've confirmed that an incremental build of artifact-manager-s3 (including this change) passes the plugin BOM with the same command.

Would you be willing to release a new version of artifact-manager-s3 so that the 2.516.x release line can be added to the plugin BOM?

The pull request that needs the new release of artifact-manager-s3 is:

Copy link
Member Author

Choose a reason for hiding this comment

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

@jglick jglick marked this pull request as ready for review July 18, 2025 16:38
@jglick jglick requested a review from a team as a code owner July 18, 2025 16:38
@jglick jglick merged commit 2567c4c into jenkinsci:master Jul 18, 2025
17 checks passed
@jglick jglick deleted the OutboundAgent branch July 18, 2025 16:50
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.

4 participants