Problem/Motivation

#3566600: Deprecate drupal/core-dev-pinned metapackage and #3575461: Cleanup any remaining deprecations removed updates of the PinnedDevDependencies metapackage, but left the stale composer.json in as well as did not adjust EnsurePHPStanVersionsMatchTest.

This is causing packaging issues and test failures of the PHPStan rules.

Steps to reproduce

Composer update phpstan and see failures in PHPStan rule tests.

Proposed resolution

Remove the stale composer.json and adjust the test.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3631365

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Assigned: mondrake » Unassigned
Status: Active » Needs review
mondrake’s picture

godotislate’s picture

This looks right, but I'm not sure how this affects the subtree pushes. Presumably it should be correct to stop pushing them for 12.x? Somehow the https://github.com/drupal/core-dev-pinned repo has a 12.0.0-beta2 from three weeks ago, https://github.com/drupal/core-dev-pinned/releases/tag/12.0.0-beta2, even though the core release was yesterday.

mondrake’s picture

More cleanup.

longwave’s picture

Status: Needs review » Needs work

The subtree splitter runs during the packaging process and as I understand it should just ignore this package as soon as we remove it from core. Only the DA have access to packaging logs so the only real way to find out is commit and see what happens.

One question on the MR.

xjm’s picture

@drumm located the code that would need to be cbanged in packaging:
https://gitlab.com/drupal-infrastructure/subtree-splitter/-/blob/e0d13fe...

mondrake’s picture

Commented on the inline question.

mondrake’s picture

Status: Needs work » Needs review
mondrake’s picture

Title: Remove stale PinnedDevDependencies composer.json and referencing PHPStan test » Remove stale PinnedDevDependencies composer.json and fix dependent PHPStan test
longwave’s picture

Status: Needs review » Reviewed & tested by the community

OK, that makes sense, if we run into problems where PHPStan inadvertently breaks something we can always swap back to the old way.

This will need #8 to be modified by the DA or packaging of 12.0.x/main will start to fail.

drumm’s picture

https://gitlab.com/drupal-infrastructure/subtree-splitter/-/merge_reques... is the update for core packaging to remove that hard-coding.

xjm’s picture

The infra MR is merged, though not sure when exactly the deployment will happen. Sometime in the next few days was implied. :)

drumm’s picture

The subtree splitter improvement, along with other fixes & a speed improvement are now committed, so this is unblocked.

xjm’s picture

Issue tags: +Needs change record

Can we maybe get a change record for the fact that it will now test with PHPStan on the latest version? I remain a bit worried that we're going to see frequent test failures from that; it belongs more in the updated deps job than the main job, I think. So I want people to be able to track that back here if it starts happening.

Meanwhile, I'm going to go ahead to commit this to unblock the now-lengthy chain of beta targets blocked on this.

  • xjm committed 2ba17462 on main
    fix: #3631365 Remove stale PinnedDevDependencies composer.json and fix...
xjm’s picture

Version: main » 12.0.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed to main. It does not cherry-pick cleanly, so we need a backport version for 12.0.x. Thanks!

mondrake’s picture

Status: Patch (to be ported) » Needs review

NR for the backport

dcam’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs change record

I wrote a change record.

I diffed the raw changes from the MRs. The only difference between the two is the required drupal/core dependency in the composer.json file. So the two MRs are equivalent. The backport looks good.

  • xjm committed d4b447b4 on 12.0.x
    fix: #3631365 Remove stale PinnedDevDependencies composer.json and fix...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 12.0.x and published the change record. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.