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

BLT Blocking Installation of Upgrade Status Module #3615

Closed
mikemadison13 opened this issue May 3, 2019 · 9 comments
Closed

BLT Blocking Installation of Upgrade Status Module #3615

mikemadison13 opened this issue May 3, 2019 · 9 comments
Labels
Bug Something isn't working Enhancement A feature or feature request
Milestone

Comments

@mikemadison13
Copy link
Contributor

mikemadison13 commented May 3, 2019

Describe the bug
When trying to add the drupal/upgrade_status module for testing, I am getting the following errors:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for nikic/php-parser (locked at v3.1.5) -> satisfiable by nikic/php-parser[v3.1.5].
    - drupal/upgrade_status 1.0.0-alpha2 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - drupal/upgrade_status 1.0.0-alpha1 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - drupal/upgrade_status 1.0.0-alpha2 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - drupal/upgrade_status 1.0.0-alpha1 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - Conclusion: don't install mglaman/phpstan-drupal 0.11.3
    - Installation request for drupal/upgrade_status ^1.0@alpha -> satisfiable by drupal/upgrade_status[1.0.0-alpha2, 1.0.0-alpha1].

After digging, it looks like since we have the sensiolabs-de/deprecation-detector in blt 9.2 (https://github.com/acquia/blt/blob/9.2.x/composer.required.json#L22), which requires nikic/php-parser: ~3.0 (https://packagist.org/packages/sensiolabs-de/deprecation-detector) and this is causing significant headaches. I'm not convinced that upgrade_status can be installed with BLT 9.2.x in its current state because of sensiolabs-de/deprecation-detector.

To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:

  1. Run composer require drupal/upgrade_status

Expected behavior
Module should be added by composer

Detailed error output

composer require drupal/upgrade_status 
    1/3:	https://packages.drupal.org/8/drupal/provider-2016-2$c5257985340fad1023080c9b1c04ac467256826931d5fc8120ca92ad557e1779.json
    2/3:	https://packages.drupal.org/8/drupal/provider-2019-2$583115e2b9c06531a9a52df57d78b04c4db50c38ae926e68b106fd583c063793.json
    3/3:	https://packages.drupal.org/8/drupal/provider-2019-1$ef051d04b53cec890c889ed817d18f95c78d64b7b60683461105a602d14558b3.json
    Finished: success: 3, skipped: 0, failure: 0, total: 3
    1/1:	https://asset-packagist.org/p/provider-latest/73932407bf9a0d433b3adf568bf12522fd595cb2349c6434cb902e94cb7874c7.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
    1/5:	http://repo.packagist.org/p/provider-latest$83e98cada341e0536ec76a7d439d2cd409b37add307a91fd176efdfbc0d48dc8.json
    2/5:	http://repo.packagist.org/p/provider-2019-04$e1760a35263716e978ecef8506fb56c02e7776d5a0748e6b3b9b8a6488a0b74b.json
    3/5:	http://repo.packagist.org/p/provider-2018-10$eecf4a450d7549eec0af7470144ed85a85d4795293555f430b40bdddb67ad500.json
    4/5:	http://repo.packagist.org/p/provider-2019-01$f5f95240ebfb1318bec1bf8aaaa72452aaa76640164acd018d6dfaa19681cc41.json
    5/5:	http://repo.packagist.org/p/provider-2017$23c86588a1baecd62425bbad7fe994e9787a71b930034735ce7f3c6e85e997c3.json
    Finished: success: 5, skipped: 0, failure: 0, total: 5
Using version ^1.0@alpha for drupal/upgrade_status
./composer.json has been updated
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for nikic/php-parser (locked at v3.1.5) -> satisfiable by nikic/php-parser[v3.1.5].
    - drupal/upgrade_status 1.0.0-alpha2 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - drupal/upgrade_status 1.0.0-alpha1 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - drupal/upgrade_status 1.0.0-alpha2 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - drupal/upgrade_status 1.0.0-alpha1 requires mglaman/phpstan-drupal 0.11.3 -> satisfiable by mglaman/phpstan-drupal[0.11.3].
    - Conclusion: don't install mglaman/phpstan-drupal 0.11.3
    - Installation request for drupal/upgrade_status ^1.0@alpha -> satisfiable by drupal/upgrade_status[1.0.0-alpha2, 1.0.0-alpha1].


Installation failed, reverting ./composer.json to its original content.

Additional context
As far as I can tell, BLT 10.x has removed sensiolabs-de/deprecation-detector (see 4fe4cbe#diff-689639047be6809fd5ab243af5990fff). I am continuing to dig here.

@danepowell we should discuss adding this module by default to BLT's Drupal module list, as it is going to be a recommended addition to all projects moving forward to begin preparing for the 2020 release of Drupal 9.

@mikemadison13
Copy link
Contributor Author

I can confirm this isn't a problem with BLT 10.x.

mikemadison13 added a commit to mikemadison13/blt that referenced this issue May 3, 2019
@mikemadison13 mikemadison13 added Bug Something isn't working 10.x Enhancement A feature or feature request labels May 3, 2019
@danepowell danepowell added Bug Something isn't working and removed Bug Something isn't working labels May 3, 2019
@danepowell danepowell modified the milestones: 10.0.1, 10.1.0 May 3, 2019
@goba
Copy link
Member

goba commented May 7, 2019

IMHO proper integration of the command line tools should be added rather than the UI module. The command line tool can run in build/validation, unlike the module. The module is targeted at people who want full site reports to asses complete status of a site grouped by projects. THAT is not provided by the command line tools. I don't understand where #3386 went bad.

@ShannonVettes
Copy link

I think that what Mike is saying is that the module has value to him if he can export the work to be done into ticketing systems, and drupalcheck allows him to do that. Without this feature, he is unlikely to use the module.

What's the complexity of changing the export ? Seems like a nice win that adds good value to the module if the effort is not too high.

@goba
Copy link
Member

goba commented May 7, 2019

It is not hard to make the module output ASCII formatted error reports, but we need to decide if that is what we do for each single module export or we have some kind of export format selector, etc. In the meantime drupal-check does what Mike needs and a lot more benefits in the context of BLT.

@ShannonVettes
Copy link

If I'm thinking to export a list and import it into a ticket system, I probably want multiple projects, so maybe ascii export is most useful for the export of all the things and not individual modules.

@goba
Copy link
Member

goba commented May 7, 2019 via email

@mpodorov
Copy link

Will there be the 9.2.9 release soon?

@mikemadison13
Copy link
Contributor Author

the PR above was merged, i think this issue can probably be closed, don't you think @danepowell ? it also might be nice to cut 9.2.9 even though it's technically in LTS to unblock people on this issue.

@danepowell
Copy link
Contributor

The next scheduled release is on June 5, per the support policy (releases are the first Wednesday of each month). This issue should have been closed automatically via that PR, not sure why it wasn't.

The way to take advantage of this (or any other fix) prior to that release is to either update to the 9.2.x-dev version of BLT, or add this to your composer.json:

patches: {
  "acquia/blt": {
    "Allow upgrade status module.": "https://patch-diff.githubusercontent.com/raw/acquia/blt/pull/3621.patch"
  }
}

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

Successfully merging a pull request may close this issue.

5 participants