Skip to content

Allow sub-config matches to accept multiple patterns - #4508

Open
cakeni wants to merge 1 commit into
facebook:mainfrom
cakeni:feat/sub-config-multiple-matches
Open

Allow sub-config matches to accept multiple patterns#4508
cakeni wants to merge 1 commit into
facebook:mainfrom
cakeni:feat/sub-config-multiple-matches

Conversation

@cakeni

@cakeni cakeni commented Aug 11, 2026

Copy link
Copy Markdown

Summary

Allow [[sub-config]]'s matches key to accept either a single glob string or a non-empty list of glob strings. A listed sub-config applies when any entry matches, while existing single-string configurations retain their current behavior and precedence.

The change also updates migration code and configuration documentation, and adds coverage for single values, multiple values, and rejection of an empty list.

Fixes #4462

Test Plan

  • python test.py --no-test --no-tensor-shapes --no-conformance --no-jsonschema (formatting passed; local lint compilation is blocked by the installed MinGW headers while building mimalloc)
  • GitHub Actions on the fork branch is in progress with no failures reported at PR creation time

@meta-cla meta-cla Bot added the cla signed label Aug 11, 2026
@cakeni
cakeni marked this pull request as ready for review August 11, 2026 13:30
@meta-codesync

meta-codesync Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D115572089. (Because this pull request was imported automatically, there will not be any future comments.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PyTorch: Allow matches in [[sub-config]] to accept a list of paths/globs

2 participants