Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal is not installed during behat tests on CI #2707

Closed
mikemadison13 opened this issue Apr 2, 2018 · 3 comments
Closed

Drupal is not installed during behat tests on CI #2707

mikemadison13 opened this issue Apr 2, 2018 · 3 comments
Assignees
Labels
Bug Something isn't working

Comments

@mikemadison13
Copy link
Contributor

mikemadison13 commented Apr 2, 2018

My system information:

  • Operating system type: Acquia Pipelines
  • BLT version: 9.x-dev

Output of blt doctor:

blt doctor
+---------------------------+------------------------------------------------------+
| Property                  | Value                                                |
+---------------------------+------------------------------------------------------+
| %paths.%root              | /var/www/<project>/docroot                               |
| %paths.%site              | sites/default                                        |
| %paths.%modules           | sites/all/modules                                    |
| %paths.%themes            | sites/all/themes                                     |
| %paths.%config-sync       | ../config/default                                    |
| %paths.%files             | sites/default/files                                  |
| %paths.%temp              | /tmp                                                 |
| %paths.%private           | /var/www/<project>/files-private                         |
| admin-theme               | seven                                                |
| alias-searchpaths.0       | /var/www/<project>/docroot/drush/sites                   |
| alias-searchpaths.1       | /var/www/<project>/drush/sites                           |
| blt-version               | 9.0.5                                                |
| bootstrap                 | Successful                                           |
| composer-version          | Composer version 1.6.3 2018-01-31 16:28:17           |
| config-sync               | ../config/default                                    |
| db-driver                 | mysql                                                |
| db-hostname               | localhost                                            |
| db-name                   | drupal                                               |
| db-password               | drupal                                               |
| db-port                   | 3306                                                 |
| db-status                 | Connected                                            |
| db-username               | drupal                                               |
| drupal-settings-file      | sites/default/settings.php                           |
| drupal-version            | 8.5.1                                                |
| drush-alias-files.0       | /var/www/<project>/drush/sites/example.acsf.site.yml     |
| drush-alias-files.1       | /var/www/<project>/drush/sites/example.local.site.yml    |
| drush-alias-files.2       | /var/www/<project>/drush/sites/legacy.site.yml           |
| drush-alias-files.3       | /var/www/<project>/drush/sites/<project>.site.yml            |
| drush-alias-files.4       | /var/www/<project>/drush/sites/<project>.site.yml            |
| drush-alias-files.5       | /var/www/<project>/drush/sites/<project>.site.yml            |
| drush-conf.0              | /var/www/<project>/vendor/drush/drush/drush.yml          |
| drush-conf.1              | /var/www/<project>/drush/drush.yml                       |
| drush-conf.2              | /var/www/<project>/docroot/sites/default/local.drush.yml |
| drush-script              | /var/www/<project>/vendor/bin/drush                      |
| drush-temp                | /tmp                                                 |
| drush-version             | 9.2.1                                                |
| files                     | sites/default/files                                  |
| install-profile           | lightning                                            |
| modules                   | sites/all/modules                                    |
| php-bin                   | /usr/bin/php5.6                                      |
| php-conf.0                | /etc/php/5.6/cli/php.ini                             |
| php-os                    | Linux                                                |
| private                   | /var/www/<project>/files-private                         |
| root                      | /var/www/<project>/docroot                               |
| site                      | sites/default                                        |
| stacks.drupal-vm.inited   | true                                                 |
| stacks.dev-desktop.inited | false                                                |
| temp                      | /tmp                                                 |
| theme                     | <project>                                               |
| themes                    | sites/all/themes                                     |
| uri                       | http://local.<project>.com                               |
+---------------------------+------------------------------------------------------+

When I run this command:

blt tests:behat:run

I get the following output:

> tests:behat:run

[error]  Drupal is not installed 

[error]  Command `tests:behat:run ` exited with code 1. 

And I expected this to happen:
The tests to run.

Note that all of the configuration and other setup stuff works fine, but then the behat tests blow up. I'm using the default / ci alias of self on my blt.yml file... not sure what else to check?

@mikemadison13
Copy link
Contributor Author

@grasmash, @malikkotob and I looked at this for a while today and are still coming up blank.

As far as I can tell, we are hitting this verification https://github.com/acquia/blt/blob/9.x/src/Robo/Commands/Tests/BehatCommand.php#L95 and dying.

  1. it's odd to me that this verification is literally only used in this one place in the entire BLT codebase. did we overlook something?
  2. everything else (even the config import process) does NOT do a verification that Drupal is installed (at all)
  3. the aliases all seem legit... but i dunno? maybe i'm overlooking something?
  4. this IS working on another project through Travis... but not on this one through Pipelines... so I'm unclear if this is a project specific or Pipelines specific (or both) issue.
  5. the tests ARE working locally just fine in my vm (this is only an issue in CI)

would love any thoughts you might have. wondering if i should patch the verification with a -vvv

@mikemadison13
Copy link
Contributor Author

Note: I just updated a second project (this one running php 7.1) and am seeing the same failure in Pipelines.

blt doctor
[warning] The xDebug extension is loaded. This will significantly decrease performance.
+---------------------------+------------------------------------------------------+
| Property                  | Value                                                |
+---------------------------+------------------------------------------------------+
| %paths.%root              | /var/www/<project>/docroot                               |
| %paths.%site              | sites/default                                        |
| %paths.%modules           | sites/all/modules                                    |
| %paths.%themes            | sites/all/themes                                     |
| %paths.%config-sync       | /var/www/<project>/config/default                        |
| %paths.%files             | sites/default/files                                  |
| %paths.%temp              | /tmp                                                 |
| %paths.%private           | /var/www/<project>/files-private                         |
| admin-theme               | seven                                                |
| alias-searchpaths.0       | /var/www/<project>/drush/sites                           |
| blt-version               | 9.0.5                                                |
| bootstrap                 | Successful                                           |
| composer-version          | Composer version 1.6.3 2018-01-31 16:28:17           |
| config-sync               | /var/www/<project>/config/default                        |
| db-driver                 | mysql                                                |
| db-hostname               | localhost                                            |
| db-name                   | drupal                                               |
| db-password               | drupal                                               |
| db-port                   | 3306                                                 |
| db-status                 | Connected                                            |
| db-username               | drupal                                               |
| drupal-settings-file      | sites/default/settings.php                           |
| drupal-version            | 8.5.1                                                |
| drush-alias-files.0       | /var/www/<project>/drush/sites/example.acsf.site.yml     |
| drush-alias-files.1       | /var/www/<project>/drush/sites/example.local.site.yml    |
| drush-alias-files.2       | /var/www/<project>/drush/sites/legacy.site.yml           |
| drush-alias-files.3       | /var/www/<project>/drush/sites/<project>.site.yml            |
| drush-conf.0              | /var/www/<project>/vendor/drush/drush/drush.yml          |
| drush-conf.1              | /var/www/<project>/drush/drush.yml                       |
| drush-conf.2              | /var/www/<project>/docroot/sites/default/local.drush.yml |
| drush-script              | /var/www/<project>/vendor/bin/drush                      |
| drush-temp                | /tmp                                                 |
| drush-version             | 9.2.3                                                |
| files                     | sites/default/files                                  |
| install-profile           | <project>                                                |
| modules                   | sites/all/modules                                    |
| php-bin                   | /usr/bin/php7.1                                      |
| php-conf.0                | /etc/php/7.1/cli/php.ini                             |
| php-os                    | Linux                                                |
| private                   | /var/www/<project>/files-private                         |
| root                      | /var/www/<project>/docroot                               |
| site                      | sites/default                                        |
| stacks.drupal-vm.inited   | true                                                 |
| stacks.dev-desktop.inited | false                                                |
| temp                      | /tmp                                                 |
| theme                     | bartik                                               |
| themes                    | sites/all/themes                                     |
| uri                       | http://local.<project>.com                               |
+---------------------------+------------------------------------------------------+

@mikemadison13
Copy link
Contributor Author

digging into this it would appear that part of the problem is that blt/ci.blt.yml is blindly copied during the 9.x update process from the file that lived in the blt project folder vs. resyncing with the blt template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants