fix: make MariaDB version detection case-insensitive in tests #10208
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.39) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 132 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.293
Real PR Conversation Timeline
1 comments
"Review active on #10208"
general
weight: 0.35
neznaika0
Description
Fixes #7929 - [MariaDB] phpunit test errors
Problem
Two test failures on MariaDB:
1. ForgeTest::testAddFields - Uses str_contains() for MariaDB version detection which is case-sensitive. On some MariaDB installations, the server_info version string may have different casing, causing MariaDB to be incorrectly treated as MySQL 8.0.17+, which sets max_length to null for integer fields. MariaDB still reports max_length for integer columns.
2. GetVersionTest::testGetVersion - The regex only matches plain numeric versions like 8.0.17, not MariaDB versions like 10.11.4-MariaDB-1.
Solution
ForgeTest + GetFieldDataTestCase
Replace str_contains($version, 'MariaDB') with case-insensitive comparison using strtolower()
GetVersionTest
Update the regex to accept versions with suffixes.
Changes
Ref: https://github.com/codeigniter4/CodeIgniter4/issues/7929
Closes #7929