Internal: Scripting the beta release process [ED-20063]#31873
Internal: Scripting the beta release process [ED-20063]#31873
Conversation
Elementor BuildLast updated at: 20250715.1048 ✅ Elementor build is ready for download. You can download the latest build from the link below: 🔗 elementor-3.31.0-20250715.1048.zip The build is available for 3 days. |
Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
There was a problem hiding this comment.
✨ PR Review
The shell script implementation addresses the chmod security issue from previous reviews, but the critical variable expansion problem in sed commands remains unresolved and will prevent the script from functioning correctly.
1 issues detected:
🐞 Bug - Variables in single-quoted strings are not expanded by the shell, causing literal text replacement instead of variable substitution.
Details: Shell variables within sed commands are not properly expanded due to single quote usage in the replacement patterns. The script will insert literal '$DEV_VERSION' text instead of the actual version value when updating files.
File:scripts/prepare-beta-release.sh (81-82)
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using. We'd love your feedback! 🚀
| execOrLog "sed -i '' -E 's/(\* Version: )[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?/\1$DEV_VERSION/' elementor.php" | ||
| execOrLog "sed -i '' -E 's/(define\( 'ELEMENTOR_VERSION', ')[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?'\)/\1$DEV_VERSION'\)/' elementor.php" |
There was a problem hiding this comment.
🐞 Bug - Variable Expansion Issue: Use double quotes for the sed command and properly escape the variable expansion, or use a different approach like separate variable assignment before the sed command.
| execOrLog "sed -i '' -E 's/(\* Version: )[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?/\1$DEV_VERSION/' elementor.php" | |
| execOrLog "sed -i '' -E 's/(define\( 'ELEMENTOR_VERSION', ')[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?'\)/\1$DEV_VERSION'\)/' elementor.php" | |
| execOrLog "sed -i '' -E \"s/(\* Version: )[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?/\1$DEV_VERSION/\" elementor.php" | |
| execOrLog "sed -i '' -E \"s/(define\( 'ELEMENTOR_VERSION', ')[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?'\)/\1$DEV_VERSION'\)/\" elementor.php" |
There was a problem hiding this comment.
✨ PR Review
The beta release script implementation is comprehensive with good error handling and dry-run functionality, but contains a critical variable expansion issue in the sed commands that will prevent proper version updates.
1 issues detected:
🐞 Bug - Single quotes prevent shell variable expansion in sed replacement patterns
Details: The sed commands use single quotes around the replacement pattern which prevents shell variable expansion. The script will update version strings with literal '$DEV_VERSION' instead of the actual version value, causing incorrect version updates in elementor.php.
File:scripts/prepare-beta-release.sh (81-82)
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using. We'd love your feedback! 🚀
| execOrLog "sed -i '' -E 's/(\* Version: )[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?/\1$DEV_VERSION/' elementor.php" | ||
| execOrLog "sed -i '' -E 's/(define\( 'ELEMENTOR_VERSION', ')[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?'\)/\1$DEV_VERSION'\)/' elementor.php" |
There was a problem hiding this comment.
🐞 Bug - Variable Expansion Issue: Replace single quotes with double quotes in the sed replacement patterns, or use string concatenation to properly expand the $DEV_VERSION variable.
| execOrLog "sed -i '' -E 's/(\* Version: )[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?/\1$DEV_VERSION/' elementor.php" | |
| execOrLog "sed -i '' -E 's/(define\( 'ELEMENTOR_VERSION', ')[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?'\)/\1$DEV_VERSION'\)/' elementor.php" | |
| execOrLog "sed -i '' -E \"s/(\\* Version: )[0-9]+\\.[0-9]+\\.[0-9]+(-[a-z0-9]+)?/\\1$DEV_VERSION/\" elementor.php" | |
| execOrLog "sed -i '' -E \"s/(define\\( 'ELEMENTOR_VERSION', ')[0-9]+\\.[0-9]+\\.[0-9]+(-[a-z0-9]+)?'\\)/\\1$DEV_VERSION'\\)/\" elementor.php" |
PR Checklist
PR Type
What kind of change does this PR introduce?
Summary
This PR can be summarized in the following changelog entry:
Description
An explanation of what is done in this PR
Test instructions
This PR can be tested by following these steps:
Quality assurance
Fixes #
✨ PR Description
Purpose: Add automation script for the beta release process to streamline version management and branch creation workflows.
Main changes:
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using. We'd love your feedback! 🚀