Repository navigation
fix: pass explicit image to Hook to avoid deprecation warning - #595
Conversation
Walkthrough
ChangesHook runner image configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
PR Summary by QodoFix Hook creation by passing explicit hook-runner image
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
100 rules 1.
|
|
/lgtm |
|
Test Oracle server is not responding, skipping test analysis |
Head branch was pushed to by a user without write access
70394df to
9f0becf
Compare
|
Clean rebase detected — no code changes compared to previous head ( |
1 similar comment
|
Clean rebase detected — no code changes compared to previous head ( |
Code Review by Qodo
Context used✅ Compliance rules (platform):
100 rules 1.
|
|
/lgtm |
|
/verified |
openshift-python-wrapper PR #2759 changed Hook so that image no longer has a hardcoded default — callers that omit it get a DeprecationWarning now and will break when the default is removed entirely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Head branch was pushed to by a user without write access
9f0becf to
9bb6822
Compare
|
/verified |
|
Clean rebase detected — no code changes compared to previous head ( |
|
Clean rebase detected — no code changes compared to previous head ( |
|
Code review by qodo was updated up to the latest commit 9bb6822 |
|
Clean rebase detected — no code changes compared to previous head ( |
|
Code review by qodo was updated up to the latest commit a555365 |
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 `@utilities/hooks.py`:
- Line 186: Replace the mutable hook-runner image value in the hook
configuration with the repository-approved versioned tag or immutable digest,
and define that value as a named constant near the other hook configuration
constants. Add a brief explanatory comment and reference the constant from the
image field instead of embedding the literal.
🪄 Autofix (Beta)
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: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: a3a98a36-b01e-40ed-8c29-8dfc685de50c
📒 Files selected for processing (1)
utilities/hooks.py
|
New container for ghcr.io/redhatqe/mtv-api-tests:latest published |
Summary
image="quay.io/konveyor/hook-runner:latest"to the playbook-basedHookcreation inutilities/hooks.pyDeprecationWarningfrom openshift-python-wrapper after PR #2759 changedHook.imagefrom a hardcoded default to a sentinel that warns when not passed explicitlyaap_job_template_id) are unaffected and don't needimageWhy
The next openshift-python-wrapper release will remove the default entirely, breaking any
Hook()call that doesn't passimage. This change avoids the deprecation warning now and prevents future breakage.Test plan
test_post_hook_retain_failed_vm) still passDeprecationWarningin test output for Hook creation🤖 Generated with Claude Code
Summary by CodeRabbit