fix(devtools/cmd/migrate-sidekick): fix mismatch in newline handling for documentationoverrides#3341
fix(devtools/cmd/migrate-sidekick): fix mismatch in newline handling for documentationoverrides#3341
Conversation
…for documentationoverrides
Summary of ChangesHello @zhumin8, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements a targeted, temporary fix within the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request provides a targeted fix for newline handling in documentation_overrides during migration. The changes in main.go implement the desired logic, and the tests in main_test.go are appropriately updated to validate it. I've added a couple of suggestions to improve comment clarity and make test failure messages more informative. Overall, the changes are solid and achieve the intended goal.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3341 +/- ##
==========================================
+ Coverage 80.72% 81.20% +0.48%
==========================================
Files 163 163
Lines 13935 14341 +406
==========================================
+ Hits 11249 11646 +397
- Misses 2098 2106 +8
- Partials 588 589 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ldetmer
left a comment
There was a problem hiding this comment.
Agreed we're just trying to get this to work for the 1 time migration
Add on a temp fix on top of the previous fix #3284. This fix tries to align the expected format for
documentation_overridesforgoogle-cloud-orgpolicy-v1. This is a brittle change, but as we don't expect newdocumentation_overridesin the next few days and this is a one time migration, it should be acceptable.Verified locally after this change,
librarian generate google-cloud-orgpolicy-v1produces no diff. And the only diff it produced for librarian.yaml is the following:Additional context about this fix: #3330 (comment)
Fix #3330