[18.0][IMP] cetmix_tower_server: environments #514
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 321 lines diff across 4 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.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #514"
general
weight: 0.35
Aldeigja
A Jet could not use a separate set of variable values for production and development: each Server, Jet Template and the global level held one value per variable.
Add Environments (Settings → Variables → Environments) with Production, Pre-production, Staging and Development by default. Root can edit them; an environment in use can't be deleted.
Tag Server, Jet Template and global variable values with environments; empty means all. A Jet uses the value tagged with its environment, else the untagged one. Values of one variable on one record must have disjoint environments, also when a value is unarchived.
Add Environment on Jets (tracked) and in the Create and Clone wizards. A Jet Template can require an environment, with a default one used by jet requests.
get_variable_value/set_variable_valuetake atower_envreference;tower.jet.environmentis available in templates. Serverget_variable_valuenow honoursno_fallback.YAML: export and import
environment_idsand the Jet Template environment fields as references.Git wizards pass the environment to the new Jet.
cetmix_tower_base: records created together in one batch get unique references.Migration:
migrations/18.0.4.0.0/pre-migration.pydropscx_tower_variable_value_unique_variable_value_jet_template. Checked by hand on a database installed fromorigin/18.0with the manifest set to18.0.4.0.0locally: the constraint was dropped, and two Jet Template values of one variable withprodanddevwere saved. If the post-merge bump is not18.0.4.0.0, rename the folder to the assigned version.Tests: 971 of 973 pass. The 2 errors in
TestTowerBaseHooksfail the same way onorigin/18.0.Task 5708
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added configurable environments for Jets, including selection during creation and cloning. Templates can require an environment and set a default for Jets created from requests.
Variable values can be assigned to environments. Matching environment-specific values take precedence, with untagged values used as a fallback.
Environment assignments and template settings are supported in YAML export and import.
Bug Fixes
* Records created together now receive unique references, even when their names or explicitly assigned references match.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->