← Back to Pull requests

Use MySQL 8.4 for local test database #5261

Closed
unknown closed this pull request without merging on Oct 02, 2026 12:36 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 19:06 UTC
Author

Description

👋 Aspiring contributor here just getting started. I observed the following test failures when using MySQL 9 and 26.7 locally:

% cargo xtask run-tests mysql --no-doc-tests -- --no-fail-fast
# Truncated
Summary [  71.165s] 917 tests run: 915 passed, 2 failed, 0 skipped
    FAIL [   0.022s] diesel_tests::integration_tests cast::infallible_cast::text_to_datetime
    FAIL [   0.020s] diesel_tests::integration_tests cast::infallible_cast::time_to_text
error: test run failed
Failed to run integration tests

The failures may be related to the chrono::NaiveTime handling in 2.3.12:
https://github.com/diesel-rs/diesel/blob/main/CHANGELOG.md#2312-2026-08-07

Summary of changes

Update docker-compose.yml and Docker code snippet in CONTRIBUTING.md to use
mysql:8.4 image instead of mysql image.
Update relevant CONTRIBUTING.md paragraph to clarify that MySQL tests require
MySQL 8.4 in order to pass.

Testing

Verified cargo xtask run-tests mysql --no-doc-tests -- --no-fail-fast fails
with MySQL 9 and MySQL 26.7 and succeeds with MySQL 8.4.

Verified cargo xtask run-tests all --no-doc-tests -- --no-fail-fast succeeds
after running docker compose up -d.

Considerations

  • I'm happy to take on fixing the observed test failures in a separate PR if that would be helpful

  • I would argue it still makes sense to use MySQL 8.4 for local test runs because that appears to be the version used on CI
  • I checked for similar changes and make sure to reference them

  • I included a changelog entry for relevant new features or changes
  • Diff: 204 lines (+153 / -51) across 2 files Reviewer: weiznich Review duration: 1049m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 204 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Diff Size diff_size
    0.318
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5261"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.3% (MEDIUM) · Higher = larger blast radius
    36.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.3% · Safe to merge
    14.3%