-
Notifications
You must be signed in to change notification settings - Fork 98
Fix workflows #6769
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 workflows #6769
Conversation
Warning Rate limit exceeded@ausias-armesto has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 43 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request modifies the Changes
Possibly related PRs
Suggested labels
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
Documentation and Community
|
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: 3
🧹 Nitpick comments (1)
.github/workflows/merge.yaml (1)
130-176
: Document the temporary nature of commented-out release steps.The extensive commenting of release steps suggests this is a temporary measure. Consider:
- Adding a TODO comment explaining why these steps are disabled
- Creating a tracking issue for re-enabling these steps
Would you like me to create a GitHub issue to track the re-enablement of these release steps?
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/merge.yaml
(3 hunks)scripts/download-workflow-binaries.sh
(2 hunks)
🧰 Additional context used
🪛 GitHub Actions: Merge
scripts/download-workflow-binaries.sh
[error] GitHub API request failed with HTTP 404 (Not Found) error, followed by a JQ parsing error due to null response
⏰ Context from checks skipped due to timeout of 90000ms (17)
- GitHub Check: hoprd / docker
- GitHub Check: hopli / docker
- GitHub Check: hoprd-x86_64-darwin / binary
- GitHub Check: hoprd-armv7l-linux / binary
- GitHub Check: hoprd-aarch64-linux / binary
- GitHub Check: hopli-x86_64-linux / binary
- GitHub Check: hoprd-aarch64-darwin / binary
- GitHub Check: hopli-x86_64-darwin / binary
- GitHub Check: hopli-aarch64-linux / binary
- GitHub Check: hopli-armv7l-linux / binary
- GitHub Check: hopli-aarch64-darwin / binary
- GitHub Check: Docs / Rust docs
- GitHub Check: tests-smoke-websocket
- GitHub Check: tests-smart-contracts
- GitHub Check: tests-unit-nightly
- GitHub Check: Linter
- GitHub Check: tests-unit
🔇 Additional comments (3)
scripts/download-workflow-binaries.sh (1)
24-25
:⚠️ Potential issueFix GitHub API 404 error by verifying the workflow run query.
The script is failing with a GitHub API 404 error. This could be due to:
- The workflow name has changed from "build.yaml"
- The branch name format might not match the actual branch name
Let's verify the workflow and branch names:
🧰 Tools
🪛 GitHub Actions: Merge
[error] GitHub API request failed with HTTP 404 (Not Found) error, followed by a JQ parsing error due to null response
.github/workflows/merge.yaml (2)
126-126
: Update script call to match new branch naming convention.The script call assumes a specific branch naming format (
bot/close-{PR_NUMBER}
), but this might not match the actual branch names used in the repository.Let's verify the branch naming convention:
✅ Verification successful
Branch naming convention is correctly implemented
The
bot/close-
prefix is the correct convention for this automated workflow, as evidenced by:
- Usage in multiple workflow files (merge.yaml, close-release.yaml)
- Example in the download script documentation:
bot/close-2.2.0-rc.1
- This format is specific to bot operations and doesn't need to match regular PR branch patterns
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify branch naming patterns in recent PRs echo "Recent PR branch names:" gh api repos/hoprnet/hoprnet/pulls | jq -r '.[] | [.number, .head.ref] | @tsv' | head -n 5Length of output: 352
Script:
#!/bin/bash # Check for similar branch naming patterns in workflows and bot configurations echo "Searching workflow files for branch patterns:" rg -l "bot/close-" .github/workflows/ echo -e "\nSearching for bot branch naming patterns:" rg "bot/.*\$.*number" .github/workflows/ echo -e "\nChecking download script content:" cat scripts/download-workflow-binaries.shLength of output: 1714
15-16
: Verify the impact of adding 'synchronize' trigger.Adding the 'synchronize' trigger will run this workflow when PRs are updated, not just when they're closed. This could lead to unnecessary workflow runs and potential race conditions.
Let's check the current workflow triggers:
✅ Verification successful
The 'synchronize' trigger is safe to use in this workflow
The workflow has proper safeguards in place:
- Concurrency group prevents parallel runs
- Release job only runs for PRs with 'release' label
- Most jobs are currently disabled during debugging
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check recent workflow runs to verify trigger conditions echo "Recent workflow runs and their triggers:" gh api repos/hoprnet/hoprnet/actions/workflows/merge.yaml/runs | jq -r '.workflow_runs[] | select(.conclusion != null) | [.event, .head_branch, .conclusion] | @tsv' | head -n 5Length of output: 481
Script:
#!/bin/bash # Check the full workflow configuration echo "Workflow configuration:" cat .github/workflows/merge.yaml echo -e "\nOther related workflows:" fd -e yaml -e yml . .github/workflows/ --exec grep -l "pull_request" {}Length of output: 11146
No description provided.