MCPcopy
hub / github.com/gitpod-io/gitpod / Call

Method Call

test/pkg/integration/integration.go:182–207  ·  view source on GitHub ↗
(serviceMethod string, args any, reply any)

Source from the content-addressed store, hash-verified

180}
181
182func (r *RpcClient) Call(serviceMethod string, args any, reply any) error {
183 var err error
184 var new *RpcClient
185 for i := 0; i < connectFailureMaxTries; i++ {
186 if r != nil {
187 if err = r.client.Call(serviceMethod, args, reply); err != nil {
188 time.Sleep(10 * time.Second)
189 r.Close()
190 new, _, err = Instrument(r.component, r.agentName, r.namespace, r.kubeconfig, r.kclient, r.opts...)
191 if err != nil {
192 time.Sleep(10 * time.Second)
193 continue
194 }
195 r = new
196 }
197 } else {
198 new, _, err = Instrument(r.component, r.agentName, r.namespace, r.kubeconfig, r.kclient, r.opts...)
199 if err != nil {
200 time.Sleep(10 * time.Second)
201 continue
202 }
203 r = new
204 }
205 }
206 return err
207}
208
209func (r *RpcClient) Close() error {
210 return r.client.Close()

Callers 15

BuildMethod · 0.80
ListBuildsMethod · 0.80
LogsMethod · 0.80
ResolveBaseImageMethod · 0.80
ResolveWorkspaceImageMethod · 0.80
CloseSendMethod · 0.80
ContextMethod · 0.80
HeaderMethod · 0.80
RecvMethod · 0.80
RecvMsgMethod · 0.80
SendMsgMethod · 0.80
TrailerMethod · 0.80

Calls 2

CloseMethod · 0.95
InstrumentFunction · 0.85

Tested by 15

FetcherMethod · 0.64
PusherMethod · 0.64
ResolveMethod · 0.64
FetchMethod · 0.64
TestCreateBucketFunction · 0.64
TestCpuBurstFunction · 0.64
assertRepositoriesFunction · 0.64
assertDotfilesFunction · 0.64
checkPrebuildLogExistFunction · 0.64