Add upstream config sync script and detection accuracy tests#26
Merged
Add upstream config sync script and detection accuracy tests#26
Conversation
… cleanup Add a maintainer script that fetches the latest config files from Drupal core and GitLab CI templates, compares them against local assets, and optionally applies updates. A weekly GitHub Actions workflow detects upstream drift and opens an issue when changes are found. Expand the full install test with detection accuracy assertions for every wrapper command: true positives (tools catch known violations), true negatives (clean code passes), and exclusion path tests (contrib code is not flagged). Clean up Docker volumes (mariadb, mutagen, snapshots) in test teardown to prevent accumulation across test runs.
The local .cspell.json asset has populated ignorePaths, dictionaries, dictionaryDefinitions, and words arrays (expanded by prepare-cspell.php at install time). Upstream has empty arrays. Strip these from both sides before comparing so the script only flags structural changes to fields like description, flagWords, and overrides. Also revert accidental asset updates from test run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/sync-upstream-configs.sh— fetches latest configs from Drupal core (11.x) and GitLab CI templates, compares against local assets, and optionally applies updates with--update.github/workflows/upstream-config-check.yml— weekly automated check that opens a GitHub issue when upstream configs driftCloses #25
Test plan
sync-upstream-configs.shcheck mode reports file status correctlysync-upstream-configs.sh --updateapplies changes with proper headers--branch-core=) and error handling workDCQ_FULL_TESTS=1 bats --jobs 4 ./tests/test.batspasses (full install test with detection accuracy assertions)workflow_dispatchtrigger)