← Back to Pull requests

Test supported Julia versions and improve coverage #95

Merged
maleadt merged 4 files (107 lines) on Oct 02, 2026 12:36 UTC
View on GitHub
maleadt maleadt commented on Oct 02, 2026 12:29 UTC
Author

CoverageTools supports Julia 1.10 and later, but CI previously checked only the minimum release, the latest stable release, and nightly. That could miss regressions confined to an intervening Julia minor release. Run the tests on each supported stable minor version, 1.10 through 1.13, plus nightly. The existing x86, Windows, macOS, and vendored JuliaSyntax jobs now use the explicit 1.13 entry. Each job uploads its coverage report, which Codecov merges for the commit.

The existing 100% project coverage gate is out of reach on master (96.09%). While reviewing the missed lines, I found a source parsing bug: JuliaSyntax advances by byte offset, but the loop compared that offset with the number of characters. A long non-ASCII prefix could therefore cause CoverageTools to skip a later function or accept a truncated one. This fixes those comparisons, adds regression tests, and covers useful branches in memory-file cleanup and syntax-version detection. It also treats an overflowing VERSION number as invalid input and removes parser error branches that cannot be reached when JuliaSyntax returns error nodes.

Set the project coverage floor to 99%. The remaining misses are defensive exception paths that would need contrived tests to reach. Locally, the full test suite passes on Julia 1.10, 1.11, 1.12, 1.13, and nightly; combined 1.10 and nightly coverage is 374/377 lines (99.20%).

Diff: 107 lines (+65 / -42) across 4 files Reviewer: giordano Review duration: 7m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.45) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 107 lines diff across 4 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.90 · 4 substantive comment(s)
0.90
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
84%
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.280
Rapid Merge rapid_merge
0.100
Real PR Conversation Timeline
5 items
giordano giordano commented on code on Oct 02, 2026 12:30 UTC
Code Review
.github/workflows/ci.yml:1
@@ -16,6 +16,10 @@ jobs:
       matrix:
         version:
           - 'min'
+          - '1.10'
+          - '1.11'
+          - '1.12'
+          - '1.13'
           - '1'

1.10 and 1.13 overlap with min and 1

codecov[bot] codecov[bot] commented on Oct 02, 2026 12:30 UTC
Bot

Codecov Report


:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 99.46%. Comparing base (85abac9) to head (76f2762).
:warning: Report is 3 commits behind head on master.

<details><summary>Additional details and impacted files</summary>

@@            Coverage Diff             @@
##           master      #95      +/-   ##
==========================================
+ Coverage   96.09%   99.46%   +3.37%     
==========================================
  Files           4        4              
  Lines         384      377       -7     
==========================================
+ Hits          369      375       +6     
+ Misses         15        2      -13     

</details>

:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.
<details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • </details>

    maleadt maleadt commented on code on Oct 02, 2026 12:31 UTC
    Code Review
    .github/workflows/ci.yml:1
    @@ -16,6 +16,10 @@ jobs:
           matrix:
             version:
               - 'min'
    +          - '1.10'
    +          - '1.11'
    +          - '1.12'
    +          - '1.13'
               - '1'

    I kept the 1 in case we forget to update it.

    maleadt maleadt commented on code on Oct 02, 2026 12:32 UTC
    Code Review
    .github/workflows/ci.yml:1
    @@ -16,6 +16,10 @@ jobs:
           matrix:
             version:
               - 'min'
    +          - '1.10'
    +          - '1.11'
    +          - '1.12'
    +          - '1.13'
               - '1'

    But I'll remove them.

    Reviewers
    Assignees
    maleadt maleadt
    Labels
    risk: low confidence: 84.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: 45.4% (MEDIUM) · Higher = larger blast radius
    45.4%
    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: 84.5% · Lower = rushed or shallow review
    84.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: 7% · Safe to merge
    7%