RHCLOUD-47148: minor bug fix when providing custom schema for full kessel compose#1339
RHCLOUD-47148: minor bug fix when providing custom schema for full kessel compose#1339tonytheleg wants to merge 2 commits intoproject-kessel:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe script now preserves caller-set ChangesEnvironment Variable Preservation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 `@scripts/start-full-kessel.sh`:
- Around line 11-17: The current restore logic only reinserts non-empty saved
values because the script saves original values with "${SCHEMA_ZED_FILE:-}" and
then tests with [ -n ... ]; instead, record whether the original variable was
set and restore even empty values: when saving, add markers like
_saved_schema_zed_file_set="${SCHEMA_ZED_FILE+x}" and
_saved_rbac_config_file_set="${RBAC_CONFIG_FILE+x}" alongside
_saved_schema_zed_file="${SCHEMA_ZED_FILE:-}" and
_saved_rbac_config_file="${RBAC_CONFIG_FILE:-}", then restore using those
markers (if [ -n "${_saved_schema_zed_file_set}" ] &&
SCHEMA_ZED_FILE="${_saved_schema_zed_file}" and similarly for RBAC_CONFIG_FILE)
so explicit empty values are preserved.
🪄 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: ec48f43a-800c-49f1-b23b-3eefdfad0f65
📒 Files selected for processing (1)
scripts/start-full-kessel.sh
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
PR Template:
Describe your changes
Found a bug in the full kessel setup when trying to provide a custom schema file during testing for RHCLOUD-47148
The .env file explicitly sets
SCHEMA_ZED_FILE="". The script then sources this file and overwrites the environment variable passed in, clobbering itThis fixes the issue by only letting the .env file set defaults, not override explicit environment variables.
Ticket reference (if applicable)
For RHCLOUD-47148
Summary by CodeRabbit