-
Notifications
You must be signed in to change notification settings - Fork 0
feat: enhance MySQL support and improve script logging #20
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
PR Reviewer Guide 🔍(Review updated until commit 24c34e0)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 24c34e0
Previous suggestionsSuggestions up to commit f514d46
|
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.
Pull Request Overview
This PR adds support for MySQL 8.4 and improves the shell scripts handling Cloud SQL Auth Proxy operations with better error handling, logging, and robustness.
- Added MySQL 8.4 support alongside existing 5.7 and 8.0 versions
- Enhanced shell scripts with proper error handling (
set -eu,pipefail), structured logging, and improved messaging - Fixed Cloud SQL Auth Proxy command syntax and improved connection status checks
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| versions.tf | Removed trailing whitespace |
| variables.tf | Updated description to include MySQL 8.4 support |
| scripts/kill_cloud_sql_proxy.sh | Added error handling, logging function, and improved messaging |
| scripts/execute_sql.sh | Added MySQL 8.4 case, structured logging, error handling, and improved SQL command formatting |
| scripts/execute_cloud_sql_proxy.sh | Refactored with error handling, logging, and fixed proxy command syntax |
| README.md | Updated documentation to reflect MySQL 8.4 support and added clarification about MySQL 8.x role handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f514d46 to
85ca4d3
Compare
|
/improve |
|
/describe |
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.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/improve |
85ca4d3 to
c4feeb8
Compare
|
/describe |
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.
Pull Request Overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b24c64a to
e923c7b
Compare
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.
Pull Request Overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e923c7b to
00b83a5
Compare
ccdb716 to
24c34e0
Compare
|
/describe |
|
Persistent review updated to latest commit 24c34e0 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
24c34e0 to
b918d78
Compare
Stevesibilia
left a comment
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.
LGTM !
PR Type
Enhancement, Bug fix
Description
Add
permissions_refresh_idvariable to force script re-execution without user recreationRefactor privilege grant logic into separate
null_resource.grant_permissionsEnhance MySQL 8.x support: remove
cloudsqlsuperuserrole and clear default rolesImprove shell scripts with better logging, error handling, and Cloud SQL Auth Proxy v2 syntax
Diagram Walkthrough
File Walkthrough
5 files
Add permissions_refresh_id variable with validationRefactor privilege grants and add refresh triggerEnhance MySQL 8.x privilege management and loggingImprove proxy script with v2 syntax and loggingAdd logging and safer proxy shutdown handling5 files
Add permissions_refresh_id parameter to module usageAdd permissions_refresh_id variable definitionAdd example permissions_refresh_id valueUpdate documentation for MySQL 8.4 and refresh mechanismDocument version 0.5.0 changes1 files
Remove trailing whitespace