-
Notifications
You must be signed in to change notification settings - Fork 50
NO-JIRA: Write provider version to openshift/provider-version.mk #424
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
base: main
Are you sure you want to change the base?
NO-JIRA: Write provider version to openshift/provider-version.mk #424
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@RadekManak: This pull request explicitly references no jira issue. In 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. |
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
hack/rebasebot-hook-scripts/generate-ocp-manifests.sh (1)
35-39: Add directory existence check before writing generated file.The script attempts to write
openshift/provider-version.mkwithout verifying that theopenshiftdirectory exists. While the script will fail withset -e, adding an explicit check improves clarity and error messages.Apply this diff to verify the directory exists:
# Write provider version to a .mk file that can be included by Makefiles + if [[ ! -d "openshift" ]]; then + echo "Error: openshift directory does not exist" >&2 + exit 1 + fi + cat > openshift/provider-version.mk <<EOF # This file is generated by rebasebot. Do not edit. PROVIDER_VERSION := ${PROVIDER_VERSION} EOF
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
📒 Files selected for processing (1)
hack/rebasebot-hook-scripts/generate-ocp-manifests.sh(1 hunks)
🔇 Additional comments (1)
hack/rebasebot-hook-scripts/generate-ocp-manifests.sh (1)
32-39: Verify downstream Makefiles can include the generated .mk file.The generated file is written to
openshift/provider-version.mkfrom the repository root, then later the script changes into theopenshiftdirectory to runmake ocp-manifests. Ensure that any Makefiles in theopenshiftdirectory that need to referencePROVIDER_VERSIONcorrectly include this file (e.g.,include provider-version.mk).To verify this integration, check that the Makefiles in the openshift directory have appropriate include statements and that
PROVIDER_VERSIONis properly referenced.
Update rebasebot hook script to write PROVIDER_VERSION to a .mk file that can be included by provider Makefiles allowing the version to be reused.
91fffdd to
d8f8d83
Compare
|
@RadekManak: all tests passed! Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
| # Write provider version to a .mk file that can be included by Makefiles | ||
| cat > openshift/provider-version.mk <<EOF | ||
| # This file is generated by rebasebot. Do not edit. | ||
| PROVIDER_VERSION ?= ${PROVIDER_VERSION} | ||
| EOF |
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.
Is this an idiomatic pattern?
Update rebasebot hook script to write PROVIDER_VERSION to a .mk file that can be included by provider Makefiles allowing the version to be reused.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.