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

Multisite Test and Hook Bugfixes #3203

Closed
wants to merge 413 commits into from

Conversation

lcatlett
Copy link
Contributor

@lcatlett lcatlett commented Nov 1, 2018

Fixes #3207

Changes proposed:

  • Update local multisite drush alias because non-self aliases will cause ssh recursion to localhost within VM
  • Fix alias bug for site2 alias in testMultisiteGeneratea
  • Fix hard-coded Acquia Cloud environment variable overrides
  • Resolve phpcs errors in ACSF and muiltisite hooks/settings

Steps to replicate the issues:

To recreate errors phpunit test errors seen on https://travis-ci.org/acquia/blt/jobs/449314384#L5991-L5999:

  1. Run ./vendor/bin/robo release:tests
  2. Observe:
1) Acquia\Blt\Tests\Blt\MultiSiteTest::testMultisiteGenerate
Exception: BLT command exited with non-zero exit code.
/home/travis/build/acquia/blt/tests/phpunit/src/BltProjectTestBase.php:276
/home/travis/build/acquia/blt/tests/phpunit/BltProject/MultiSiteTest.php:88
  1. Run ./vendor/bin/robo sniff-code to observe phpcs and other syntax errors in factory hooks reported in Code style validation error when committing update from 9.2.0 to 9.2.1 #3207

Steps to verify the solution:

  1. PR build passes
  2. ./vendor/bin/robo release:tests / testMultisiteGenerate passes and no phpcs errors are reported (./vendor/bin/robo sniff-code runs as part of the release:tests command)

pjcunnin and others added 30 commits February 27, 2018 09:30
…cquia#2581)

* Fixes acquia#2580: Recent Project Update throws intimidating error.

* Update Plugin.php

Fix typo.
* Connects to acquia#2582: Disabling BLT commit message.

* Update GitCommand.php
* Use HEAD of main Lightning branch

* Trigger rebuild - packagist new deps

* Trigger rebuild - packagist new deps

* Trigger rebuild - packagist new deps

* Trigger rebuild - packagist new deps

* Require HEAD of deprecation-detector until they tag a release that allows for more versions of docblock
…cquia#2590)

* Fixes acquia#2566: Allow site to be installed from existing config.

* Update ConfigCommand.php

* Don't change profiles.
* Fix errors in blt doctor.

* Set isDrupalVmLocallyInitialized to true if command is running in the VM.

* Update message with drush site:alias command.
* Removing Drupal VM command proxy.

* Fix test.
* Fixes from pre-release testing.

* Add chrome to Drupal VM.

* Warn user forcefully when executing commands outside VM.

* Do not include local.setting.php in CI envs.

* Copy local.settings.php to includes.settings.php.

* Try moving again.
* Do not include local.setting.php in CI envs.

* Copy local.settings.php to includes.settings.php.

* Try moving again.

* Prevent warnings in update hook.
* Use --environment option rather than --define.

* Trim = from beginning of --define value for env.
* Require PHP 7.1.

* Add sudo to template .travis.yml to prevent timeout.
bkosborne and others added 22 commits October 5, 2018 18:49
* Update support policies

* Update README.md
* Travis should test Drupal 8.7.

* Disable 8.7 tests.
* Add drush cache dir utility script.

* Enhanced Factory Hook to isolate db-update tasks to tempoary drush cache.

* Update Factory Hooks from BLT template.

* Remove redundant cache clear and rebuild to preserve drush context of current request.

* Style tweaks and setting update version number to 9.2.
* Refactor post-install hook to use temp cache dir per site, use requests instead of ENV.

* Refresh Factory Hooks from template for 9002001.

* Update version number for hook.

* Remove redundant factory hook update.

* Removed unused use statements.

* Style and phpcs updates.
* Fix auto detection of sites dir due to core changes.

* Update proxy and host detection for core updates and Acquia VCL changes.

* PHPCS fixes.
The Acquia docs link pointed to a stale page and the BLT one pointed to the 8.x branch, both throwing 404's. I've updated both to point to the latest iterations of each page.
Fixes acquia#2289 
--------

Changes proposed:
---------
(What are you proposing we change?)

- Update composer contraint on Drupal Coder newest release (8.3.1 as of this date)
- Update composer constraint on squizlabs/php_codesniffer to 3.0.1 (matching Coder)
- Remove the use of a bootstrap file with PHPCS. File paths that are not allowed by filesets won't be sniffed by default.
- Add a tests:phpcs:sniff:modified command to sniff unstaged modified or added files in repo for convenience.
)

Fixes acquia#3214 
--------

Changes proposed:
---------
(What are you proposing we change?)

- check if trusted_reverse_proxy_ips is defined as an array
- if not, set an empty array

Steps to replicate the issue:
----------
(If this PR is not fixing a defect/bug, you can remove this section.)

1. blt setup
2. bootstrap drupal

Steps to verify the solution:
-----------
(How does someone verify that this does what you think does?)

1. apply the patch
2. blt setup / bootstrap Drupal
3. check to ensure following warning does not appear:

```
Warning: in_array() expects parameter 2 to be array, null given in require() (line 27 of /app/vendor/acquia/blt/settings/blt.settings.php).
require('/app/vendor/acquia/blt/settings/blt.settings.php') (Line: 806)
require('/app/docroot/sites/naswa_main/settings.php') (Line: 125)
Drupal\Core\Site\Settings::initialize('/app/docroot', 'sites/naswa_main', Object) (Line: 1056)
Drupal\Core\DrupalKernel->initializeSettings(Object) (Line: 655)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
```
@lcatlett lcatlett changed the title Multisite test bugfix Multisite Test and Hook Bugfixes Nov 10, 2018
@lcatlett lcatlett force-pushed the multisite-test-bugfix branch 2 times, most recently from 1cd8db8 to d244eb6 Compare November 10, 2018 16:22
@lcatlett lcatlett closed this Nov 10, 2018
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.