@@ -18,7 +18,7 @@ getting lifecycle events from the cluster, we pull from the queue called `lifecy
18
18
2 . ` --queue_name=eventstore/lifecycle-events ` holds the name of the queue to listen
19
19
20
20
Next, you must provide authentication information so the client can establish
21
- a connection to the engflow cluster, unless the cluster is totally open.
21
+ a connection to the EngFlow cluster, unless the cluster is totally open.
22
22
As for today, two authentication methods are available; certificates or
23
23
authentication tokens. These arguments are optional and if they are not given
24
24
but are required by the cluster, the connection is rejected.
@@ -106,32 +106,42 @@ bazel build //... '--remote_cache=grpcs://example.cluster.engflow.com' '--bes_ba
106
106
You should see a series of notifications like this one
107
107
108
108
``` json
109
- type_url: "type.googleapis.com/engflow.eventstore.v1.BuildLifecycleEventNotification"
110
- value: "\022$e03d2afe-1a78-4f14-a0f7-85ae65e7e856\"%user_keyword=engflow:StreamSource=BES\"/user_keyword=engflow:StreamType=ClientBEPStream\272\006&\n$1e4f34ee-4669-4ce0-a3fe-5e115ad4772e"
109
+ {
110
+ type_url: "type.googleapis.com/engflow.eventstore.v1.BuildLifecycleEventNotification"
111
+ value: "\n\adefault\022$9608f439-4c3e-4909-8a0c-f78810322b6b\"\021command_name=test\"\021protocol_name=BEP\"0user_keyword=engflow:CiCdPipelineName=post-merge\"7user_keyword=engflow:CiCdJobName=ci-runners-test-matrix\"\'user_keyword=engflow:Requester=anfelbar\"%user_keyword=engflow:StreamSource=BES\"/user_keyword=engflow:StreamType=ClientBEPStream\272\006&\n$5173658c-4595-4978-8db0-2942b1e7ca13"
112
+ }
111
113
```
112
114
113
- The value, with some garbage characters, contains the uuid for one invocation.
114
- Using this uuid we may get an invocation like this one
115
+ The last value contains the ` uuid ` for one invocation. From the previous example the invocation ` uuid ` is ` 5173658c-4595-4978-8db0-2942b1e7ca13 ` .
116
+ Using this ` uuid ` and the EventStore stub we get invocation data (see [ getInvocations code in Client.java ] [ getinvocations ] ):
115
117
116
118
``` json
117
- StreamedBuildEvent : continuation_token: "CiQyMWFjMDlkNC0zZWIzLTQ2MzQtODI0MS0yMzk0Y2JhN2UwMGEQARjSCiAB "
119
+ Invocation : continuation_token: "CiQwNzBkMjViZi0zZWFjLTRlYTYtODVhOC00ZjA2NDMxNjU2NTcQAA== "
118
120
event {
119
121
stream_id {
120
- build_id: "c88d85cb-08c5-4227-9a24-8e6ea8f262d8"
121
- component: TOOL
122
- invocation_id: "21ac09d4-3eb3-4634-8241-2394cba7e00a"
122
+ build_id: "3a38c04f-233d-465f-a91d-f328c21ab832"
123
+ invocation_id: "070d25bf-3eac-4ea6-85a8-4f0643165657"
123
124
}
125
+ service_level: INTERACTIVE
126
+ notification_keywords: "command_name=test"
127
+ notification_keywords: "protocol_name=BEP"
128
+ notification_keywords: "user_keyword=engflow:CiCdPipelineName=post-merge"
129
+ notification_keywords: "user_keyword=engflow:CiCdJobName=runners-matrix"
130
+ notification_keywords: "user_keyword=engflow:Requester=userxyz"
131
+ notification_keywords: "user_keyword=engflow:StreamSource=BES"
132
+ notification_keywords: "user_keyword=engflow:StreamType=ClientBEPStream"
124
133
build_event {
125
134
event_time {
126
- seconds: 1658502561
127
- nanos: 364000000
135
+ seconds: 1752547458
136
+ nanos: 781000000
128
137
}
129
- component_stream_finished {
130
- type: FINISHED
138
+ invocation_attempt_started {
139
+ attempt_number: 1
131
140
}
132
141
}
133
142
}
134
143
```
135
144
136
145
137
- [ server proto definition ] : demoserver/server.proto
146
+ [ server proto definition ] : demoserver/server.proto
147
+ [ getinvocations ] : https://github.com/EngFlow/example/blob/c9a30c214d487385313245cca24c6b7f3e867785/java/com/engflow/notificationqueue/Client.java#L201
0 commit comments