Skip to content

Sync vendored configs with upstream - #81

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
automation/upstream-config-sync
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
automation/upstream-config-sync

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

The upstream config check found drift and applied it to the vendored assets on this branch.

Important

Press "Approve and run workflows" below before reviewing.

This pull request was opened by GITHUB_TOKEN, so its pull_request
runs are created but held in an action_required state rather than
starting on their own. Approving them starts maintenance-checker,
tests (stable) and tests (HEAD). Closing and reopening the pull
request also works, but approving is one click.

Syncing upstream configs...
Core branch: 11.x | Templates branch: main

drupal-code-quality/assets/.eslintrc.json up to date
drupal-code-quality/assets/.eslintrc.passing.json up to date
drupal-code-quality/assets/.eslintrc.jquery.json up to date
drupal-code-quality/assets/.stylelintrc.json up to date
drupal-code-quality/assets/.prettierrc.json up to date
drupal-code-quality/assets/phpstan.neon  up to date
drupal-code-quality/assets/.phpcs.xml    up to date
drupal-code-quality/assets/.cspell.json  up to date
drupal-code-quality/tooling/scripts/prepare-cspell.php CHANGED
--- local: drupal-code-quality/tooling/scripts/prepare-cspell.php
+++ upstream
@@ -11,14 +11,15 @@
  *                  writing out. Useful when running locally during development
  *                  to avoid overwriting the input .cspell.json file.
  *
- *   -v --verbose   Show verbose debug output.
+ *   -v --verbose   Show verbose debug output. This can also be enabled by
+ *                  setting environment variable SCRIPT_VERBOSE to 1
  */
 
 // Get the arguments.
-$options = getopt('s:v', ['suffix', 'verbose']);
-$quiet = !array_key_exists('v', $options) && !array_key_exists('verbose', $options);
+$options = getopt('s:v', ['suffix:', 'verbose']);
+$verbose = array_key_exists('v', $options) || array_key_exists('verbose', $options) || getenv('SCRIPT_VERBOSE') == '1';
 $suffix = $options['s'] ?? $options['suffix'] ?? '';
-$quiet ?: print '$suffix=' . $suffix . PHP_EOL;
+$verbose && print '$suffix=' . $suffix . PHP_EOL;
 
 // Get the contents of .cspell.json into an array. This file will be either the
 // projects own .cspell.json or the default copied from /assets.
@@ -27,7 +28,7 @@
 if (empty($cspell_json)) {
   throw new RuntimeException("Unable to read $cspell_filename");
 }
-$quiet ?: print 'At start cspell_json=' . print_r($cspell_json, TRUE) . PHP_EOL;
+$verbose && print 'At start cspell_json=' . print_r($cspell_json, TRUE) . PHP_EOL;
 
 // Some directories in the project root are not part of the project.
 $webRoot = getenv('_WEB_ROOT') ?: 'web';
@@ -46,9 +47,9 @@
 if (($composer_bin_dir = getenv('COMPOSER_BIN_DIR')) && ($ci_project_dir = getenv('CI_PROJECT_DIR'))) {
   $relative_bin_dir = str_replace("$ci_project_dir/", "", $composer_bin_dir);
   $non_project_directories[] = $relative_bin_dir;
-  $quiet ?: print '$ci_project_dir=' . $ci_project_dir . PHP_EOL;
-  $quiet ?: print '$composer_bin_dir=' . $composer_bin_dir . PHP_EOL;
-  $quiet ?: print '$relative_bin_dir=' . $relative_bin_dir . PHP_EOL;
+  $verbose && print '$ci_project_dir=' . $ci_project_dir . PHP_EOL;
+  $verbose && print '$composer_bin_dir=' . $composer_bin_dir . PHP_EOL;
+  $verbose && print '$relative_bin_dir=' . $relative_bin_dir . PHP_EOL;
 }
 
 // Specify the files that are always ignored.
@@ -59,11 +60,12 @@
   '*_ignore_*',
   'build.env',
   'get-file-via-curl.sh',
+  '*cspell.json',
   // Include the artifact files that are created in the cspell job.
  ... (176 more lines)

  Updated.

dcq-packages.json vs core                up to date

Summary: 10 checked, 9 up to date, 1 changed, 1 updated

Suggested: DCQ_FULL_TESTS=1 bats --jobs 4 ./tests/test.bats

Validation

The test suite is also dispatched against this branch by a later step of this
run, which gives an early signal without waiting for the reopen. Those runs
report in the Actions tab rather than as checks below:

https://github.com/UltraBob/ddev-drupal-code-quality/actions/workflows/tests.yml?query=branch%3Aautomation/upstream-config-sync

To validate locally, including the full Drupal install test:

git fetch origin automation/upstream-config-sync && git checkout automation/upstream-config-sync
DCQ_FULL_TESTS=1 bats --jobs 4 ./tests/test.bats

@github-actions github-actions Bot added the upstream-sync Automated upstream config drift detection label Nov 2, 2026
@github-actions
github-actions Bot force-pushed the automation/upstream-config-sync branch 2 times, most recently from c255a71 to ea7905e Compare November 16, 2026 19:31
@github-actions
github-actions Bot force-pushed the automation/upstream-config-sync branch from ea7905e to ab927ba Compare November 23, 2026 21:15
Applied automatically by the upstream config check. The pull request body carries the full comparison report.
@github-actions
github-actions Bot force-pushed the automation/upstream-config-sync branch from ab927ba to 5b575a4 Compare November 30, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream-sync Automated upstream config drift detection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants