← Back to Pull requests

feat(cpp): part of low-level bindings, their tests, and e2e CI config #2852

Closed
unknown closed this pull request without merging on Mar 16, 2026 15:59 UTC
View on GitHub
unknown unknown commented on Mar 03, 2026 04:34 UTC
Author

Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements. You can link an issue to this PR using the GitHub syntax. For example Closes #123 indicates that this PR will close issue #123.
-->

Add part of low-level bindings for iggy-hpp.

Works towards completion of #2763 .

Rationale


To be merged after #2785
<!--
Why is this change needed? If the issue explains it well, a one-liner is fine.
-->

What changed?

<!--
2-4 sentences. Problem first (before), then solution (after).

GOOD:

"Messages were unavailable when background message_saver committed the
journal and started async disk I/O before completion. Polling during
this window found neither journal nor disk data.

The fix freezes journal batches in the in-flight buffer before async persist."

GOOD:

"When many small messages accumulate in the journal, the flush passes
thousands of IO vectors to writev(), exceeding IOV_MAX (1024 on Linux)."

BAD:

  • Walls of text

  • "This PR adds..." (we can see the diff)

  • -->

    Adds low-level bindings + tests + e2e CI config. The following functions have been added for the Client opaque type:

  • new_connection (equivalent to Rust's IggyClientBuilder::new() and IggyClient::from_connection_string(connection_string))

  • login_user

  • connect

  • create_stream

  • get_stream

  • delete_stream

  • create_topic

  • delete_connection
  • tests/client/low_level_e2e.cpp -> e2e tests for client
    tests/topic/low_level_e2e.cpp -> e2e tests for topic
    tests/stream/low_level_e2e.cpp -> e2e tests for stream

    NOTE: The PR is big since Cargo.lock itself is 5k LoC. The actual code itself is about 1k LoC.

    Local Execution

  • Passed

  • Pre-commit hooks ran
  • <!--
    You must run your code locally before submitting.
    "Relying on CI" is not acceptable - PRs from authors who haven't run the code will be closed.

    Did you have prek installed? It runs automatically on commit and covers all project languages. See CONTRIBUTING.md.
    -->

    AI Usage

    If AI tools were used, please answer:
    1. Which tools? codex
    2. Scope of usage? code generation
    3. How did you verify the generated code works correctly? Planned what needs to be implemented, created spec, and then verified all code generated and tests run.
    4. Can you explain every line of the code if asked? Yes

    Diff: 306 lines (+229 / -77) across 3 files Reviewer: amlel-el-mahrouss Review duration: 19405m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.63) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 306 lines diff across 3 files
    0.63
    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%
    56%
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #2852"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed sensitive_module
    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: 63.4% (MEDIUM) · Higher = larger blast radius
    63.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 27.4% · Safe to merge
    27.4%
    Repository