Skip to content

Commit c4428c7

Browse files
feat: skip argowf logs from ci logs (#5646)
1 parent 455395d commit c4428c7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

api/restHandler/app/pipeline/configure/PipelineConfigRestHandler.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ func NewPipelineRestHandlerImpl(pipelineBuilder pipeline.PipelineBuilder, Logger
199199
}
200200

201201
const (
202-
devtron = "DEVTRON"
203-
SSH_URL_PREFIX = "git@"
204-
HTTPS_URL_PREFIX = "https://"
202+
devtron = "DEVTRON"
203+
SSH_URL_PREFIX = "git@"
204+
HTTPS_URL_PREFIX = "https://"
205+
argoWFLogIdentifier = "argo=true"
205206
)
206207

207208
func (handler *PipelineConfigRestHandlerImpl) DeleteApp(w http.ResponseWriter, r *http.Request) {
@@ -515,7 +516,10 @@ func (handler *PipelineConfigRestHandlerImpl) streamOutput(w http.ResponseWriter
515516
if msgCounter <= lastSeenMsgId {
516517
continue
517518
}
518-
if strings.Contains(string(data), devtron) {
519+
520+
// only skip the logs of argo-wf if found at starting
521+
isAWFLog := msgCounter == 1 && strings.Contains(string(data), argoWFLogIdentifier)
522+
if strings.Contains(string(data), devtron) || isAWFLog {
519523
continue
520524
}
521525

0 commit comments

Comments
 (0)