Skip to content

Conversation

@chrisburr
Copy link
Member

Summary

  • The with_config_repo fixture was directly importing Config from diracx.core.config, bypassing the extension discovery system
  • This caused a mismatch when extensions (like gubbins) add fields to Config - the fixture created test data with the base schema, but ConfigSource would later try to validate it with the extended schema
  • Now uses select_from_extension() to discover the correct Config class, consistent with how ConfigSource.read_raw() works

The `with_config_repo` fixture was directly importing Config from
diracx.core.config, bypassing the extension discovery system. This
caused a mismatch when extensions like gubbins add fields to Config -
the fixture would create test data with the base schema, but ConfigSource
would later try to validate it with the extended schema.

Now uses select_from_extension() to discover the correct Config class,
consistent with how ConfigSource.read_raw() works.
@chrisburr chrisburr enabled auto-merge (squash) January 19, 2026 13:46
@read-the-docs-community
Copy link

Documentation build overview

📚 diracx | 🛠️ Build #31059667 | 📁 Comparing 90955e1 against latest (d60ad4c)


🔍 Preview build

Show files changed (1 files in total): 📝 1 modified | ➕ 0 added | ➖ 0 deleted
File Status
admin/reference/values/index.html 📝 modified

@chrisburr chrisburr merged commit 49d0fb8 into DIRACGrid:main Jan 19, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants