-
Couldn't load subscription status.
- Fork 0
chore: updates repos and optimizes sync-all #19
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
Conversation
WalkthroughThis change updates the Taskfile.yaml to introduce a shared temporary directory variable ( Possibly related PRs
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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: 0
🧹 Nitpick comments (3)
lib/os-modules/Taskfile.yaml (3)
54-54: Quote paths in rsync for safety
To guard against spaces or special characters in file or module names, wrap your source and target paths in quotes:- rsync -av --delete {{.SHARED_TMP_DIR}}/$file ../$module/ + rsync -av --delete "{{.SHARED_TMP_DIR}}/$file" "../$module/"
116-121: Optimize Git clone with single-branch
You’re already using--depth 1; consider adding--single-branchto limit the clone to the default branch and reduce data transfer:- git clone --depth 1 https://github.com/masterpointio/terraform-module-template.git {{.SHARED_TMP_DIR}} + git clone --depth 1 --single-branch https://github.com/masterpointio/terraform-module-template.git {{.SHARED_TMP_DIR}}
143-146: Ensure cleanup runs even on errors
Ifpull-and-branchorsyncfails,cleanup-templatewon’t execute and the temp dir may linger. Consider using Taskfile’son_errorhook (or wrapping in a parent task) to always invoke cleanup:sync-all: on_error: - task: cleanup-template cmds: - task: setup-template - task: pull-and-branch - task: sync - task: cleanup-template
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
lib/os-modules/Taskfile.yaml(4 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.yaml`: You are well-versed in writing and reviewing YAML configurations for the Task tool (https://taskfile.dev/). Provide recommendations for clarity, maintainability, and a...
**/*.yaml: You are well-versed in writing and reviewing YAML configurations for the Task tool (https://taskfile.dev/).
Provide recommendations for clarity, maintainability, and adherence to Taskfile best practices, including usage of variables, environment blocks, and includes.
These configurations may also contain embedded Bash scripts or commands.
Demonstrate bash scripting best practices such as error handling, secure variable expansions, and clear documentation.
lib/os-modules/Taskfile.yaml
🔇 Additional comments (3)
lib/os-modules/Taskfile.yaml (3)
10-11: Add new Terraform modules to DEFAULT_MODULES
The additions ofterraform-googleworkspace-user-group-managementandterraform-googleworkspace-users-groups-automationalign perfectly with the existing modules list.
19-19: Introduce SHARED_TMP_DIR variable
Defining a shared temporary directory centralizes configuration and avoids repeated clones. Nicely done!
122-126: Cleanup template directory
Thecleanup-templatetask cleanly removes the shared directory. This is straightforward and effective.
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.
One suggestion, but LGTM!
Co-authored-by: Matt Gowie <matt@masterpoint.io>
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.
Just one small change requested - remove terraform-googleworkspace-user-group-management
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.
![]()
what
why
references
Summary by CodeRabbit
New Features
Chores