Skip to content

[Automated] Update buildah CLI Options - #7687

Open
thomhurst wants to merge 1 commit into
mainfrom
automated/update-cli-options-buildah
Open

thomhurst wants to merge 1 commit into
mainfrom
automated/update-cli-options-buildah

Conversation

@thomhurst

@thomhurst thomhurst commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR contains automatically generated updates to buildah CLI options classes.

The generator scraped the latest CLI help output from the installed tool.

Changes

  • Updated options classes to reflect latest CLI documentation
  • Added new commands if any were detected
  • Updated option types and descriptions

Command coverage

Command coverage report:

  • buildah (1.42.1): 38 commands, tree 6e05611b293df560d3677b63b74487fe09cd87c09e0aeb7c85a94a72202e5e19
    • Baseline comparison: 38 commands at 1.33.7 -> 38 commands at 1.42.1

Verification

  • Solution builds successfully in the read-only generation job

Auto-merge arms once Claude and Codex clear this head and an owner or collaborator posts <!-- generated-options-conversation-clear:<full-head-SHA> --> after dispositioning all conversation findings (see AGENTS.md). GitHub then merges after the required checks pass. A later conversation update requires fresh clearance; a PR with findings is not armed.


🤖 Generated with ModularPipelines.OptionsGenerator

Summary by CodeRabbit

  • Documentation
    • Updated the Buildah CLI reference to include the --imagestore and --transient-store global options.
    • Clarified that both options are available in all editions.

@thomhurst thomhurst added automated dependencies Pull requests that update a dependency file labels Dec 1, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T20:28:08.665192Z 495fbb1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Buildah CLI reference adds --imagestore and --transient-store to the global options table. Both options are marked available in all editions.

Changes: Buildah CLI documentation

Layer / File(s) Summary
Document global options
docs/docs/mp-packages/cli/buildah.md
The global options table adds --imagestore and --transient-store. Both are marked available in all editions.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to 495fb · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "[Automated] Update buildah CLI Options" names the main change: the generated buildah CLI options were refreshed from the help output for buildah 1.42.1. The raw summary, however, describes …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "[Automated] Update buildah CLI Options" names the main change: the generated buildah CLI options were refreshed from the help output for buildah 1.42.1. The raw summary, however, describes only two new global options (--imagestore and --transient-store) in a documentation file, and the excluded generated option classes are not summarized. The title therefore matches the PR objectives but describes a broader change than the visible summary shows. The title is clear and specific enough for a teammate scanning history, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit reads the options with care,
Two new flags hop into the table there.
--imagestore joins the page,
--transient-store shares the stage.
All editions find them listed fair.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bc71aeb6-2bd6-4055-a3d0-17609ab191a6
Commits

Reviewing files that changed from the base of the PR and between 9a919fb and 495fbb1.

Files ignored due to path filters: 21

  • src/ModularPipelines.Buildah/Generated/Buildah.CommandCoverage.json is excluded by !**/generated/**
  • src/ModularPipelines.Buildah/Generated/Buildah.Generation.json is excluded by !**/generated/**
  • src/ModularPipelines.Buildah/Options/BuildahAddOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahBuildOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahCommitOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahConfigOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahCopyOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahFromOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahManifestAddOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahManifestAnnotateOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahManifestCreateOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahManifestPushOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahManifestRemoveOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahMkcwOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahPullOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahPushOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahRunOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Options/BuildahSourcePushOptions.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Services/BuildahManifest.Generated.cs is excluded by !**/*.generated.*
  • src/ModularPipelines.Buildah/Services/IBuildahManifest.Generated.cs is excluded by !**/*.generated.*
Files selected for processing: 1

  • docs/docs/mp-packages/cli/buildah.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 495fbb1664

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +521 to +522
[CliOption("--sbom-scanner-command", Format = OptionFormat.EqualsSeparated)]
public string? SbomScannerCommand { get; set; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve repeated scanner commands in the generated options

When configuring a custom SBOM scan that scans both the image filesystem and build context, this scalar property can emit only one --sbom-scanner-command. The Buildah 1.42.1 documentation explicitly states that multiple commands run in the specified order; its presets likewise supply separate commands for {ROOTFS} and {CONTEXT}. CommandArgumentBuilder.GetValues treats a string as one value, so concatenating commands does not produce repeated options. The same scalar declaration was added to BuildahCommitOptions. Fix the scraper/generator and regenerate both properties as collections so custom multi-command scans can be represented without bypassing the typed API.

AGENTS.md reference: AGENTS.md:L41-L41

Useful? React with 👍 / 👎.

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge.

Summary

Updates the generated Buildah bindings from CLI version 1.33.7 to 1.42.1.

  • Buildah commands can set a storage imagestore and use transient storage.
  • Build and commit options add SBOM scanning and updated timestamp controls.
  • Manifest commands can add artifacts and set metadata on an image index.
  • Buildah add and copy commands offer more control over file sources and paths.
  • Manifest pushes can set whether to push listed images and how to retry.
  • Other Buildah commands expose refreshed settings and option descriptions.

Reviews (1) · Last reviewed commit: "chore: Update buildah CLI options" · Reviewed by Greptile

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Claude Review

Automated regeneration of the Buildah options from CLI 1.33.7 to 1.42.1. It adds the global --imagestore and --transient-store options and many new options for build, commit, add, copy, manifest and other commands. It also updates descriptions, the coverage and generation metadata, and the docs table. I read the full diff and the Codex inline finding. I found no hand edits to generated files and no PublicAPI baseline changes. One generator-level issue is still open: --sbom-scanner-command is generated as a scalar string even though Buildah allows it to repeat.

Review evidence

src/ModularPipelines.Buildah/Options/BuildahBuildOptions.Generated.cs: Checked new SBOM, inherit-annotations, source-date-epoch and rewrite-timestamp options, and the type changes on Output and Timestamp. Attribute formats are consistent. SbomScannerCommand is scalar but the option is repeatable, so that is the open finding.

src/ModularPipelines.Buildah/Options/BuildahCommitOptions.Generated.cs: Added the using ModularPipelines; needed for CliOptionValue on Pull, and the new SBOM, add-file, annotation and unsetannotation options. SbomScannerCommand has the same scalar-versus-repeatable problem as in the build options.

src/ModularPipelines.Buildah/Options/BuildahManifestPushOptions.Generated.cs: --all becomes a bool-valued CliOption because the default is now true. New retry and retry-delay options match the help text. Behavior is consistent with the CLI.

src/ModularPipelines.Buildah/Options/BuildahOptions.Generated.cs: Global options --imagestore and --transient-store were added as virtual properties, matching the existing pattern. The docs table in docs/docs/mp-packages/cli/buildah.md lists the same two options.

docs/docs/mp-packages/cli/buildah.md: The two new global option rows match the generated BuildahOptions properties and are in alphabetical order. No other doc drift found.

src/ModularPipelines.Buildah/Generated/Buildah.Generation.json: The tool version and generator source hash were updated. The command tree hash is unchanged, which agrees with commandCount 38 in the coverage file. This is consistent regeneration metadata.

Generator defect, src/ModularPipelines.Buildah/Options/BuildahBuildOptions.Generated.cs (SbomScannerCommand) and src/ModularPipelines.Buildah/Options/BuildahCommitOptions.Generated.cs (SbomScannerCommand): --sbom-scanner-command is emitted as string?. Buildah 1.42.1 documents that this option can be given several times and that the commands run in order. Presets use separate commands for {ROOTFS} and {CONTEXT}. A scalar property cannot produce repeated flags, so multi-command scans cannot be expressed through the typed API. This is the same issue Codex raised inline. Do not hand-edit the generated files. Fix the scraper or generator so it infers repeatable options for this flag, for example from the 'multiple commands' wording or an explicit override, then regenerate so both properties become IEnumerable<string>?. Raise or link an OptionsGenerator issue first, as AGENTS.md requires.

Optional follow-up notes

Generated API changes break callers: BuildahBuildOptions.Output changes from string? to IEnumerable<string>?, and Timestamp changes from int? to string? in the build and commit options. AGENTS.md says current tool output is authoritative, so this is acceptable and should be mentioned in the release notes.

BuildahManifestPushOptions.All changes from CliFlag to CliOption with a bool value, because Buildah now defaults it to true. That is correct, but callers' output changes: All=true now emits --all=true.

Cosmetic scraper artifacts: the stray backtick in the --sbom-purl-output description ('save scan results to file'), and the new using ModularPipelines;inBuildahCommitOptions(needed forCliOptionValue`).

The generated C# and JSON files were excluded from the other bots' path filters, so only the docs table got an automated review. CI build and command coverage should confirm the generated code.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant