Skip to content

Update build progress message to include build action count#1397

Open
bripeticca wants to merge 2 commits into
swiftlang:mainfrom
bripeticca:add-build-actions-to-progress-update
Open

Update build progress message to include build action count#1397
bripeticca wants to merge 2 commits into
swiftlang:mainfrom
bripeticca:add-build-actions-to-progress-update

Conversation

@bripeticca
Copy link
Copy Markdown
Contributor

Add extra properties to BuildOperationProgressUpdated that track the number of commands to execute + completed, as well as a condensed status message that omits the fraction usually appended to the status property.

Add extra properties to BuildOperationProgressUpdated that
track the number of commands to execute + completed, as well
as a condensed status message that omits the fraction usually
appended to the status property
public let numPossibleMaxExecutedCommands: Int?

/// A condensed status message.
public let condensedStatusMessage: String?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What's the idea behind having statusMessage and condensedStatusMessage?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The current statusMessage contains the <completed> / <to be executed commands> fraction, which we don't want on the SwiftPM side. I wanted to make an additive change to this model since there are other possible consumers that could rely on the current derivation of the statusMessage, but at the same time we need something different for SwiftPM to construct its own progress logs.

@bripeticca
Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bripeticca bripeticca marked this pull request as ready for review May 14, 2026 14:15
@bripeticca
Copy link
Copy Markdown
Contributor Author

@swift-ci test

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.

2 participants