← Back to Pull requests

[18.0][ADD][BREAKING] cetmix_tower_base: extract Tower core #497

Closed
unknown closed this pull request without merging on Sep 16, 2026 09:31 UTC
View on GitHub
unknown unknown commented on Sep 15, 2026 10:27 UTC
Author

Attention! Breaking changes!


If you are installing this PR on an existing Cetmix Tower instance - install cetmix_tower_base manually - it will do all the needed migrations.

Summary


  • Add cetmix_tower_base for access groups, root/Settings menus, tags, vault and shared mixins so non-server addons can depend on Tower core without Servers/Jets.

  • Make cetmix_tower_server depend on base and droprpc_helper; update git/yaml/webhook xmlids to the new module.

  • Must be merged and deployed together with the companion PR in cetmix-tower-portal.
  • Test plan


  • Fresh install: cetmix_tower_base + cetmix_tower_server (+ git/yaml/webhook as used)

  • Upgrade existing DB with -u cetmix_tower_server (or -i cetmix_tower_base -u all); plain -u all alone does not install the new dependency

  • Confirm groups, menus, tags, vault values and record rules survive the upgrade

  • Run cetmix_tower_base, cetmix_tower_server,cetmix_tower_git, cetmix_tower_yaml, cetmix_tower_webhook tests
  • Task 5622

    Made with assistance of Cursor

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Summary by CodeRabbit

    New Features
    Added a shared Cetmix Tower foundation with centralized access levels, menus, settings, tags, and vault functionality.
    Added tag management with colors, references, search, and safeguards against deleting tags in use.
    Added access-level handling for Tower users, managers, and root users.

    Changes
    Tower, Git, Webhook, and YAML features now use shared access controls and menus.
    Vault operations remain restricted to privileged access.

    Migration
    Existing Tower references are migrated automatically during upgrades.

    Documentation
    * Added module, configuration, access, and contribution documentation.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 246 lines (+184 / -62) across 3 files Reviewer: ivs-cetmix Review duration: 1384m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 246 lines diff across 3 files
    0.39
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #497"
    general weight: 0.35
    Reviewers
    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: 38.9% (MEDIUM) · Higher = larger blast radius
    38.9%
    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: 15.4% · Safe to merge
    15.4%