Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Add an option to allow for console output during composer install, to be displayed. #1504

Closed
Graloth opened this issue Aug 4, 2017 · 3 comments

Comments

@Graloth
Copy link

Graloth commented Aug 4, 2017

Issue Type

  • Feature Idea

Your Environment

Vagrant 1.9.5
bash: vboxmanage: command not found
VirtualBox
bash: ansible: command not found

Your OS

  • Windows (10, build 15063.483, version 1703)

Full console output

TASK [geerlingguy.drupal : Define drupal_site_exists.] *************************
ok: [nytsite]

TASK [geerlingguy.drupal : Ensure drupal_deploy_dir directory exists.] *********
changed: [nytsite]

TASK [geerlingguy.drupal : Check out Drupal to the docroot.] *******************
changed: [nytsite]

TASK [geerlingguy.drupal : Check if a composer.json file is present.] **********
ok: [nytsite]

TASK [geerlingguy.drupal : Run composer install if composer.json is present.] ***
changed: [nytsite]

TASK [geerlingguy.drupal : Define drupal_deploy_updated] ***********************
ok: [nytsite]

Summary

Currently, if you use the deploy via git functionality of drupal-vm, it will automatically run composer install if it detects a composer.json-file, it does not output the console output of composer.

It is possible to enable verbose output in ansible, but that does it for everything, not just the composer install output.

My reason for wanting this is that our composer install takes a long time, and to avoid any new developer force-quitting the process, having it output the composer console output, would at least let them know that something is happening.

@oxyc
Copy link
Collaborator

oxyc commented Aug 4, 2017

At least I'm not aware of any way to do this but we could at least clarify that it can take a very long time in the task name. It's happened on several occasions that users thought the task had hung.

ansible/ansible#3887

@fubarhouse
Copy link

fubarhouse commented Aug 6, 2017

It would be possible to send the output of the commands to a log file inside of the vagrant folder.

But yeah piping output asynchronously isn't really an option unless you make the ansible run verbose - and then you still only have access to the output after execution.

I typically run the builds through Jenkins - so I can appreciate the need for this.

@geerlingguy
Copy link
Owner

I've added (this may take a while) to the potentially-long-running tasks as per @oxyc's suggestion.

And while we could consider writing a custom execution plugin for Ansible that does provide streaming output... that's not something I'd like to maintain :)

ashabed pushed a commit to debugacademy/academyvm that referenced this issue Jan 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants