Skip to content

[BUILD-1607] feat: map S2I Incremental flag to incremental param - #149

Open
psrvere wants to merge 1 commit into
migtools:mainfrom
psrvere:BUILD-1607-incremental-s2i
Open

[BUILD-1607] feat: map S2I Incremental flag to incremental param#149
psrvere wants to merge 1 commit into
migtools:mainfrom
psrvere:BUILD-1607-incremental-s2i

Conversation

@psrvere

@psrvere psrvere commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Maps the S2I Incremental flag from BuildConfig sourceStrategy to the Shipwright incremental parameter on the converted Build
  • Parameter is only set when the flag is explicitly present in the BuildConfig; unset flag adds no parameter (strategy default applies)
  • Follows the established forcePullpull-policy mapping pattern (BUILD-1606)

Test plan

  • Unit tests: 88/88 PASS (GOWORK=off go test ./convert/...) — covers true/false/nil Incremental cases
  • Cluster e2e: BuildConfig converted on OpenShift, BuildRun succeeded with incremental param set, artifact reuse verified via cached image layers

Related

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The source-strategy conversion now maps enabled S2I incremental builds to a Shipwright incremental=true parameter. Tests cover true, false, and nil values, while the obsolete incremental-build RFE constant is removed.

Changes

S2I incremental conversion

Layer / File(s) Summary
Incremental parameter mapping and validation
convert/buildconfigs.go, convert/buildconfigs_test.go, convert/rfe.go
The source-strategy conversion adds the incremental parameter only when S2I incremental mode is explicitly true, with unit coverage for true, false, and nil values. The obsolete incremental-build RFE constant is removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: mapping the S2I Incremental flag to the Shipwright incremental parameter.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

Rebuilt from mixed branch (delta ae4124c..71cc7d1) applied onto main,
excluding BUILD-1606 ForcePull mapping which stays warn-only pending
operator v0.20. Replaces the inline Incremental warning with
processSourceStrategyIncremental; drops now-unused IncrementalBuildRFE.
@psrvere
psrvere force-pushed the BUILD-1607-incremental-s2i branch from 087002a to c1754f8 Compare July 27, 2026 19:30
@psrvere psrvere changed the title feat: map S2I Incremental flag to incremental parameter (BUILD-1607) [BUILD-1607] feat: map S2I Incremental flag to incremental param Jul 27, 2026
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.

1 participant