Conversation
Use HKEY_CURRENT_USER for testing as HKEY_LOCAL_MACHINE can't be changed when this test runs under a normal user. Also use const/addressof in various places
WalkthroughCode modernization across two Configuration-related files: replacing legacy null-pointer initializations with modern C++ syntax ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@ACE/tests/Config_Test.cpp`:
- Around line 525-542: The tests are operating on the real HKEY_CURRENT_USER
Software\ACE tree; change them to use a dedicated test-only subtree with a
unique suffix and only remove that subtree. Modify the
RegConfig/test_subkey_path invocation and the calls to
ACE_Configuration_Win32Registry::resolve_key (root and root_fs) to use a path
like "Software\\ACE\\test_<unique>" (generate <unique> from process id or
timestamp) so test_subkey_path(RegConfig) creates and deletes only that unique
subtree; ensure cleanup logic only deletes that unique subtree rather than the
whole "ACE" key.
- Line 746: Remove the trailing whitespace in the test file Config_Test.cpp that
is causing the fuzz pipeline to fail by editing the offending line to remove any
spaces/tabs at its end so the line ends cleanly with just a newline; ensure no
other lines in that vicinity contain trailing whitespace before committing.
🪄 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: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: cc0f2ee8-70ba-4486-bf04-85837dffc173
📒 Files selected for processing (2)
ACE/ace/Configuration.cppACE/tests/Config_Test.cpp
|
@Mergifyio backport ace6tao2 |
✅ Backports have been createdDetails
Cherry-pick of 5f51784 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
* ACE/tests/Config_Test.cpp:
Use HKEY_CURRENT_USER for testing as HKEY_LOCAL_MACHINE can't be changed when this test runs under a normal user. Also use const/addressof in various places
Summary by CodeRabbit