fix(self-managed): support disabled profile rendering - #523
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds render-only BDD coverage for self-managed and compute-plane Helmfile stacks with observability disabled. The changes add stable registration fixtures, a public Makefile entry point, manifest exclusion assertions, command wiring, and a live test entry point. ChangesObservability-disabled BDD coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Godog
participant Make
participant Helmfile
participant RenderedOutput
Godog->>Make: Run template for both stacks
Make->>Helmfile: Invoke template with disabled-observability environment
Helmfile->>RenderedOutput: Write rendered manifests
Godog->>RenderedOutput: Scan for forbidden observability resources
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
tests/bdd/godog_test.go (2)
645-645: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse the wiring suite’s actual repository root.
The feature expands
${REPO_ROOT}for output paths, but fixtures are seeded undersuite.Config.RepoRoot. The fake runner currently hides this mismatch because it does not execute the render commands. SetREPO_ROOTtosuite.Config.RepoRootso the wiring test exercises a coherent path contract.🤖 Prompt for 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. In `@tests/bdd/godog_test.go` at line 645, Update the environment setup in the wiring test to set REPO_ROOT from suite.Config.RepoRoot instead of the hardcoded placeholder, ensuring feature output paths resolve against the same repository root used to seed fixtures.
694-703: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAvoid duplicating the registration fixture contents.
The checked-in
tests/bdd/fixtures/ncp-local-register-values.yamlis also the source copied by the feature, but this helper embeds a second YAML copy. Future fixture changes can leave the wiring test stale while it continues to pass. Load or copy the checked-in fixture instead of maintaining another inline version.🤖 Prompt for 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. In `@tests/bdd/godog_test.go` around lines 694 - 703, Update the fixture setup in the relevant test flow around writeFixture so it reads or copies tests/bdd/fixtures/ncp-local-register-values.yaml instead of embedding duplicated YAML content. Remove the inline fixture definition while preserving the existing destination filename and test wiring behavior.
🤖 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.
Nitpick comments:
In `@tests/bdd/godog_test.go`:
- Line 645: Update the environment setup in the wiring test to set REPO_ROOT
from suite.Config.RepoRoot instead of the hardcoded placeholder, ensuring
feature output paths resolve against the same repository root used to seed
fixtures.
- Around line 694-703: Update the fixture setup in the relevant test flow around
writeFixture so it reads or copies
tests/bdd/fixtures/ncp-local-register-values.yaml instead of embedding
duplicated YAML content. Remove the inline fixture definition while preserving
the existing destination filename and test wiring behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 05fc3c38-cd49-4191-9e8f-54232322cddf
📒 Files selected for processing (3)
tests/bdd/features/observability-disabled.featuretests/bdd/fixtures/ncp-local-register-values.yamltests/bdd/godog_test.go
Refs #522 Signed-off-by: Stephanie Baum <sbaum@nvidia.com>
Invoke the distribution Makefile directly, align the wiring test repository root with its seeded fixture tree, and load the checked-in registration fixture instead of duplicating its contents. Document the two required registration handoff paths retained by the compute Helmfile. Refs: #522 Signed-off-by: Stephanie Baum <sbaum@nvidia.com>
Add a public-safe Makefile wrapper around Makefile.dist so contributors can use the documented plain make workflow. Keep the disabled-profile BDD render on that entry point. Refs: #522 Signed-off-by: Stephanie Baum <sbaum@nvidia.com>
5417ff9 to
7711d42
Compare
|
Rebased onto Stack impact review:
No BDD source update was needed. Validation after the rebase:
The rebase also removed the historical merge/#509 development ancestry from this branch and retained only PR1's three signed commits. |
Signed-off-by: Stephanie Baum <sbaum@nvidia.com>
Signed-off-by: Stephanie Baum <sbaum@nvidia.com>
Resolve the registration handoff from OUTPUT_DIR and pass the normalized path to every Helmfile operation. This removes the need to duplicate registration values under the stack's default out directory. Signed-off-by: Stephanie Baum <sbaum@nvidia.com>
Why
Validate #509's disabled profile while restoring plain
makeandOUTPUT_DIR-aware compute renders.What changed
Makefilewrapper.OUTPUT_DIR.Customer Release Notes
Source installs support plain
makeand custom output directories.Plan Summary
No resource changes.
Usage
make -C deploy/stacks/self-managed template HELMFILE_ENV=<environment>Testing
Profile, golden, short, lint, and live render tests passed (17/17 steps).
Notes
Render-only PR1 for #522.
Issues
Relates to #522
References
#509
Related Pull Requests
#509
Dependencies
None; no license or NOTICE changes.