← Back to Pull requests

fix(cpp): Actually use the VERSION file #376

Closed
unknown closed this pull request without merging on Apr 26, 2025 17:41 UTC
View on GitHub
unknown unknown commented on Feb 25, 2025 16:10 UTC
Author

<!---
Thanks for helping to make Cucumber better! 💖

You can feel free to open a "Draft" status pull request if you're not ready for feedback yet.

Don't worry about getting everything perfect! We're here to help and will coach you through
to getting your pull request ready to merge.

The prompts below are for guidance to help you describe your change in a way that is most
likely to make sense to other people when they are reviewing it. Still, it's just a guide,
so feel free to delete anything that doesn't feel appropriate, and add anything additional
that seems like it would provide useful context. 👏🏻
-->

🤔 What's changed?

PR https://github.com/cucumber/gherkin/pull/328 did not end up using the VERSION file for C++ project versioning or for C++ shared-library versioning or ABI/SONAME versioning, even though I think that’s what was desired, c.f. https://github.com/cucumber/gherkin/pull/328#issuecomment-2508925487.

This PR imitates the version/SOVERSION handling that was added to the C library in the C++ library.
<!-- Describe your changes in detail -->

⚡️ What's your motivation?

<!--
What motivated you to propose this change? Does it fix a bug? Add a new feature?
If it fixes an open issue, you can link to the issue here, e.g. "Fixes #99"
-->
Fixes #375

🏷️ What kind of change is this?

<!--- Delete any options that are not relevant -->

  • :bug: Bug fix (non-breaking change which fixes a defect)

  • :boom: Breaking change (incompatible changes to the API)
  • (This is breaking only in that it affects the version number and SONAME version / ABI version of the C++ library. It does not affect the API.)

    ♻️ Anything particular you want feedback on?

    <!--
    Is there anything in this change you're unsure about, or would
    particularly like reviewers to give you feedback on?
    -->

    📋 Checklist:

    <!---
    This is to help you remember all the little things we often forget to do!

    Feel free to delete any tasks that are not relevant, or add new ones.
    -->

  • I agree to respect and uphold the Cucumber Community Code of Conduct

  • Users should know about my change

  • - [x] I have added an entry to the "Unreleased" section of the [CHANGELOG](../blob/main/CHANGELOG.md), linking to this pull request.

    ----

    This text was originally generated from a template, then edited by hand. You can modify the template here.

    Diff: 340 lines (+255 / -85) across 4 files Reviewer: musicinmybrain Review duration: 86491m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 340 lines diff across 4 files
    0.42
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #376"
    general weight: 0.35
    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: 42.3% (MEDIUM) · Higher = larger blast radius
    42.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: 16.7% · Safe to merge
    16.7%