CLID-629: Add integration test for manifest list sub-digests in dry-run mapping.txt - #1491
CLID-629: Add integration test for manifest list sub-digests in dry-run mapping.txt#1491adolfo-ab wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@adolfo-ab: This pull request references CLID-629 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target either version "5.0." or "openshift-5.0.", but it targets "openshift-5.1" instead. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adolfo-ab The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
WalkthroughThe integration tests add a manifest-list dry-run scenario. The test fixture defines a multi-architecture additional image. Helpers parse ChangesManifest-list dry-run validation
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
tests/integration/dry_run_test.go (1)
110-118: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winAssert the complete top-level mapping.
The helper checks that
topLevelSourceexists, then uses the destination read frommapping.txtas the expected base for every sub-digest. A wrong top-level repository can therefore pass if the sub-digest entries use the same wrong repository. Pass the expected top-level destination toexpectMappingContainsManifestListSubDigestsand assert the complete top-level mapping before derivingdestBase.🤖 Prompt for 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. In `@tests/integration/dry_run_test.go` around lines 110 - 118, Update expectMappingContainsManifestListSubDigests to accept the expected top-level destination, assert the complete topLevelSource-to-destination mapping with that value, and only then derive destBase from the expected destination rather than the mapping file’s value. Update all callers to pass the expected destination.
🤖 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.
Nitpick comments:
In `@tests/integration/dry_run_test.go`:
- Around line 110-118: Update expectMappingContainsManifestListSubDigests to
accept the expected top-level destination, assert the complete
topLevelSource-to-destination mapping with that value, and only then derive
destBase from the expected destination rather than the mapping file’s value.
Update all callers to pass the expected destination.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 1f3bef65-7977-4551-800b-4ac7b3e31a91
📒 Files selected for processing (2)
tests/integration/dry_run_test.gotests/integration/testdata/imagesetconfigs/dry_run/isc-manifest-list.yaml
|
@adolfo-ab: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Github / Jira issue:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Expected Outcome
Please describe the outcome expected from the tests.
Summary by CodeRabbit