Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
💡 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".
| [CliOption("--sbom-scanner-command", Format = OptionFormat.EqualsSeparated)] | ||
| public string? SbomScannerCommand { get; set; } |
There was a problem hiding this comment.
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 👍 / 👎.
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryUpdates the generated Buildah bindings from CLI version 1.33.7 to 1.42.1.
Reviews (1) · Last reviewed commit: "chore: Update buildah CLI options" · Reviewed by Greptile |
There was a problem hiding this comment.
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.
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
Command coverage
Command coverage report:
Verification
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
--imagestoreand--transient-storeglobal options.