Add pin-policy-bundle acceptance tests for TA task#3324
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe feature tests add snapshot coverage for the ChangesPolicy bundle validation
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
/retest |
The verify-conforma-konflux-ta task had no test coverage for the pin-policy-bundle step. Mirror the two scenarios already covered by the verify-enterprise-contract task: the no-op path (policy uses git sources) and the replacement path (policy uses the OCI tag reference). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36c805b to
ceabb47
Compare
|
Gave it a rebase and a conflict resolve. |
|
🤖 Finished Review · ✅ Success · Started 6:25 PM UTC · Completed 6:29 PM UTC |
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 `@features/ta_task_validate_image.feature`:
- Line 131: Update the POLICY_BUNDLE_DIGEST scenario value in the relevant
feature example to a valid digest different from the task default, then
regenerate or edit the expected snapshots to reflect that supplied digest and
verify the scenario confirms explicit parameter propagation.
🪄 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: Organization UI
Review profile: CHILL
Plan: Enterprise
Run ID: 2f2c6e31-abf4-4b00-b5d8-d6a9892ca6a0
⛔ Files ignored due to path filters (1)
features/__snapshots__/ta_task_validate_image.snapis excluded by!**/*.snap
📒 Files selected for processing (1)
features/ta_task_validate_image.feature
Review — approveTested: pin-policy-bundle acceptance coverage for SummaryThis PR adds acceptance test coverage for the
Checks performed
No findings. Previous runReviewOutcome: Approve ✅ SummaryThis PR adds AnalysisCorrectness
Security — No concerns. Test-only change using existing public test fixtures and keys. Intent & coherence — The PR description accurately describes the changes. The diff matches the stated intent. No scope creep. Style & conventions — Feature file structure, indentation, snapshot naming conventions, and assertion patterns all follow existing precedent exactly. Documentation — No documentation updates needed for a test addition. Cross-repo contracts — Pure test addition with no API, schema, or interface impact. Labels: PR adds acceptance test scenarios for pin-policy-bundle coverage |
The scenario was using the same digest as the task default, so it couldn't distinguish explicit parameter propagation from fallthrough to the default. Use a clearly different test digest so the snapshot comparison actually confirms the supplied value is used. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🤖 Finished Review · ✅ Success · Started 8:56 PM UTC · Completed 9:00 PM UTC |
Summary
pin-policy-bundlestep log assertion to the existing "Golden container image with trusted artifacts" scenario (no-op path: policy uses git sources, OCI tag not found)verify-conforma-konflux-tatask (replacement path: OCI tag replaced with digest-pinned reference)These mirror the two pin-policy-bundle scenarios already covered by the
verify-enterprise-contracttask, closing a gap where the TA task variant had zero dedicated coverage for this step.Test plan
ta_task_validate_imagefeature🤖 Generated with Claude Code