Skip to content

fix flash cmd rendering#265

Merged
bennyz merged 1 commit into
centos-automotive-suite:mainfrom
bennyz:fix-flash-cmd
Apr 29, 2026
Merged

fix flash cmd rendering#265
bennyz merged 1 commit into
centos-automotive-suite:mainfrom
bennyz:fix-flash-cmd

Conversation

@bennyz

@bennyz bennyz commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

the closing } was treated as a literal from the flash cmd string

Summary

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • CI/CD improvement
  • Refactoring

Testing

  • Unit tests pass (make test)
  • Linter passes (make lint)
  • Manifests are up to date (make manifests generate)
  • Tested on OpenShift cluster (if applicable)

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Enhanced image flashing process to properly handle custom configurations when explicitly specified versus using default values.

the closing } was treated as a literal from the flash cmd string

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6bd3dabb-ffcf-4617-82f7-122bd62556a6

📥 Commits

Reviewing files that changed from the base of the PR and between d1662e4 and 1cd6fbc.

📒 Files selected for processing (1)
  • internal/common/tasks/scripts/flash_image.sh

📝 Walkthrough

Walkthrough

The script's FLASH_CMD initialization logic now distinguishes between an explicitly provided empty value and an unset variable, allowing different default behavior for each case while preserving the subsequent substitution and flash flow.

Changes

Cohort / File(s) Summary
Flash command initialization
internal/common/tasks/scripts/flash_image.sh
Modified FLASH_CMD defaulting logic to differentiate between explicitly empty and unset variables, changing when the default value is applied.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • bkhizgiy

Poem

🐰 A variable's fate, now clear and bright,
Empty or unset? Each gets its right!
The defaults dance in perfect time,
No more ambiguous—the logic's sublime! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix flash cmd rendering' accurately describes the main change: fixing how the FLASH_CMD variable is being rendered/interpolated in the flash_image.sh script.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@bennyz bennyz requested a review from bkhizgiy April 29, 2026 08:47
@bennyz bennyz merged commit 070c406 into centos-automotive-suite:main Apr 29, 2026
4 checks passed
@bennyz bennyz deleted the fix-flash-cmd branch April 29, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants