Skip to content

Conversation

@Badlazzor
Copy link
Contributor

Use in xcodecommand/xcbeautify and xcodecommand/xcpretty as well

@bitrise-ip-bot
Copy link
Contributor

bitrise-ip-bot commented Sep 4, 2025

Summary

This PR integrates loginterceptor functionality into xcbeautify and xcpretty command runners. However, it introduces a critical compilation bug where an undefined constant is referenced.

Walkthrough

File Summary
xcodecommand/xcbeautify.go, xcodecommand/xcpretty.go Added loginterceptor integration with PrefixInterceptor for log processing

Copy link
Contributor

@bitrise-ip-bot bitrise-ip-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an AI-generated review. Please review it carefully.

Actionable comments posted: 1

buildOutBuffer bytes.Buffer
pipeReader, pipeWriter = io.Pipe()
buildOutWriter = io.MultiWriter(&buildOutBuffer, pipeWriter)
prefixRegexp = regexp.MustCompile(prefix)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐛 Bug

The constant 'prefix' is not defined in this file, causing a compilation error. The constant is defined in xcpretty.go but not accessible here.

🔄 Suggestion:

Suggested change
prefixRegexp = regexp.MustCompile(prefix)
const (
xcbeautify = "xcbeautify"
prefix = `^\[Bitrise.*\].*`
)

@Badlazzor Badlazzor merged commit cdc586f into master Sep 4, 2025
3 checks passed
@Badlazzor Badlazzor deleted the ACI-4111-add-log-interceptor-2 branch September 4, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants