← Back to Pull requests

Release the simulator as mini-carla on PyPI #134

Closed
unknown closed this pull request without merging on Dec 03, 2026 06:42 UTC
View on GitHub
unknown unknown commented on Dec 03, 2026 05:01 UTC
Author

Summary

Releases the CARLA-compatible simulator (simulator/) on PyPI as mini-carla.

  • Rename (it was never released as typesafe-carla-sim): PyPI distribution and crate mini-carla, executable mini-carla, Python launcher mini_carla (python -m mini_carla), env var MINI_CARLA_BIN. The directory stays simulator/. Version files, tools/bump_version.py, CLAUDE.md and docs follow.

  • Release workflow (release.yml):

  • - mini-carla (x86_64, aarch64 on native runners): maturin wheel (manylinux_2_28), the sdist once; checks the wheel's version equals the release's, runs mini-carla --help, starts a simulator from the launcher.
    - publish-mini-carla: after publish (typesafe-carla) succeeds, uploads from its own environment pypi-mini-carla / testpypi-mini-carla (Trusted Publishing).
  • docs/releasing.md: the table and the one-time setup (PyPI project + trusted publisher for mini-carla, the two GitHub environments).
  • Before a release can publish it, the PyPI side needs the one-time setup in docs/releasing.md (a pending trusted publisher for mini-carla with environment pypi-mini-carla, and the environment in GitHub). Without it, a release still publishes typesafe-carla; only publish-mini-carla fails.

    Testing

  • cargo test (17), launcher tests (6), tests/test_bump_version.py + tests/test_architecture.py (28) pass after the rename.

  • The mini-carla job's steps run locally: maturin build --release / maturin sdist → mini_carla-0.9.0 wheel and sdist, twine check --strict passes, the installed mini-carla --help runs, mini_carla.__version__ == "0.9.0", Simulator(port=0) starts.

  • actionlint on release.yml and release-label.yml: clean.
  • ---
    _Generated by Claude Code_

    Diff: 223 lines (+167 / -56) across 2 files Reviewer: hakuturu583 Review duration: 101m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 223 lines diff across 2 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%
    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.324
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #134"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 41.8% (MEDIUM) · Higher = larger blast radius
    41.8%
    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: 18.1% · Safe to merge
    18.1%