Tweak update-golang builder reuse - #3280
Conversation
rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift-eng/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughChangesGolang assembly-aware update flow
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant CLI
participant UpdateGolangPipeline
participant group_yml
participant Brew
participant Konflux
participant RPMProcessing
CLI->>UpdateGolangPipeline: provide assembly and build_system
UpdateGolangPipeline->>UpdateGolangPipeline: normalize both to Konflux
UpdateGolangPipeline->>group_yml: validate enabled assembly
UpdateGolangPipeline->>Brew: check existing builder
UpdateGolangPipeline->>Konflux: check existing builder
alt builder is missing
UpdateGolangPipeline->>RPMProcessing: process required RPM versions
RPMProcessing-->>UpdateGolangPipeline: return RPM and plashet results
else builder exists
UpdateGolangPipeline-->>UpdateGolangPipeline: reuse existing builder
end
Possibly related PRs
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error)
✅ Passed checks (10 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pyartcd/pyartcd/pipelines/update_golang.py`:
- Around line 370-396: Ensure RHEL 10 is still included in the RPM preparation,
tagging, and buildroot-availability decision while remaining excluded from image
builder lookups and image builds. Update the gating logic around
el_nvr_map_for_images, brew_missing, konflux_missing, and process_rpm_builds so
an RHEL 10-only request or fully existing RHEL 8/9 builders still processes RPM
builds, and guard get_existing_builders_brew and get_existing_builders_konflux
when the image map is empty. Add a regression test covering an RHEL 10-only
request.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift-eng/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 333f3a42-43a6-42d5-8e22-e781482e77fb
📒 Files selected for processing (2)
pyartcd/pyartcd/pipelines/update_golang.pypyartcd/tests/pipelines/test_update_golang.py
rh-pre-commit.version: 2.4.0 rh-pre-commit.check-secrets: ENABLED
What changed
--build-system both --assembly testas a Konflux-only pipeline run, silently skipping Brew builder operations.GO_LATEST/GO_EXTRA/GO_PREVIOUS,--tag-builds, RPM availability, and plashet preparation only when at least one requested builder is missing.Why
Test assemblies cannot safely use Brew floating tags, but a dual-build-system invocation should still be able to run its Konflux half. Existing builders also do not need build-preparation validation or repeated RPM/plashet work.
Impact
Existing builder images are reused earlier. Test-assembly runs requested with both build systems proceed through Konflux without reporting a Brew error. Brew-only test-assembly runs remain unsupported.
Validation
pytest -q -p no:cacheprovider pyartcd/tests/pipelines/test_update_golang.py(111 passed)ruff check pyartcd/pyartcd/pipelines/update_golang.py pyartcd/tests/pipelines/test_update_golang.pyruff format --check pyartcd/pyartcd/pipelines/update_golang.py pyartcd/tests/pipelines/test_update_golang.pySummary by CodeRabbit
New Features
Bug Fixes