class FineGrainedBuildManager: (source)
Undocumented
Method | __init__ |
Initialize fine-grained build based on a batch build. |
Method | flush_cache |
Flush AST cache. |
Method | trigger |
Trigger a specific target explicitly. |
Method | update |
Update previous build result by processing changed modules. |
Method | update_module |
Update a single modified module. |
Method | update_one |
Process a module from the list of changed modules. |
Instance Variable | blocking_error |
Undocumented |
Instance Variable | changed_modules |
Undocumented |
Instance Variable | deps |
Undocumented |
Instance Variable | graph |
Undocumented |
Instance Variable | manager |
Undocumented |
Instance Variable | previous_messages |
Undocumented |
Instance Variable | previous_modules |
Undocumented |
Instance Variable | previous_targets_with_errors |
Undocumented |
Instance Variable | processed_targets |
Undocumented |
Instance Variable | stale |
Undocumented |
Instance Variable | triggered |
Undocumented |
Instance Variable | updated_modules |
Undocumented |
Initialize fine-grained build based on a batch build.
manager: State of the build (mutated by this class) graph: Additional state of the build (mutated by this class)
Parameters | |
result:BuildResult | Undocumented |
Flush AST cache.
This needs to be called after each increment, or file changes won't be detected reliably.
Trigger a specific target explicitly.
This is intended for use by the suggestions engine.
Parameters | |
target:str | Undocumented |
Returns | |
List[ | Undocumented |
Update previous build result by processing changed modules.
Also propagate changes to other modules as needed, but only process those parts of other modules that are affected by the changes. Retain the existing ASTs and symbol tables of unaffected modules.
Reuses original BuildManager and Graph.
Parameters | |
changed_modules:List[ | Undocumented |
removed_modules:List[ | Undocumented |
Returns | |
List[ | Undocumented |
Update a single modified module.
If the module contains imports of previously unseen modules, only process one of the new modules and return the remaining work to be done.
module: Id of the module path: File system path of the module force_removed: If True, consider module removed from the build even if path
exists (used for removing an existing file from the build)
Tuple with these items:
Parameters | |
module:str | Undocumented |
path:str | Undocumented |
force_removed:bool | Undocumented |
Returns | |
Tuple[ | Undocumented |
Process a module from the list of changed modules.
Tuple with these items:
Parameters | |
changed_modules:List[ | Undocumented |
initial_set:Set[ | Undocumented |
removed_set:Set[ | Undocumented |
blocking_error:Optional[ | Undocumented |
Returns | |
Tuple[ | Undocumented |