Skip to content

progress: add file progress (HMS-10977) - #2493

Merged
achilleas-k merged 2 commits into
osbuild:mainfrom
croissanne:json-progress
Jul 9, 2026
Merged

achilleas-k merged 2 commits into
osbuild:mainfrom
croissanne:json-progress

Conversation

@croissanne

Copy link
Copy Markdown
Member
This progress "bar" creates a file in the output directory ending with
".progress". The file only contains the last status, meaning it is
truncated each time. Each line is a valid JSON struct. Regular messages
without progress are ignored. Finally, no subprogress is printed without
the context of the progress above (for instance the progress of overal
pipelines and the stages within the currently running pipeline will be
contained in a single statement).

@croissanne
croissanne requested a review from a team as a code owner July 7, 2026 11:12
@croissanne
croissanne requested review from avitova, lzap and supakeen and removed request for avitova, lzap and supakeen July 7, 2026 11:12
@croissanne
croissanne marked this pull request as draft July 7, 2026 11:13
@croissanne
croissanne force-pushed the json-progress branch 3 times, most recently from 7633239 to 40ba6f3 Compare July 7, 2026 15:59
@croissanne
croissanne marked this pull request as ready for review July 7, 2026 16:31

@supakeen supakeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Took a cursory look.

Comment thread pkg/progress/progress.go
Comment thread pkg/progress/progress.go Outdated
Comment thread cmd/image-builder/main.go
@croissanne
croissanne marked this pull request as draft July 8, 2026 10:31
@croissanne
croissanne force-pushed the json-progress branch 4 times, most recently from 86e12ce to 7cba8cb Compare July 8, 2026 11:03
@croissanne
croissanne marked this pull request as ready for review July 8, 2026 11:15
The output directory needs to be created before creating the progress
bar, as the file progress will write to a file inside of the output
directory.
This progress "bar" creates a file in the output directory ending with
".progress". The file only contains the last status, meaning it is
truncated each time. Each entry is a valid JSON struct. Regular messages
without progress are ignored. Finally, no subprogress is printed without
the context of the progress above (for instance the progress of overal
pipelines and the stages within the currently running pipeline will be
contained in a single statement).

This progress type is intended for cockpit-image-builder, so it was
modeled after the progress information currently returned by composer.
@supakeen
supakeen added this pull request to the merge queue Jul 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 9, 2026
@croissanne
croissanne added this pull request to the merge queue Jul 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 9, 2026
@achilleas-k
achilleas-k added this pull request to the merge queue Jul 9, 2026
@achilleas-k

Copy link
Copy Markdown
Member

Adding to the merge queue again. The failure should be fixed by #2467 (which is already on the queue right now).

Merged via the queue into osbuild:main with commit dbbe833 Jul 9, 2026
50 checks passed
@croissanne
croissanne deleted the json-progress branch July 9, 2026 20:33
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