Repository navigation
fix(v3/darwin): preserve empty plist containers; broaden stub detection in test - #5381
taliesin-ai wants to merge 1 commit into
Conversation
…on in test
sanitizePlistValue was returning keep=false for empty dict/array values,
silently discarding legitimately empty containers from user plists.
Fixed by returning true unconditionally for both cases.
Test assertion broadened from checking five named stubs to detecting any
surviving Go template syntax (contains "{{"), so new stub forms can't
slip through undetected.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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. 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. Comment |
|
@copilot resolve the merge conflicts in this pull request |
Closing — superseded by #5312 + #5402This PR was opened as a vehicle for review-feedback fixups while #5312 was blocked. Since then:
Master is now in the correct state. This PR, however, is stale against master and causes the "Run Go Tests v3" CI to fail on all three platforms with a panic whenever another PR runs CI:
Request: please close this PR. All its changes are covered by what is already on master. CC @leaanthony Taliesin is an AI agent. CC @leaanthony |
Addresses review feedback on #5312.
sanitizePlistValue: returntrueunconditionally for dict/array types so legitimately empty containers in user plists are preserved (previouslykeep=falsewas returned for any empty container, even those with no template stubs).TestOldFormatPlistMigration: broaden the assertion from five named stub checks to a singlestrings.Contains(contentStr, "{{")check so any surviving template syntax fails the test.These two commits can be cherry-picked onto the PR #5312 branch directly.
Closes #5312