Drush make will take awhile to grab all of the stuff. After running it though you're kind of in limbo not knowing if it worked or not, since the cursor just blinks at you for a period of time.

It'd be nice if immediately upon running drush make you got some visual feedback like "Now assembling your distribution. Please wait."

Comments

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new818 bytes

Agreed, this would be useful. Here's a start.

moshe weitzman’s picture

Status: Needs review » Needs work

We usually use drush_log() with type='ok' for this. Also, lets not emit anything for validation unless that really takes a while.

dww’s picture

The main delay before you get any output at all is the validation step. We could skip the 2nd message entirely perhaps, since once validation completes, you usually get feedback pretty quickly. Unless of course your .make file says to get core via git in which case it usually takes another long time before you see any progress. So, I'd actually just recommend keeping both messages (or something better worded if you prefer).

That said, duly noted on drush_log(). I'll re-roll.

Thanks,
-Derek

jhedstrom’s picture

Unless I'm mistaken, validation only takes a long time with the --drupal-org option set. Drush make on its own doesn't really do any time consuming validation. I'd vote for putting the validation log message into drupalorg_drush.

webchick’s picture

Project: Drush » Drupal.org drush
Component: Make » Code

That makes sense. And actually might be cleared up magically when #1432476: drupalorg_drush always try to download release history XML info is fixed.

dww’s picture

Status: Needs work » Needs review
StatusFileSize
new564 bytes
dww’s picture

StatusFileSize
new573 bytes

And here's a patch for drush make itself to log something before calling make_projects(). I still think it's useful to log something then, too, since cloning from Git can often take quite a while and it's nice to let people know something's happening.

dww’s picture

Rerolled #6 for latest master. Any objections?

Once that's in, we can worry about trying to patch drush itself.

dww’s picture

Project: Drupal.org drush » Drush
Version: » 7.x-5.x-dev
Component: Code » Make

With a little more local testing, pushed a modified version of #8 to drupalorg_drush:

http://drupalcode.org/project/drupalorg_drush.git/commit/0995a6f

Moving this back to the drush queue for fixing drush make itself via #7 (which still applies cleanly at the end of the 7.x-5.x branch and still works):

%  drush --include=/.../drupalorg_drush/tests/.. --nocolor make /.../drupalorg_drush/tests/makefiles/do-succeed.make --test --md5=print --drupal-org --drupal-org-whitelist-url=file:///.../drupalorg_drush/tests/packaging_whitelist_data
Starting Drupal.org contrib makefile validation, please wait                [ok]
Beginning to build                                                          [ok]
/Users/wright/.drush/drupalorg_drush/tests/makefiles/do-succeed.make.
update_test_module-7.x-2.2 downloaded.                                      [ok]
update_test_module patched with                                             [ok]
1404774-drupalorg_drush_test_pass_patch.patch.
Generated PATCHES.txt file for update_test_module                           [ok]
776b929663eafddeb58240202dc7308a

This patch is giving us this part:

Beginning to build                                                          [ok]
/.../drupalorg_drush/tests/makefiles/do-succeed.make.
moshe weitzman’s picture

Status: Needs review » Needs work

#7 looks good. We need a reroll for 8.x

dww’s picture

Version: 7.x-5.x-dev » 8.x-6.x-dev
Status: Needs work » Needs review
StatusFileSize
new600 bytes

Ask and ye shall receive! ;)

dww’s picture

StatusFileSize
new539 bytes

I hadn't done a pull, so that patch has some fuzz. Here's a re-roll without fuzz.

moshe weitzman’s picture

Status: Needs review » Fixed

Committed to 6 and 5.

dww’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.