Provide information about build progress - #1001
Open
ekharkunov wants to merge 5 commits into
Open
Conversation
# Conflicts: # server/src/main/java/com/defold/extender/AsyncBuilder.java # server/src/main/java/com/defold/extender/Extender.java # server/src/main/java/com/defold/extender/remote/RemoteEngineBuilder.java # server/src/test/java/com/defold/extender/process/ProcessExecutorTest.java
A non-numeric -Dcom.defold.extender.client.progress-reconnect-attempts value made the ExtenderProgressConsumer constructor throw NumberFormatException (CodeQL alert 328). Parse defensively and fall back to the default of 5, logging a warning.
Summary - Extender code coverage reportSummary
Coveragecom/defold/extender - 29.9%
com/defold/extender/builders - 0%
com/defold/extender/cache - 33.3%
com/defold/extender/cache/info - 100%
com/defold/extender/log - 14.2%
com/defold/extender/metrics - 38.8%
com/defold/extender/process - 72.4%
com/defold/extender/progress - 90.6%
com/defold/extender/remote - 89%
com/defold/extender/services - 44.9%
com/defold/extender/services/cocoapods - 51.9%
com/defold/extender/services/data - 80.7%
com/defold/extender/tracing - 21.8%
com/defold/extender/utils - 0%
|
ekharkunov
marked this pull request as ready for review
August 12, 2026 12:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide information about build progress
Adds live build-progress reporting so clients can show what a build is doing instead of just waiting on a poll loop.
Server streams progress over Server-Sent Events at
/job_progress?jobId=.... Builds report coarse stages (SDK, dependencies, compiling, linking, manifests, packaging) plus per-extension file-compile counts and a monotonic overall percentage. Result files are always written before the terminal event, so a subscriber that reacts to "done" sees a consistent/job_status. The endpoint is opt-in (returns 404 when disabled or on older servers) and supportsLast-Event-IDreconnect replay with a per-job subscriber cap.Client consumes the stream on a background thread and forwards updates to an
ExtenderProgressListener. Progress is strictly advisory — the existing poll loop remains the sole authority on completion, so a dropped stream or an old server never affects a build.Fully backward compatible; no change for clients that don't subscribe.
Fixes #582