Generated with the help of an LLM.

I've worked with an LLM on the fix.
Issue summary all me.

Problem/Motivation

#3438786: [policy] Document when update tests are needed proposes to add update testing info to the core testing gate - which is a good idea. But it said that config schema change requires update testing, and I thought this is more nuanced than that because we check schema when running updates. However, what we don't check for is the addition of new required keys - the usual thing you are doing in an update. But should and we can! That would mean issues like #3320689: Allow WebP quality to be configurable in GD2 image manipulation toolkit settings get update testing for free.

Steps to reproduce

Add a new required keys to any system config - hope existing update tests show you need an update but they don't.

Proposed resolution

Add the ability to use constraint checking in SchemaCheckTestTrait

Remaining tasks

User interface changes

N/a

Introduced terminology

N/a

API changes

Data model changes

N/a

Release notes snippet

N/a

Issue fork drupal-3643535

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

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
smustgrave’s picture

Issue tags: +Needs change record

Nice! Since this is a trait change that contrib module could be using would assume needs a CR.

alexpott’s picture

Issue tags: -Needs change record

Done

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Looks good