Follow-up for #3361534: Config validation errors can still occur for contrib modules, disrupting contrib

Created on 16 November 2023, about 1 year ago
Updated 17 November 2023, about 1 year ago

Problem/Motivation

Timeline:

  1. πŸ“Œ KernelTestBase::$strictConfigSchema = TRUE and BrowserTestBase::$strictConfigSchema = TRUE do not actually strictly validate Fixed brought config validation to tests.
  2. πŸ“Œ Follow-up for #3361534: config validation errors in contrib modules should cause deprecation notices, not test failures Fixed made it so that for contrib modules, only deprecation notices are shown (thanks to \Drupal\Core\Config\Schema\SchemaCheckTrait::isContribViolation()). @jibran confirmed that this fixed the test failures in https://www.drupal.org/project/dynamic_entity_reference β†’ πŸ‘

Problems:

  1. ⚠️ Even deprecation notices are too disruptive: (extracted out of πŸ“Œ Follow-up for #3361534: config validation errors in contrib modules should not cause deprecation notices, unless they opt in Active )
    πŸ‘† Fix.
  2. ⚠️😱 @Berdir discovered that the Webform tests are failing nonetheless in 10.2.x, see πŸ› [PP-2] to_email and similar config keys have schema type email but allow other things Needs work . So I automated testing that in πŸ“Œ Test Webform against upcoming 10.2.x on GitLab CI β€” and use concurrency to make tests 6x faster (on GitLab CI) Needs work . The test results confirm what @Berdir said. Which makes this critical because it disrupts contrib significantly 😐
    πŸ‘† Fix.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
ConfigurationΒ  β†’

Last updated 2 days ago

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024