@@ -39,23 +39,14 @@ class InBandDataPlugin(
3939 DataPlugin [InBandConnectionManager , SSHConnectionParams , TDataModel , TCollectArg , TAnalyzeArg ],
4040 Generic [TDataModel , TCollectArg , TAnalyzeArg ],
4141):
42- """Base class for in band plugins.
43-
44- Supports loading and comparing plugin data from scraper run directories
45- (e.g. for compare-runs). Subclasses get find_datamodel_path_in_run,
46- load_datamodel_from_path, get_extracted_errors, and load_run_data.
47- """
42+ """Base class for in band plugins."""
4843
4944 CONNECTION_TYPE = InBandConnectionManager
5045
5146 @classmethod
5247 def find_datamodel_path_in_run (cls , run_path : str ) -> Optional [str ]:
5348 """Find this plugin's collector datamodel file under a scraper run directory.
5449
55- Looks for <run_path>/<plugin_snake>/<collector_snake>/ with result.json
56- whose parent matches this plugin, then a datamodel file (datamodel.json,
57- <data_model_name>.json, or .log).
58-
5950 Args:
6051 run_path: Path to a scraper log run directory (e.g. scraper_logs_*).
6152
@@ -130,9 +121,6 @@ def load_datamodel_from_path(cls, dm_path: str) -> Optional[TDataModel]:
130121 def get_extracted_errors (cls , data_model : DataModel ) -> Optional [list [str ]]:
131122 """Compute extracted errors from datamodel for compare-runs (in memory only).
132123
133- Uses get_compare_content() on the datamodel and ANALYZER.get_error_matches
134- if this plugin has an ANALYZER; otherwise returns None.
135-
136124 Args:
137125 data_model: Loaded DATA_MODEL instance.
138126
@@ -164,10 +152,6 @@ def get_extracted_errors(cls, data_model: DataModel) -> Optional[list[str]]:
164152 def load_run_data (cls , run_path : str ) -> Optional [dict [str , Any ]]:
165153 """Load this plugin's run data from a scraper run directory for comparison.
166154
167- Finds the datamodel file, loads it, and returns a JSON-serializable dict
168- (model_dump) with optional "extracted_errors" if the plugin supports
169- get_compare_content and ANALYZER.get_error_matches.
170-
171155 Args:
172156 run_path: Path to a scraper log run directory or to a datamodel file.
173157
0 commit comments