-
Notifications
You must be signed in to change notification settings - Fork 6
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: add helm dependencies for releasing failed #182
Conversation
WalkthroughThe changes in this pull request introduce a new step in the GitHub Actions workflow for releasing Helm charts, specifically adding a step to include dependencies for the Grafana Helm chart. Additionally, the version number of the Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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
🧹 Outside diff range and nitpick comments (2)
.github/workflows/release.yaml (2)
28-31
: LGTM! Consider adding repository update and verification steps.The addition of the Grafana Helm repository is correctly positioned in the workflow. However, to make this more robust:
Consider updating the repository cache and verifying the repository was added successfully:
- name: Add Dependencies run: | helm repo add grafana https://grafana.github.io/helm-charts + helm repo update + # Verify repository was added successfully + helm repo list | grep grafana || exit 1
28-31
: Consider caching Helm repositories.To improve workflow execution time and reliability:
- Consider using GitHub Actions cache for Helm repositories:
- name: Cache Helm repositories uses: actions/cache@v3 with: path: ~/.cache/helm/repository key: ${{ runner.os }}-helm-${{ hashFiles('**/Chart.yaml', '**/Chart.lock') }} restore-keys: | ${{ runner.os }}-helm-
- Add this step before the "Add Dependencies" step to leverage cached repositories.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
- .github/workflows/release.yaml (1 hunks)
- charts/greptimedb-cluster/Chart.yaml (1 hunks)
- charts/greptimedb-cluster/README.md (1 hunks)
✅ Files skipped from review due to trivial changes (2)
- charts/greptimedb-cluster/Chart.yaml
- charts/greptimedb-cluster/README.md
🔇 Additional comments (1)
.github/workflows/release.yaml (1)
28-31
: Verify all required dependencies are included.Let's verify if there are any other dependencies required by the charts:
✅ Verification successful
All required dependencies are correctly configured
Based on the verification results from Chart.yaml, the only required dependency is the Grafana Helm chart from the
grafana
repository (https://grafana.github.io/helm-charts), which is correctly added in the workflow file. No additional repository dependencies need to be included.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for other potential dependencies in Chart.yaml files # Look for dependencies sections in Chart.yaml files echo "Checking for dependencies in Chart.yaml files:" fd "Chart.yaml$" charts/ --exec grep -A 5 "dependencies:" # Look for repository references echo -e "\nChecking for repository references:" fd "Chart.yaml$" charts/ --exec grep -A 2 "repository:"Length of output: 526
Resolve https://github.com/GreptimeTeam/helm-charts/actions/runs/11540644094/job/32121708489.
Trigger the new chart version for releasing.
Summary by CodeRabbit
New Features
Updates
greptimedb-cluster
Helm chart from 0.2.24 to 0.2.25.