← Back to Pull requests

Re-release on a schedule when a CARLA ref drifts in the wire format #129

Closed
unknown closed this pull request without merging on Nov 24, 2026 09:54 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 05:22 UTC
Author

Problem

CARLA's branches move daily, and its tags can be re-pointed. 0.8.7 built 1.0 at ecb0af47. The tag has since moved to 3ea16611, the commit the CARLA 1.0 package was built from, and in between EpisodeSettings and Actor gained fields. A release is cut only when a labelled PR is merged, so nothing noticed.

Changes

  • release.yml also runs daily (schedule):

  • - The new drift job runs tools/release_tag.py drift. Its bump output is patch on a drift, else none.
    - On a drift, release cuts a patch release the way a merged release:patch PR does. It adds Re-released for CARLA's wire format: <reason> under the LibCarla: lines of the notes.
    - resolve treats the schedule like the push to main: it builds and publishes only if a tag was cut.
    - With no drift, nothing runs past drift.
  • tools/release_tag.py drift:

  • - Reads each ref's LibCarla commit from the latest GitHub release's notes. These are the LibCarla: carla-simulator/carla <ref> at ...@<sha> lines the workflow already writes.
    - Resolves each listed ref's current commit.
    - For each path of the new tools/release_drift_paths.txt (rpc/, sensor/, streaming/ under LibCarla/source/carla/), compares its git object SHA at the released commit and at the current one, through git/commits and git/trees (TreeReader).
    - It is a drift if any watched path's SHA differs, or if a listed ref was not in the release.
    - The two commits are compared as they are, so there is no cap on changed files, and a ref moved back to an ancestor or to a diverged commit is caught. An earlier version used the compare API, which misses both (review).
    - A truncated tree is refused rather than read short.
  • docs/releasing.md: a "Scheduled: a CARLA ref drifted" section and the updated entry-point diagram.

  • tests/test_release_tag.py: no move, a move outside the watched paths, a re-pointed tag that changes an RPC message, a move back to an ancestor, 1000 unrelated changed files, a watched path removed, a truncated tree, trees fetched once each, a ref new to the list, release notes naming no commit, and the CLI outputs.
  • Testing

  • tests/test_release_tag.py and test_architecture.py: 103 passed.

  • drift run against the live repositories:

  •   ue58-dev 77d44812e..780716b45 changes LibCarla/source/carla/rpc/, LibCarla/source/carla/sensor/, LibCarla/source/carla/streaming/
      1.0 ecb0af47f..3ea166118 changes LibCarla/source/carla/rpc/, LibCarla/source/carla/sensor/, LibCarla/source/carla/streaming/
      bump=patch
      

  • Not run: the scheduled workflow itself, and actionlint. The workflow YAML parses, and the if: conditions were checked by hand:

  • - release runs with always(), so a skipped drift (on a push) does not skip it.
    - On the schedule, resolve sees RELEASE_RESULT=skipped and builds nothing.

    Release

    This PR has no release label. Once it is merged, the first scheduled run will find the drift above and cut a patch release by itself, unless #128 (which has release:patch) is merged first and its release brings the refs up to date.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01JvU4GaL6p9Hw6hyFskedkF

    Diff: 403 lines (+302 / -101) across 5 files Reviewer: hakuturu583 Review duration: 271m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 403 lines diff across 5 files
    0.45
    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.359
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #129"
    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: 44.8% (MEDIUM) · Higher = larger blast radius
    44.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: 19.4% · Safe to merge
    19.4%