Skip to content
Snippets Groups Projects

Resolve #3391990 "Pages"

Merged Wim Leers requested to merge issue/config_inspector-3391990:3391990-pages into 2.1.x
Files
4
@@ -142,7 +142,9 @@ function assess_revision(string $revision, int $day, string $date): \stdClass {
// Ensure `drush config:inspect --statistics` keeps working.
$prep_output[] = @shell_exec("git diff 10.99.$prev 10.99.$day --name-only | grep -q '.install$\|.post_update\.php$' && echo '🤖 Installing DB updates…' && vendor/bin/drush updatedb --yes --quiet");
$prep_output[] = @shell_exec("git diff 10.99.$prev 10.99.$day --name-only | grep -q '.schema\.yml$' && echo '🤖 Erasing discovery cache because config schema changed…' && vendor/bin/drush cc bin discovery --quiet");
$prep_output[] = @shell_exec("git diff 10.99.$prev 10.99.$day --name-only | grep -q '^core\/lib\/Drupal\/Core\/Config\/Schema\/' && echo '🤖 Erasing discovery cache because config schema infrastructure changed…' && vendor/bin/drush cc bin discovery --quiet");
$prep_output[] = @shell_exec("git diff 10.99.$prev 10.99.$day --name-only | grep -q '\/Validation\/' && echo '🤖 Rebuilding container because validation constraints were added or modified…' && vendor/bin/drush cr --quiet");
$prep_output[] = @shell_exec("git diff 10.99.$prev 10.99.$day --name-only | grep -q '^core\/lib\/Drupal\/Core\/.*Kernel' && echo '🤖 Rebuilding container because kernel infrastructure changed…' && vendor/bin/drush cr --quiet");
// Actually gather statistics.
@shell_exec("vendor/bin/drush config:inspect --statistics > statistics/$date.json");
$assessment_json = @shell_exec("jq -r .assessment statistics/$date.json");
Loading