kevinschoon commented on code in PR #2035:
URL: https://github.com/apache/buildstream/pull/2035#discussion_r2219122694
##########
src/buildstream/_frontend/inspect.py:
##########
@@ -0,0 +1,184 @@
+import json
+import sys
+
+from dataclasses import dataclass
+
+from ruamel.yaml import YAML
+
+from ..types import _Encoding, _ElementState, _PipelineSelection, _Scope
+
+# Inspectable Elements as serialized to the terminal
+@dataclass
+class _InspectElement:
+ name: str
+ description: str
+ workspace: any
+ key: str
+ key_full: str
+ state: str
+ environment: dict[str, str]
+ variables: dict[str, str]
+ artifact: any
+ dependencies: list[str]
+ build_dependencies: list[str]
+ runtime_dependencies: list[str]
+ sources: list[dict[str, str]]
+
+@dataclass
+class _ProjectOutput:
Review Comment:
> A lot of project related data missing here,
> such as which plugins have been loaded and their provenances,
Plugins are now exposed, example:
```json
...
"plugins": [
{
"name": "stack",
"description": "core plugin",
"plugin_type": "element"
},
{
"name": "import",
"description": "core plugin",
"plugin_type": "element"
},
...
]
```
> which cache servers were accessed
All remote state including cache servers it not included in inspect output
currently.
> the provenance string of the project itself (i.e. which junction it was
loaded from and where).
Each project loaded shows the junction from where it comes, example:
```json
...
"junction": "freedesktop-sdk.bst:plugins/buildstream-plugins.bst",
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]