Use branch pinned policy refs in some acceptance tests#3197
Use branch pinned policy refs in some acceptance tests#3197simonbaird wants to merge 3 commits intoconforma:release-v0.8from
Conversation
The ec.oci.image_referrers added recently is not compatible with ec v0.8, so can't use main branch policies any more for these release branch tests. Rather than pin to a specific git sha, I want to use the "stable" branch which we create for this sort of thing.
See also previous commit. I'm keep this separate since it's related but different. The git shas being used are at least a year old. Using the branch is less stable, but possibly better, since it might catch a real bug.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan Review Summary by QodoPin acceptance test policies to release-v0.8 branch
WalkthroughsDescription• Pin policy references to release-v0.8 branch instead of old git SHAs • Fix failing tests due to incompatible ec.oci.image_referrers function • Replace unpinned main branch references with stable branch pinning • Ensure consistency across acceptance test policy configurations Diagramflowchart LR
oldSHA["Old git SHA refs<br/>or main branch"]
newBranch["release-v0.8<br/>branch refs"]
tests["Acceptance tests<br/>fixed"]
oldSHA -- "replaced with" --> newBranch
newBranch -- "stabilizes" --> tests
File Changes1. features/ta_task_validate_image.feature
|
Code Review by Qodo
1. Branch ref makes tests flaky
|
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:
|
There are two related changes:
In reality the branch is not likely to change ever, so it's just about as stable as the git sha. There are arguments for and against the second change, but I think the consistency and the clearer expression of intent is makes the change worthwhile.
Note we should do something similar in main branch, but let's consider that later.
Ref: https://redhat.atlassian.net/browse/EC-1720
Also includes a golang module upgrade which I think is needed to get the EC check green.
Ref: https://redhat.atlassian.net/browse/EC-1721