Re-release on a schedule when a CARLA ref drifts in the wire format #129
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
hakuturu583
Problem
CARLA's branches move daily, and its tags can be re-pointed. 0.8.7 built
1.0atecb0af47. The tag has since moved to3ea16611, the commit the CARLA 1.0 package was built from, and in betweenEpisodeSettingsandActorgained fields. A release is cut only when a labelled PR is merged, so nothing noticed.Changes
release.ymlalso runs daily (schedule):- The new
driftjob runstools/release_tag.py drift. Itsbumpoutput ispatchon a drift, elsenone.- On a drift,
releasecuts a patch release the way a mergedrelease:patchPR does. It addsRe-released for CARLA's wire format: <reason>under theLibCarla:lines of the notes.-
resolvetreats 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/underLibCarla/source/carla/), compares its git object SHA at the released commit and at the current one, throughgit/commitsandgit/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.pyandtest_architecture.py: 103 passed.driftrun against the live repositories:if:conditions were checked by hand:-
releaseruns withalways(), so a skippeddrift(on a push) does not skip it.- On the schedule,
resolveseesRELEASE_RESULT=skippedand 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