monitor: collect metadata alongside the result of a stage#2215
Merged
croissanne merged 1 commit intoosbuild:mainfrom Oct 8, 2025
Merged
monitor: collect metadata alongside the result of a stage#2215croissanne merged 1 commit intoosbuild:mainfrom
croissanne merged 1 commit intoosbuild:mainfrom
Conversation
b2d9f17 to
831778a
Compare
Some stages generate metadata which contains information that can only be generated when a stage is running. The v2 result contains this metadata which was lost when using the JSONSeqMonitor. By passing stage metadata along to the monitor's result function, the JSONSeqMonitor can print it alongside the result.
Member
|
This is specifically the information that's stored when a stage calls |
Member
Author
indeed! It's currently exposed with the LogMonitor via the result dump at the end Lines 418 to 423 in 0a0a19c but it's not part of the JSONSeqMonitor. |
croissanne
added a commit
to croissanne/images
that referenced
this pull request
Oct 28, 2025
The size of the status message from the org.osbuild.rpm stage in the os pipeline depends on how many packages a user has requested on top of the base set. As a result, the monitor will always be breakable, but let's increase the buffer size substantially to make it very unlikely that users will hit this. Especially with the addition of metadata [1], the status entry size grew substantially for rpm stages. The rpm stage has an entry in the metadata for each package that was installed (in addition to a very large output message). [1]: osbuild/osbuild#2215
croissanne
added a commit
to croissanne/images
that referenced
this pull request
Oct 28, 2025
The size of the status message from the org.osbuild.rpm stage in the os pipeline depends on how many packages a user has requested on top of the base set. As a result, the monitor will always be breakable, but let's increase the buffer size substantially to make it very unlikely that users will hit this. Especially with the addition of metadata [1], the status entry size grew substantially for rpm stages. The rpm stage has an entry in the metadata for each package that was installed (in addition to a very large output message). [1]: osbuild/osbuild#2215
croissanne
added a commit
to croissanne/images
that referenced
this pull request
Oct 28, 2025
The size of the status message from the org.osbuild.rpm stage in the os pipeline depends on how many packages a user has requested on top of the base set. As a result, the monitor will always be breakable, but let's increase the buffer size substantially to make it very unlikely that users will hit this. Especially with the addition of metadata [1], the status entry size grew substantially for rpm stages. The rpm stage has an entry in the metadata for each package that was installed (in addition to a very large output message). [1]: osbuild/osbuild#2215
croissanne
added a commit
to croissanne/images
that referenced
this pull request
Oct 28, 2025
The size of the status message from the org.osbuild.rpm stage in the os pipeline depends on how many packages a user has requested on top of the base set. As a result, the monitor will always be breakable, but let's increase the buffer size substantially to make it very unlikely that users will hit this. Especially with the addition of metadata [1], the status entry size grew substantially for rpm stages. The rpm stage has an entry in the metadata for each package that was installed (in addition to a very large output message). [1]: osbuild/osbuild#2215
croissanne
added a commit
to croissanne/images
that referenced
this pull request
Oct 28, 2025
The size of the status message from the org.osbuild.rpm stage in the os pipeline depends on how many packages a user has requested on top of the base set. As a result, the monitor will always be breakable, but let's increase the buffer size substantially to make it very unlikely that users will hit this. Especially with the addition of metadata [1], the status entry size grew substantially for rpm stages. The rpm stage has an entry in the metadata for each package that was installed (in addition to a very large output message). [1]: osbuild/osbuild#2215
github-merge-queue bot
pushed a commit
to osbuild/images
that referenced
this pull request
Oct 28, 2025
The size of the status message from the org.osbuild.rpm stage in the os pipeline depends on how many packages a user has requested on top of the base set. As a result, the monitor will always be breakable, but let's increase the buffer size substantially to make it very unlikely that users will hit this. Especially with the addition of metadata [1], the status entry size grew substantially for rpm stages. The rpm stage has an entry in the metadata for each package that was installed (in addition to a very large output message). [1]: osbuild/osbuild#2215
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.
Some stages generate metadata which contains information that can only be generated when a stage is running. The v2 result contains this metadata which was lost when using the JSONSeqMonitor. By passing stage metadata along to the monitor's result function, the JSONSeqMonitor can print it alongside the result.