Problem/Motivation

Follow-up from #3086644: LegacyProject composer templates wrongly reference 8.x + fix test coverage

We don't have an automated test which ensures that the quickstart feature works with the drupal/recommended-project layout.

Proposed resolution

Extend the test(s) from #3086644: LegacyProject composer templates wrongly reference 8.x + fix test coverage to also perform the quick-start command.

Fix all the things that need fixing to allow this to happen.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#10 3096044-10.patch1.43 KBquietone

Comments

Mile23 created an issue. See original summary.

mile23’s picture

Issue summary: View changes
mile23’s picture

Issue summary: View changes

Couple interesting wrinkles:

  • You can't say drupal quick-start without starting a server. We don't want the server, so we use drupal install instead, and then have our build test use its own server to send a request to the installed Drupal.
  • If you use drupal/recommended-project, you can go to the project root and say php ./web/core/scripts/drupal install. However, if you want to start the server, you have to cd web && php ../web/core/scripts/drupal server. This might represent a bug in the quickstart commands, or it might represent a need to store the docroot path in the project directory in some way.
  • When you try to install again after already installing, the command tells you that you can re-install by removing some things in the sites/ directory. Unfortunately, the sites/ directory doesn't exist in the root level (because it's under web/ in this scenario).

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

StatusFileSize
new1.43 KB

I was playing around with this and successfully created the project and installed. It just fails on the first assert after attempt to visit the site. I'm uploading the patch but not running tests.

1) Drupal\BuildTests\QuickStart\InstallTest::testInstall
Behat\Mink\Exception\ExpectationException: The pattern "/Drupal \d+ \(https:\/\/www.drupal.org\)/" was not found anywhere in the "X-Generator" response header.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.