feat(operator): add runtime feature gates - #12421
Conversation
Signed-off-by: xianlubird <xianlubird@gmail.com>
|
👋 Hi xianlubird! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
WalkthroughChangesThe compatibility package renames origin-based gates to Compatibility gates
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@deploy/operator/internal/features/compatibility/runtime_test.go`:
- Around line 14-53: Add test-story logging to TestRuntimeGateEnabled in
deploy/operator/internal/features/compatibility/runtime_test.go at lines 14-53:
log the gate setup before constructing it, and log each runtime-version
evaluation and assertion inside the table-driven subtest. Apply the same pattern
in deploy/operator/internal/runtimeversion/runtimeversion_test.go at lines 10-33
by logging minimum-version setup and each comparison/assertion; both sites
require direct changes using t.Log headings before each test step.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: b473e5c5-48b4-48b2-879e-ad6447c46f81
📒 Files selected for processing (8)
deploy/operator/internal/features/compatibility/doc.godeploy/operator/internal/features/compatibility/gates.godeploy/operator/internal/features/compatibility/origin.godeploy/operator/internal/features/compatibility/origin_test.godeploy/operator/internal/features/compatibility/runtime.godeploy/operator/internal/features/compatibility/runtime_test.godeploy/operator/internal/runtimeversion/runtimeversion.godeploy/operator/internal/runtimeversion/runtimeversion_test.go
Signed-off-by: xianlubird <xianlubird@gmail.com>
Signed-off-by: xianlubird <xianlubird@gmail.com>
Signed-off-by: xianlubird <xianlubird@gmail.com>
Signed-off-by: xianlubird <xianlubird@gmail.com>
Signed-off-by: xianlubird <xianlubird@gmail.com>
|
/ok to test 8fa7ea8 |
dyn-3691-extract-shared-target-pid-cuda-customstorage-operation-layer * 'main' of https://github.com/ai-dynamo/dynamo: (50 commits) docs(cli): correct removed vLLM prefill-worker flag reference (#12581) docs(operator): reserve webhook Ignore for emergencies (#12563) ci(docs): make previews and checks match what actually publishes (#12339) refactor(vllm): organize custom encoder modules (#12416) feat(llm): Select reasoning output field via env var (#11464) feat(runtime): add TLS support to TCP request plane (#10921) fix: convert conditional disagg sglang warning to httperror 400 (#12578) feat(operator): add runtime feature gates (#12421) refactor(runtime): extract PushRouter transport seam behind StreamingDispatch trait (#12447) feat(replay): add deterministic canonical offline reports (#12363) build: bump ModelExpress to 0.5.0(OPS-7978) (#12455) fix(mocker): use logical KV tokens for decode timing (#12583) fix(examples): update Triton example for CUDA 13 + fix libdcgm copy (DYN-3697) (#12577) refactor(operator): implement composition-first DGD reconciliation (#12283) feat(frontend): add basetenkenizer backend (#12376) fix(profiler): configure rapid mocker without planner (#12573) docs(vllm): correct worker-role flags and document --kv-transfer-config (#12568) ci: add Kubernetes deploy test to nightly (#12090) fix(container): reuse pinned protoc in runtime image (#12535) feat(self-host): flip DYN_SELF_HOST_METADATA default to ON (gh-8749) (#11417) ... Signed-off-by: Hannah Zhang <hannahz@nvidia.com>
Summary
Add explicit, per-feature gates whose rendered defaults depend only on the resolved Dynamo runtime compatibility version. This is the runtime-gate foundation for #11083.
Details
internal/features/runtimewith a smallGatetype and centralized feature definitionsCanaryHealthChecksas introduced by Dynamo runtime 1.4.0runtimeversion.Version.AtLeastWhere should reviewers start?
deploy/operator/internal/features/runtime/gate.godeploy/operator/internal/features/runtime/gates.goRelated Issues