Skip to content

osbuild: add pipeline name to monitor status#1885

Merged
supakeen merged 1 commit intoosbuild:mainfrom
lzap:monitor-pname
Sep 19, 2025
Merged

osbuild: add pipeline name to monitor status#1885
supakeen merged 1 commit intoosbuild:mainfrom
lzap:monitor-pname

Conversation

@lzap
Copy link
Contributor

@lzap lzap commented Sep 19, 2025

In order to print reasonable duration statistics, we need to know which pipeline is currently running. The osbuild monitor JSON status messages now include the pipeline name in the context object. Without this, one could not tell if the slowest stage was RPM in os or build pipeline.

It also adds a testdata that is a complete and unmodified osbuild of a Fedora 42 raw image.


osbuild/osbuild#2196

HMS-9311

break
}

assert.NotEmpty(t, st.Pipeline)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer if the test would be a bit more specific, maybe we can collect all pipeline names and do a assert.Equal(t, []string{"build", "sources", ...) here, wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea, amended comparison of compacted slice.

In order to print reasonable duration statistics, we need to know which
pipeline is currently running. The osbuild monitor JSON status messages
now include the pipeline name in the context object. Without this, one
could not tell if the slowest stage was RPM in os or build pipeline.

It also adds a testdata that is a complete and unmodified osbuild of a
Fedora 42 raw image.
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Love it! Thank you!

Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

Awesome, thank you.

@supakeen supakeen added this pull request to the merge queue Sep 19, 2025
Merged via the queue into osbuild:main with commit 2b5e566 Sep 19, 2025
25 checks passed
@lzap lzap deleted the monitor-pname branch September 19, 2025 17: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.

3 participants