You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the condition for reporting skipped tests to also check if needs.detect-versions.outputs.has-changes is false, ensuring that the PR comment accurately reflects a "skipped" status when no tests are run.
-if [ "$TEST_STATUS" = "skipped" ] || [ "$VERSIONS" = "[]" ]; then+HAS_CHANGES='${{ needs.detect-versions.outputs.has-changes }}'++if [ "$TEST_STATUS" = "skipped" ] || [ "$VERSIONS" = "[]" ] || [ "$HAS_CHANGES" = "false" ]; then
echo "**Status:** ⏭️ Tests skipped - no versions to test" >> comment.md
echo "" >> comment.md
echo "ℹ️ **Why were tests skipped?**" >> comment.md
echo "" >> comment.md
echo "Tests are only run when:" >> comment.md
echo "- \`releases.properties\` is modified with new/updated versions, OR" >> comment.md
echo "- PR title contains version numbers (e.g., \"11.4.8\", \"10.11.14\") that exist in \`releases.properties\`" >> comment.md
echo "" >> comment.md
echo "**To trigger tests:**" >> comment.md
echo "1. Add version numbers to your PR title (e.g., \"Update docs for MariaDB 11.4.8\")" >> comment.md
echo "2. Or modify \`releases.properties\` to add/update versions" >> comment.md
echo "3. Or manually trigger the workflow from the Actions tab" >> comment.md
elif [ "$TEST_STATUS" = "success" ]; then
Apply / Chat
Suggestion importance[1-10]: 9
__
Why: This suggestion fixes a significant bug in the reporting logic where a skipped test run would be incorrectly reported as successful, providing misleading feedback in the PR comment.
High
Fix incorrect step success reporting
Remove the exit 1 command from the "Verify MariaDB Installation" step to prevent the step from being marked as failed when executables are missing, as the success=false output is sufficient for downstream logic.
Why: The suggestion correctly identifies that exit 1 combined with continue-on-error: true causes the step to be marked as failed, which contradicts the workflow's design of using output variables to control logic and reporting. Removing exit 1 aligns the step's behavior with the overall workflow design, ensuring accurate status reporting in the final summary.
Medium
Use flexible regex for version validation
Update the grep command in the version validation check to use a more flexible regular expression (-qE "^${VERSION}\s=") that accommodates variable spacing in the releases.properties file.*
-if grep -q "^${VERSION} =" releases.properties; then+if grep -qE "^${VERSION}\s*=" releases.properties; then
VERSIONS="[\"${VERSION}\"]"
HAS_CHANGES="true"
echo "✅ Version $VERSION found in releases.properties"
else
echo "❌ ERROR: Version $VERSION not found in releases.properties"
echo "Available versions:"
get_all_versions | head -10
exit 1
fi
Apply / Chat
Suggestion importance[1-10]: 6
__
Why: The suggestion correctly identifies that the grep check is too strict and improves robustness by allowing flexible spacing, making the script less prone to formatting-related errors.
Low
Improve version validation from PR title
Modify the grep command used for validating versions from the PR title to use a more flexible regex (-qE "^${ver}\s="), ensuring it can handle variable spacing in the releases.properties file.*
for ver in $PR_VERSIONS; do
- if grep -q "^${ver} =" releases.properties; then+ if grep -qE "^${ver}\s*=" releases.properties; then
echo "✅ Version $ver found in releases.properties"
VALID_VERSIONS="${VALID_VERSIONS}${ver}\n"
else
echo "⚠️ Version $ver not found in releases.properties"
fi
done
Apply / Chat
Suggestion importance[1-10]: 6
__
Why: This suggestion correctly points out a strict grep check for versions from the PR title and improves its robustness by allowing flexible spacing, which prevents valid versions from being missed.
Low
High-level
Refactor the monolithic workflow file
The monolithic 700-line workflow file should be refactored. Extract the large, complex inline shell and PowerShell scripts into separate files to improve modularity, readability, and maintainability.
Why: The suggestion correctly identifies a major maintainability issue in the 700-line mariadb-test.yml file and proposes a standard best practice to extract complex inline scripts, which would significantly improve the workflow's structure and readability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Tests
Description
Add comprehensive CI/CD workflow for automated MariaDB testing
Create extensive documentation for CI/CD testing workflow
Remove Eclipse IDE launch configuration file
Diagram Walkthrough
File Walkthrough
mariadb-test.yml
MariaDB automated testing workflow with multi-version support.github/workflows/mariadb-test.yml
releases.propertiesbased on PR changes or manual input
Windows runner
executables
information
fail-safe error handling
CI-CD-TESTING.md
Complete CI/CD testing workflow documentation and guidedocs/CI-CD-TESTING.md
handling
selection
conventions
README.md
Documentation directory index and overviewdocs/README.md
module-mariadb.RELEASE.launch
Remove Eclipse IDE launch configurationmodule-mariadb.RELEASE.launch