Compare commits

...

4 Commits

Author SHA1 Message Date
shreyas-goenka 7a5b88aea9
Merge 50af744a97 into 984c38e03e 2024-11-20 22:12:16 +05:30
Shreyas Goenka 50af744a97
fix test 2024-11-18 16:32:41 +01:00
Shreyas Goenka 9284fa1e1e
Merge remote-tracking branch 'origin' into remove-uncessary-get 2024-11-18 16:20:06 +01:00
Shreyas Goenka df97a5bb93
Remove unnecessary API call in pipeline runner 2024-10-22 01:29:04 +02:00
2 changed files with 0 additions and 7 deletions

View File

@ -90,11 +90,6 @@ func (r *pipelineRunner) Run(ctx context.Context, opts *Options) (output.RunOutp
// Include resource key in logger.
ctx = log.NewContext(ctx, log.GetLogger(ctx).With("resource", r.Key()))
w := r.bundle.WorkspaceClient()
_, err := w.Pipelines.GetByPipelineId(ctx, pipelineID)
if err != nil {
log.Warnf(ctx, "Cannot get pipeline: %s", err)
return nil, err
}
req, err := opts.Pipeline.toPayload(r.pipeline, pipelineID)
if err != nil {

View File

@ -90,8 +90,6 @@ func TestPipelineRunnerRestart(t *testing.T) {
PipelineId: "123",
}).Return(mockWait, nil)
pipelineApi.EXPECT().GetByPipelineId(mock.Anything, "123").Return(&pipelines.GetPipelineResponse{}, nil)
// Mock runner starting a new update
pipelineApi.EXPECT().StartUpdate(mock.Anything, pipelines.StartUpdate{
PipelineId: "123",