-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[components] Add --rebuild-component-registry option,
--skip-venv
o…
…ption, build cache on code loc construction (#26591) ## Summary & Motivation Add a top-level `--rebuild-component-registry` option that clears the cache and refetches the component registry for the current environment. The reason this is called `--rebuild-component-registry` instead of `--rebuild-cache` is: - It is scoped to just the current environment, whereas the cache encompasses multiple environments - We may cache other info later Also add `--skip-venv` option to `dg generate code-location` to avoid automatic venv setup and cache population on construction. Mostly useful for testing. We also invoke this immediately after `uv sync` when constructing a new code location, so that the cache is loaded. ## How I Tested These Changes New unit tests + manual test of code location generation.
- Loading branch information
Showing
8 changed files
with
219 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.