Ticket #393 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

New build step for uploading directories from slave to master: DirectoryUpload

Reported by: mue Owned by:
Priority: minor Milestone: 0.7.10
Version: 0.7.9 Keywords: review
Cc: warner

Description

As mentioned on the mailing list (27. November 2008), I've made an DirectoryUpload? step. It creates all needed directories on the master and transfers empty directories as well. Maybe it looks a little bit ugly, because it is the first time, that I work with twisted. DirectoryUpload? is based on FileUpload?, because of my missing experience with twisted.

Any comments are welcome! Hopefully it gets in the right shape before the next release.

Attachments

DirectoryUploadPart2.patch Download (5.8 KB) - added by mue 4 years ago.
missing second part
DirectoryUpload.patch Download (27.5 KB) - added by mue 4 years ago.
DirectoryUploadDoc.patch Download (1.7 KB) - added by mue 4 years ago.

Change History

Changed 4 years ago by mue

missing second part

comment:1 Changed 4 years ago by mue

I just noticed a problem, sometimes my step miss some files. I will upload a fixed patch, when available.

comment:2 Changed 4 years ago by dustin

This also needs a test or two and some documentation, while you're at it. Then keyword it "review" and I'll take a look.

comment:3 follow-up: ↓ 4 Changed 4 years ago by dustin

  • Cc warner added

Any update on this step?

In general, I'm disinclined to add new functionality on the slave side. Unless there's a convincing use-case in which uploading e.g., a tarball or a zip file is not appropriate, I'd rather not incorporate this functionality. As always, I'm happy to be overridden by warner.

One thing that may help my solution (uploading an archive file) is the ability to run a shell command on the master -- this would let you untar/unzip the uploaded archive wherever you needed it on the master.

comment:4 in reply to: ↑ 3 Changed 4 years ago by mue

Replying to dustin:

Any update on this step?

I had no free time over christmas, but hopefully I have some time over the next weeks.

In general, I'm disinclined to add new functionality on the slave side. Unless there's a convincing use-case in which uploading e.g., a tarball or a zip file is not appropriate, I'd rather not incorporate this functionality. As always, I'm happy to be overridden by warner.

My usecase is to upload the documentation to the master and publish it with the help of buildbots webserver. The documentation isn't a single file as described in the buildbot-manual, but an directory with many files and subdirectories (generated by doxygen/epydoc). I would need nearly hundred steps to upload every single file.

One thing that may help my solution (uploading an archive file) is the ability to run a shell command on the master -- this would let you untar/unzip the uploaded archive wherever you needed it on the master.

Well, the ability to run a shell command on the master would definitly help on this. Then I can upload an archive file.

If DirectoryUpload? is not the preferred way, but a MasterShellCommand? is, then I will stop working on this. But I'm unsure if I can help with the MasterShellCommand? because of my missing experience with buildbot/twisted. I have already a hard time with DirectoryUpload?.

comment:5 Changed 4 years ago by mue

Ok, I remade my patch completely (Part 2 is not needed anymore, but I can't delete it).

I did a new start with some tests and finally got it running. It has not the complexity of FileUpload?, no upload in parts or sizelimit. This is just because I'm not familiar enough with twisted. I had a hard time to get it working like this.

What documentation is needed to get a review?

Changed 4 years ago by mue

comment:6 Changed 4 years ago by dustin

  • Milestone changed from undecided to 0.7.+

I like this, but I actually have a more general solution that I'm using locally, which I would prefer to add to the distro. I won't have time to get that into 0.7.10, though, so I'm going to move this to the 0.7.+ milestone.

Changed 4 years ago by mue

comment:7 Changed 4 years ago by mue

  • Keywords review added

I made a patch for the documentation. It is relativ short, but the main part is described under FileUpload?. I tag this review now.

comment:8 Changed 4 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 0.7.+ to 0.7.10
Created commit 4573cc2: (refs #393) add DirectoryUpload
 4 files changed, 578 insertions(+), 24 deletions(-)

comment:10 Changed 3 years ago by dustin

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.