Skip to content

Add ConfigStore copy regression test#3301

Merged
omry merged 1 commit into
mainfrom
pr3301
Jul 20, 2026
Merged

Add ConfigStore copy regression test#3301
omry merged 1 commit into
mainfrom
pr3301

Conversation

@omry

@omry omry commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Cover the lazy-registration behavior fixed by pull request 2928. Build a CachingConfigRepository before registering a structured config, then verify the copied repository discovers and loads the new config through the live ConfigStore.

Follow-up to #2928

Cover the lazy-registration behavior fixed by pull request 2928. Build a CachingConfigRepository before registering a structured config, then verify the copied repository discovers and loads the new config through the live ConfigStore.

Follow-up to #2928
Copilot AI review requested due to automatic review settings July 20, 2026 14:24
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a regression test to ensure CachingConfigRepository continues to resolve structured configs via the current ConfigStore singleton even after the repository is deep-copied (covering the lazy-registration scenario addressed in #2928).

Changes:

  • Add a new test that constructs a CachingConfigRepository, then registers a structured config afterward, and asserts the repository can discover and load it.
  • Update imports in tests/test_config_repository.py to include CachingConfigRepository and ConfigStore.

@omry
omry merged commit b683ca1 into main Jul 20, 2026
29 of 30 checks passed
@omry
omry deleted the pr3301 branch July 20, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants