Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented Feb 28, 2018

Copy link
Member

@svanoort svanoort left a comment

Choose a reason for hiding this comment

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

Blocking this because of the unacceptable core bump -- see comments in upstream PR.

@jglick jglick requested a review from svanoort March 14, 2018 19:18
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

🐝 I am afraid about the Binary compatibility breakage, but it's up to plugin maintainers

* @author Kohsuke Kawaguchi
*/
public class ArtifactUnarchiverStepExecution extends SynchronousNonBlockingStepExecution<List<FilePath>> {
public class ArtifactUnarchiverStepExecution extends SynchronousNonBlockingStepExecution<Void> {
Copy link
Member

Choose a reason for hiding this comment

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

Not binary compatible, needs to be Restricted at least

@@ -1 +1 @@
buildPlugin(jenkinsVersions: [null, '2.32.3'])
buildPlugin()
Copy link
Member

Choose a reason for hiding this comment

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

2.107.1 please

Copy link
Member Author

Choose a reason for hiding this comment

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

No, the baseline is newer than that.

@jglick jglick changed the title [JENKINS-49635] Support new VirtualFile.asRemotable API [JENKINS-49635] Support new VirtualFile.toExternalURL API Apr 2, 2018
@jglick jglick added on-hold and removed on-hold labels Apr 23, 2018
@jglick
Copy link
Member Author

jglick commented Apr 23, 2018

Will keep this on-hold until jenkinsci/workflow-api-plugin#67 is approved & merged. Note that jenkinsci/workflow-step-api-plugin#33 also remains unreleased.

Copy link
Member

@abayer abayer left a comment

Choose a reason for hiding this comment

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

Looks fine, release will have to wait for an LTS, though.

public class ArtifactArchiverStepTest extends Assert {
public class ArtifactArchiverStepTest {

@ClassRule public static BuildWatcher watcher = new BuildWatcher();
Copy link
Member

Choose a reason for hiding this comment

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

What is this used for?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just so that the test log includes the log from the build run at line 90.

j.createSlave("remote1", null, null);
j.createSlave("remote2", null, null);
WorkflowJob p = j.jenkins.createProject(WorkflowJob.class, "p");
p.setDefinition(new CpsFlowDefinition("node('remote1') {writeFile file: 'x', text: 'contents'; archiveArtifacts 'x'}; node('remote2') {unarchive mapping: [x: 'x']; echo(/loaded ${readFile('x')}/)}", true));
Copy link
Member

Choose a reason for hiding this comment

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

no stash/unstash test?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, because that behavior is not being defined in this PR—it would be overridden in the plugin providing the ArtifactManagerFactory.

private FilePath copy(VirtualFile src, FilePath dst, TaskListener listener) throws IOException, InterruptedException {
URL u = src.toExternalURL();
if (u != null) {
new RobustHTTPClient().copyFromRemotely(dst, u, listener);
Copy link
Member

Choose a reason for hiding this comment

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

Caveat that I need to look into what guarantees this is offering and how thread interruption is handled in the RobustHTTPClient

Copy link
Member

@svanoort svanoort left a comment

Choose a reason for hiding this comment

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

AFAICT looks reasonable, with the exception of needing to look at the RobustHTTPClient impl

@jglick jglick removed the on-hold label Jun 15, 2018
@jglick jglick requested a review from svanoort June 15, 2018 16:42
Copy link
Member

@svanoort svanoort left a comment

Choose a reason for hiding this comment

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

Looks fine now, but we need to get the base branches set up for the separate stable & bleeding-edge branches.

@jglick Please could you give me a hand with the permissions there?

Starting a run through the standing PRs to make sure we have integrated what we can before cutting the split branches.

@svanoort svanoort merged commit 8ca7a6e into jenkinsci:master Jun 15, 2018
@jglick jglick deleted the VirtualFile-JENKINS-49635 branch June 15, 2018 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants