Skip to content

Conversation

@croissanne
Copy link
Member

NewOSBuildCmd takes inspiration from images[1], allowing consumers to manipulate the exec.Cmd as they see fit. This is useful for asynchronous invocations, io.MultiWriters and use with StatusScanners.

[1] https://github.com/osbuild/image-builder-cli/blob/e348fc2542c6f09e969b021de7ac20e96840895e/pkg/progress/command.go#L51-L69


TODO:

@schutzbot
Copy link
Contributor

This PR changes the images API or behaviour causing integration failures with osbuild-composer. The next update of the images dependency in osbuild-composer will need work to adapt to these changes.

This is simply a notice. It will not block this PR from being merged.

@croissanne croissanne marked this pull request as ready for review October 21, 2025 14:45
@croissanne croissanne requested a review from a team as a code owner October 21, 2025 14:45
@croissanne croissanne requested review from bcl, lzap and supakeen October 21, 2025 14:45
@croissanne croissanne force-pushed the osbuild-exec-rework branch 2 times, most recently from 42f6f71 to cbdd1b7 Compare October 21, 2025 15:22
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

Very good. LGTM.
But the commit message says images when it should say image-builder-cli.

`NewOSBuildCmd` takes inspiration from image-builder-cli[1], allowing consumers to
manipulate the exec.Cmd as they see fit. This is useful for asynchronous
invocations, `io.MultiWriter`s and use with `StatusScanner`s.

[1] https://github.com/osbuild/image-builder-cli/blob/e348fc2542c6f09e969b021de7ac20e96840895e/pkg/progress/command.go#L51-L69
@supakeen supakeen added this pull request to the merge queue Oct 21, 2025
Merged via the queue into osbuild:main with commit f935009 Oct 21, 2025
24 checks passed
@croissanne croissanne deleted the osbuild-exec-rework branch October 21, 2025 20:58
croissanne added a commit to croissanne/osbuild-composer that referenced this pull request Oct 22, 2025
In adapting to the new osbuild/osbuild-exec code, ExportPaths got
dropped. This variable / option was not used anywhere anyway.

Changes with 0.209.0
----------------
  - gitlab: run ostree manifest generation and builds only when needed (osbuild/images#1961)
    - Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza
  - osbuild/osbuild-exec: extract building the osbuild cmd to helper (osbuild/images#1963)
    - Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Simon de Vlieger
  - rhel10: add ism secret & top secret oscap profiles (HMS-9507) (osbuild/images#1962)
    - Author: Gianluca Zuccarelli, Reviewers: Lukáš Zapletal, Sanne Raymaekers
croissanne added a commit to croissanne/image-builder-cli that referenced this pull request Oct 22, 2025
Changes with 0.207.0
----------------
  - Enable fedora 43 unit testing (osbuild/images#1954)
    - Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza
  - fedora: update cloud_kernel_options (osbuild/images#1953)
    - Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Simon de Vlieger
  - test/data/repos/rhel-10.2: fix copy & paste error (osbuild/images#1956)
    - Author: Tomáš Hozza, Reviewers: Achilleas Koutsou, Simon de Vlieger

Changes with 0.208.0
----------------
  - Schutzfile: switch CI runner to Fedora 42 (osbuild/images#1955)
    - Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza
  - Support uploading to IBM Cloud (osbuild/images#1924)
    - Author: Jakub Kadlčík, Reviewers: Achilleas Koutsou, Simon de Vlieger
  - pkg/osbuild: generate osbuild result from status scanner entries (osbuild/images#1941)
    - Author: Sanne Raymaekers, Reviewers: Nobody

Changes with 0.209.0
----------------
  - gitlab: run ostree manifest generation and builds only when needed (osbuild/images#1961)
    - Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza
  - osbuild/osbuild-exec: extract building the osbuild cmd to helper (osbuild/images#1963)
    - Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Simon de Vlieger
  - rhel10: add ism secret & top secret oscap profiles (HMS-9507) (osbuild/images#1962)
    - Author: Gianluca Zuccarelli, Reviewers: Lukáš Zapletal, Sanne Raymaekers
croissanne added a commit to osbuild/osbuild-composer that referenced this pull request Oct 22, 2025
In adapting to the new osbuild/osbuild-exec code, ExportPaths got
dropped. This variable / option was not used anywhere anyway.

Changes with 0.209.0
----------------
  - gitlab: run ostree manifest generation and builds only when needed (osbuild/images#1961)
    - Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza
  - osbuild/osbuild-exec: extract building the osbuild cmd to helper (osbuild/images#1963)
    - Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Simon de Vlieger
  - rhel10: add ism secret & top secret oscap profiles (HMS-9507) (osbuild/images#1962)
    - Author: Gianluca Zuccarelli, Reviewers: Lukáš Zapletal, Sanne Raymaekers
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