-
Notifications
You must be signed in to change notification settings - Fork 0
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
Small workflow updates #5
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 14 minutes and 16 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. WalkthroughWalkthroughThe changes in this pull request enhance the CI/CD workflows by introducing a structured approach that separates the build and publish processes. The workflows now utilize variables for configuration, allowing for greater flexibility in managing Node.js versions and Docker image tagging. The build job employs a matrix strategy for testing across multiple Node.js versions, while the publish job integrates steps for GCP credentials and Docker Buildx setup. Additionally, team reviewer assignments have been updated to reflect current responsibilities. Changes
Possibly related PRs
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: 1
Outside diff range and nitpick comments (1)
.github/workflows/build.yaml (1)
44-58
: The steps for checking out the repository, setting up GCP credentials, and configuring Docker Buildx are essential for the publishing process.The use of the
self-hosted-hoprnet-small
label suggests that a custom self-hosted runner is being used. To suppress the false positive from the static analysis tool, consider adding the custom label to theactionlint.yaml
config file.To suppress the false positive from the static analysis tool, add the custom label to the
actionlint.yaml
config file:# actionlint.yaml labels: - self-hosted-hoprnet-small
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- .github/workflows/build.yaml (2 hunks)
- .github/workflows/merge.yaml (2 hunks)
- .github/workflows/release.yaml (5 hunks)
Additional context used
actionlint
.github/workflows/build.yaml
14-14: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
41-41: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
61-61: shellcheck reported issue in this script: SC2086:info:2:36: Double quote to prevent globbing and word splitting
(shellcheck)
Additional comments not posted (12)
.github/workflows/merge.yaml (3)
27-27
: LGTM!Using a variable for the Node.js version is a great way to improve the configurability and maintainability of the workflow. This allows for easier updates to the Node.js version without modifying the workflow file directly.
39-39
: Verify the Kubernetes driver setup.Setting the
driver
tokubernetes
for the Docker Buildx setup seems to be specific to the self-hosted runner environment. Please ensure that the Kubernetes driver is properly configured and functional in the runner environment.
44-45
: LGTM!Setting
push
totrue
ensures that the built Docker image is pushed to the registry, which is essential for the workflow's purpose.Using variables for the Docker image registry and name is an excellent way to improve the flexibility and maintainability of the workflow. This allows for dynamic configuration and promotes better practices for managing environment-specific settings.
.github/workflows/build.yaml (4)
12-17
: Great job introducing a matrix strategy for testing across multiple Node.js versions!The matrix strategy is a best practice for ensuring compatibility and catching potential issues across different Node.js versions. The selected versions (20.x, 21.x, and 22.x) cover a reasonable range of recent releases.
Tools
actionlint
14-14: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
25-25
: Excellent use of the matrixnode-version
for theSetup Node.js
step!By dynamically using the
node-version
from the matrix, you ensure that each build job runs with the correct Node.js version. This change aligns perfectly with the matrix strategy introduced earlier.
39-42
: Excellent separation of thepublish
job from thebuild
job!Splitting the
publish
process into a separate job that depends on thebuild
job is a great practice for modularity and separation of concerns. Theneeds: build
configuration ensures that thepublish
job only runs if thebuild
job succeeds, preventing the publishing of broken builds.Tools
actionlint
41-41: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
68-69
: Excellent use of variables for the Docker image registry and name!Using
${{ vars.DOCKER_IMAGE_REGISTRY }}
and${{ vars.DOCKER_IMAGE_NAME }}
for the Docker image tagging makes the configuration more flexible and maintainable. This allows for easy customization of the Docker image tagging without modifying the workflow file..github/workflows/release.yaml (5)
32-32
: LGTM!Using a variable for the Node.js version is a good practice. It allows for easier management of the version without modifying the workflow file.
44-44
: Please verify if setting thedriver
tokubernetes
is intentional.The change to set the
driver
for Docker Buildx setup tokubernetes
is not mentioned in the list of alterations or the summary. Please confirm if this change is intended and if it has any impact on the workflow.
73-74
: LGTM!Using variables for the Docker image registry and name is a good practice. It allows for easier management of the image configuration without modifying the workflow file.
95-95
: LGTM!Updating the
team-reviewers
to@hoprnet/hopr-products-team
reflects the current team responsible for code reviews.
107-107
: LGTM!Using the variable
${{ vars.DOCKER_IMAGE_NAME }}
in the notification message is a good practice. It ensures that the message reflects the current Docker image name.
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.
Can you add some info about Deployment to the README?
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.
Looks good
Summary by CodeRabbit
New Features
publish
job to enhance the CI/CD pipeline.Improvements
Bug Fixes