Added publishing of plugin broker logs as runtime logs#11423
Added publishing of plugin broker logs as runtime logs#11423sleshchenko merged 7 commits intoeclipse-che:masterfrom
Conversation
|
@akurinnoy Please review workspace loader related changes 6b8166d |
|
Depends on eclipse-che/che-plugin-broker#12 |
|
@akurinnoy Please validate one more commit in this PR 97c170d |
| BrokerLogEvent withTime(String time); | ||
|
|
||
| /** Returns standard streams, if present otherwise, null will be returned. */ | ||
| String getStream(); |
There was a problem hiding this comment.
Since broker doesn't work with RAW commands execution I would recommend to remove it from broker specific logs.
| @Override | ||
| public void onEvent(BrokerEvent event) { | ||
| if (!workspaceId.equals(event.getWorkspaceId())) { | ||
| if (!workspaceId.equals(event.getRuntimeId().getWorkspaceId())) { |
There was a problem hiding this comment.
Please, check that runtime is not NULL
| case BROKER_STATUS_CHANGED_METHOD: | ||
| case BROKER_RESULT_METHOD: | ||
| workspaceId = ((BrokerStatusChangedEvent) params[0]).getWorkspaceId(); | ||
| workspaceId = ((BrokerStatusChangedEvent) params[0]).getRuntimeId().getWorkspaceId(); |
There was a problem hiding this comment.
Please, check that runtimeId is not NULL
cfb8b5d to
9f1c5a1
Compare
|
ci-test |
|
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
9f1c5a1 to
5897e90
Compare
|
ci-test |
|
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
5897e90 to
2a1f204
Compare
What does this PR do?
The main purpose of this PR is adding publishing of plugin broker logs as runtime logs.
To achieve it there are several commits:
RuntimeLogEventinstead ofMachineLogEvent. New event can be used to publish machine related log or machine independent log (like Plugin Broker). There is optional fieldmachineNamethat indicates whether the event is machine related;PluginBrokerEventasRuntimeLogEvent;Dashboard is not adapted and it still uses deprecated
machine/logJSON RPC method. A separated issue will be created for it.Here is an example of how:
Workspace Loader displays Plugin Broker logs

Dashboard displays Plugin Broker logs

Minor improvements
What issues does this PR fix or reference?
#11069
Release Notes
N/A
Docs PR
N/A