-
Notifications
You must be signed in to change notification settings - Fork 67
🐛 fix list-compatible-bundles script #1543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix list-compatible-bundles script #1543
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
bfe932b
to
99f1eeb
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1543 +/- ##
==========================================
- Coverage 74.25% 74.22% -0.04%
==========================================
Files 42 42
Lines 3329 3329
==========================================
- Hits 2472 2471 -1
- Misses 676 677 +1
Partials 181 181
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
cat - | select-bundle-documents | that-support-allnamespace-install-mode | that-dont-have-dependencies | extract-olm-package-property | group-versions-by-package-name | filter-by-regex-if-necessary | ||
|
||
echo "NOTE: OLM v1 currently only supports bundles that support AllNamespaces install model, don't have dependencies, and don't contain webhooks" >&2 | ||
echo "WARNING: These results may include bundles with webhooks, which are incompatible" >&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@perdasilva NIT ^ We need to give a space at the end of the file here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
Signed-off-by: Per Goncalves da Silva <[email protected]>
99f1eeb
to
5fe5357
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can we remove the use of "function" as a keyword in defining bash functions, please
Signed-off-by: Per Goncalves da Silva <[email protected]>
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it’s primarily used by us, right?
So since it does not affect the end users, it probably should be 🌱
However, since we're not using the emojis to organize the release notes, I’m not particularly concerned about it.
/lgtm
@perdasilva you just took the fix I proposed in a still open PR (#1539) along with the description and created your own PR with those same exact changes and description, only difference being it is now authored by yourself ;) I don't understand this and the reasoning behind doing that. It doesn't seem to be a critical fix which needs to be merged ASAP, as the script has not been functional for ~4 months. |
I didn't take the fix you proposed, or add a link to your PR in my original description. I fixed a problem I ran into before the break in parallel with you, without knowledge of your PR. Closing as duplicate. |
With this closed there is no addressing the s/function//g issue |
Description
I think when I addressed some reviewer comments I didn't do a good job and mangled the script. This fixes it. I've tested it manually and now it works as advertised.
Adding from #1539 to keep track the history of this change done by @azych
hack/tools/catalogs/list-compatible-bundles script - adds the missing
extract-olm-package-property
function to the call chain and uses the correct name of regex filtering function (filter-by-regex-if-necessary
), making sure the script works.The main issues here were two:
1.
regex_it
did not exist and was renamed during review of the original PR tofilter-by-regex-if-necessary
2.
extract-olm-package-property
call was missing from the chain meaning the filter function couldn't recognize the structure it was expectingBefore change result:
After change result: