Skip to content

Conversation

@jwillemsen
Copy link
Member

@jwillemsen jwillemsen commented Dec 17, 2025

…he UAC installer protection, see https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc709628(v=ws.10)?redirectedfrom=MSDN

* ACE/tests/Reactor_Dispatch_Order_Test.cpp -> ACE/tests/Reactor_Disp_Order_Test.cpp:
* ACE/tests/Reactor_Dispatch_Order_Test_Dev_Poll.cpp -> ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp: Moved.

* ACE/tests/run_test.lst:
* ACE/tests/tests.mpc:

Summary by CodeRabbit

  • Chores

    • Standardized and shortened test names for Reactor Dispatch Order tests across test metadata, test runner entries, and build configurations.
    • Simplified DEV_POLL variant handling by removing the alternate fallback path.
  • Chores / Tests

    • Renamed Notify "Updates" test to "Upd" across test lists and ignore rules.
  • Documentation

    • Shortened a README section header and adjusted a command-line option formatting.

✏️ Tip: You can customize this high-level summary in your review settings.

…he UAC installer protection, see https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc709628(v=ws.10)?redirectedfrom=MSDN

    * ACE/tests/Reactor_Dispatch_Order_Test.cpp -> ACE/tests/Reactor_Disp_Order_Test.cpp:
    * ACE/tests/Reactor_Dispatch_Order_Test_Dev_Poll.cpp -> ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp:
      Moved.

    * ACE/tests/run_test.lst:
    * ACE/tests/tests.mpc:
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 17, 2025

Walkthrough

Renames several test identifiers and related metadata across ACE and TAO tests: shortens Reactor_Dispatch_Order_Test (and Dev_Poll variant) to Reactor_Disp_Order_Test, and renames Notify Updates test to Upd (including option text); updates file headers, test lists, build files, and .gitignore entries. No behavioral logic changes.

Changes

Cohort / File(s) Change Summary
ACE Test Sources
ACE/tests/Reactor_Disp_Order_Test.cpp, ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp
Shortened test name in file header comments and ACE_START_TEST strings. In Dev_Poll variant removed alternate run_main/UNSUPPORTED block and added the closing `#endif /* ACE_HAS_DEV_POLL
ACE Test Config / Build
ACE/tests/run_test.lst, ACE/tests/tests.mpc, ACE/tests/.gitignore
Renamed test entries and executable/source file references from Reactor_Dispatch_Order_Test / Reactor_Dispatch_Order_Test_Dev_PollReactor_Disp_Order_Test / Reactor_Disp_Order_Test_Dev_Poll; updated ignore entries accordingly.
TAO Notify Basic Tests
TAO/orbsvcs/tests/Notify/Basic/Basic.mpc, TAO/orbsvcs/tests/Notify/Basic/run_test.pl, TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl, TAO/orbsvcs/tests/Notify/Basic/README, TAO/orbsvcs/tests/Notify/Basic/.gitignore
Renamed project/executable and test name from UpdatesUpd; adjusted README header from "Updates:" → "Upd:" and changed parameter --InitialDelay to -InitialDelay; updated .gitignore path from /Updates/Upd. No control-flow changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Check consistency of renamed identifiers across tests, build files, and ignore lists.
  • Verify the Dev_Poll guarded compilation path still compiles and the #endif comment matches the #if guard.
  • Confirm README option change is intended and matches any test invocation scripts.

Suggested reviewers

  • iguessthislldo
  • jrw972

Poem

🐰
I trimmed some names with careful hops,
Short and sweet—no logic stops.
Tests still run beneath the moon,
I nibbled chars and hummed a tune. ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: shortening 'Dispatch' to 'Disp' in test file names and identifiers across ACE and TAO test configurations.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

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

@jwillemsen
Copy link
Member Author

@mergify backport ace6tao2

@mergify
Copy link

mergify bot commented Dec 17, 2025

backport ace6tao2

✅ Backports have been created

Details

    * ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp:
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 66d9042 and 7f80b0b.

📒 Files selected for processing (4)
  • ACE/tests/Reactor_Disp_Order_Test.cpp (2 hunks)
  • ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (3 hunks)
  • ACE/tests/run_test.lst (1 hunks)
  • ACE/tests/tests.mpc (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: ubuntu-24.04 g++-10 CORBA/e compact
  • GitHub Check: ubuntu-24.04 clang++-20
  • GitHub Check: ubuntu-24.04 g++-11
  • GitHub Check: ubuntu-22.04 g++-10
  • GitHub Check: ubuntu-24.04 g++-10 CodeQL
  • GitHub Check: ubuntu-22.04 g++-9
  • GitHub Check: ubuntu-22.04 clang++-12
  • GitHub Check: ubuntu-24.04 clang++-14
  • GitHub Check: ubuntu-24.04 clang++-15
  • GitHub Check: ubuntu-24.04 g++-10 CORBA/e micro
  • GitHub Check: ubuntu-22.04 clang++-13
  • GitHub Check: ubuntu-24.04 g++-10 ACE for TAO
  • GitHub Check: ubuntu-24.04 g++-13
  • GitHub Check: ubuntu-24.04 clang++-20 c++23
  • GitHub Check: ubuntu-24.04 g++-12
  • GitHub Check: ubuntu-24.04 g++-14
  • GitHub Check: macos-14-C++
  • GitHub Check: MINGW64-gcc
  • GitHub Check: alpine-3.18
  • GitHub Check: windows-2022 vs2022
🔇 Additional comments (4)
ACE/tests/run_test.lst (1)

205-206: LGTM! Test entries renamed correctly.

The test runner entries have been updated consistently from Reactor_Dispatch_Order_Test to Reactor_Disp_Order_Test, matching the file renames and avoiding Windows UAC installer protection triggers.

ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (1)

4-4: LGTM! File header and test identifiers updated consistently.

The file header comment and both ACE_START_TEST macro calls have been updated to reflect the shortened test name. The test logic remains unchanged.

Also applies to: 240-240, 256-256

ACE/tests/Reactor_Disp_Order_Test.cpp (1)

4-4: LGTM! File header and test identifier updated correctly.

The file header comment and ACE_START_TEST macro call have been updated to reflect the shortened test name, consistent with the file rename.

Also applies to: 260-260

ACE/tests/tests.mpc (1)

1491-1503: LGTM! Build configuration updated consistently.

Both project blocks have been renamed correctly:

  • Project and executable names shortened from Reactor_Dispatch_Order_Test to Reactor_Disp_Order_Test
  • Source file references updated to match the renamed .cpp files
  • Build configuration structure and dependencies remain unchanged

    * ACE/tests/.gitignore:
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (2)

244-250: Add an explicit unsupported-platform message.

When neither ACE_HAS_DEV_POLL nor ACE_HAS_EVENT_POLL is defined, the test silently reports success without running any assertions. This could mask configuration issues where the test should execute but doesn't.

Apply this diff to add an explicit message:

 #if defined (ACE_HAS_DEV_POLL) || defined (ACE_HAS_EVENT_POLL)
   ACE_Dev_Poll_Reactor dev_poll_reactor_impl;
   ACE_Reactor dev_poll_reactor (&dev_poll_reactor_impl);
   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Testing Dev Poll Reactor\n")));
   if (!test_reactor_dispatch_order (dev_poll_reactor))
     ++result;
+#else
+  ACE_ERROR ((LM_INFO,
+              ACE_TEXT ("Dev Poll or Event Poll not supported on this platform\n")));
 #endif /* ACE_HAS_DEV_POLL || ACE_HAS_EVENT_POLL */

192-192: Add error checking for run_reactor_event_loop to match the base test.

Unlike Reactor_Disp_Order_Test.cpp (lines 192-197, 217-225), this Dev_Poll variant doesn't check the return value of run_reactor_event_loop. If the reactor fails, the error will go undetected and the test may report incorrect results.

Apply this diff to add error checking:

   // Suspend the handlers - only the timer should be dispatched
   ACE_Time_Value tv (1);
   reactor.suspend_handlers ();
-  reactor.run_reactor_event_loop (tv);
+  if (0 != reactor.run_reactor_event_loop (tv))
+    {
+      ACE_ERROR ((LM_ERROR,
+                  ACE_TEXT ("%p\n"),
+                  ACE_TEXT ("run_reactor_event_loop")));
+      ok_to_go = false;
+    }
 
   // only the timer should have fired
   if (handler.dispatch_order_ != 2)

And similarly for line 217:

   if (ok_to_go)
     {
-      reactor.run_reactor_event_loop (tv);
+      if (0 != reactor.run_reactor_event_loop (tv))
+        {
+          ACE_ERROR ((LM_ERROR,
+                      ACE_TEXT ("%p\n"),
+                      ACE_TEXT ("run_reactor_event_loop 2")));
+          ok_to_go = false;
+        }
     }

Also applies to: 217-217

📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7f80b0b and ede6ba6.

📒 Files selected for processing (1)
  • ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (1)
ACE/tests/Reactor_Disp_Order_Test.cpp (2)
  • test_reactor_dispatch_order (157-255)
  • test_reactor_dispatch_order (158-158)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: ubuntu-24.04 clang++-15
  • GitHub Check: ubuntu-24.04 g++-10 CORBA/e compact
  • GitHub Check: ubuntu-24.04 clang++-14
  • GitHub Check: ubuntu-22.04 g++-9
  • GitHub Check: ubuntu-22.04 clang++-13
  • GitHub Check: ubuntu-22.04 g++-10
  • GitHub Check: ubuntu-22.04 clang++-12
  • GitHub Check: macos-14-C++
  • GitHub Check: VS2022Release64
  • GitHub Check: VS2022WChar
  • GitHub Check: VS2022Debug64Cxx17
  • GitHub Check: VS2022Debug64Cxx20
  • GitHub Check: VS2022Release32
  • GitHub Check: VS2022Debug32
  • GitHub Check: VS2022WChar
  • GitHub Check: VS2022Debug64
  • GitHub Check: MINGW64-gcc
  • GitHub Check: alpine-3.18
  • GitHub Check: windows-2022 vs2022
  • GitHub Check: ubuntu-24.04 g++
🔇 Additional comments (1)
ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (1)

4-4: LGTM! Naming updates are correct and consistent.

The file header, closing directive comment, and test name string are correctly updated to reflect the shortened "Disp" naming convention. This aligns with the PR objective to avoid triggering UAC installer protection on Windows.

Also applies to: 236-236, 241-241

    * ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp:
…rting

    * TAO/orbsvcs/tests/Notify/Basic/.gitignore:
    * TAO/orbsvcs/tests/Notify/Basic/Basic.mpc:
    * TAO/orbsvcs/tests/Notify/Basic/README:
    * TAO/orbsvcs/tests/Notify/Basic/run_test.pl:
    * TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl:
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (1)

192-192: Consider checking return values for consistency with sibling test.

Lines 192 and 217 call run_reactor_event_loop without checking the return value. The sibling test file Reactor_Disp_Order_Test.cpp (see snippet lines 192-197 and 217-223) checks these return values and sets ok_to_go = false on failure. For consistency and better error detection, consider adding similar checks here.

Example pattern from the sibling test:

if (0 != reactor.run_reactor_event_loop (tv))
  {
    ACE_ERROR ((LM_ERROR,
                ACE_TEXT ("%p\n"),
                ACE_TEXT ("run_reactor_event_loop")));
    ok_to_go = false;
  }

Also applies to: 217-217

📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ede6ba6 and 292ef30.

📒 Files selected for processing (7)
  • ACE/tests/.gitignore (1 hunks)
  • ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (2 hunks)
  • TAO/orbsvcs/tests/Notify/Basic/.gitignore (1 hunks)
  • TAO/orbsvcs/tests/Notify/Basic/Basic.mpc (1 hunks)
  • TAO/orbsvcs/tests/Notify/Basic/README (2 hunks)
  • TAO/orbsvcs/tests/Notify/Basic/run_test.pl (1 hunks)
  • TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • ACE/tests/.gitignore
  • TAO/orbsvcs/tests/Notify/Basic/README
🧰 Additional context used
🧬 Code graph analysis (1)
ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (1)
ACE/tests/Reactor_Disp_Order_Test.cpp (2)
  • test_reactor_dispatch_order (157-255)
  • test_reactor_dispatch_order (158-158)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: ubuntu-22.04 clang++-12
  • GitHub Check: ubuntu-24.04 g++-10 CORBA/e micro
  • GitHub Check: ubuntu-24.04 g++-10 CodeQL
  • GitHub Check: ubuntu-24.04 clang++-16
  • GitHub Check: ubuntu-22.04 g++-10
  • GitHub Check: ubuntu-24.04 clang++-20
  • GitHub Check: ubuntu-24.04 g++-11
  • GitHub Check: VS2022Debug64Cxx20
  • GitHub Check: VS2022Debug32
  • GitHub Check: VS2022Release64
  • GitHub Check: VS2022Debug64
  • GitHub Check: VS2022WChar
  • GitHub Check: VS2022Release32
  • GitHub Check: VS2022Debug64Cxx17
  • GitHub Check: VS2022WChar
  • GitHub Check: MINGW64-gcc
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: windows-2022 vs2022
  • GitHub Check: alpine-3.18
  • GitHub Check: ubuntu-24.04 g++
  • GitHub Check: macos-14-C++
🔇 Additional comments (8)
TAO/orbsvcs/tests/Notify/Basic/Basic.mpc (1)

67-67: LGTM: Executable name shortened to avoid UAC triggers.

The exename change from "Updates" to "Upd" aligns with the PR objective to prevent Windows UAC installer protection from blocking test execution.

TAO/orbsvcs/tests/Notify/Basic/run_test.pl (1)

68-68: LGTM: Test name updated consistently.

The test name change from "Updates" to "Upd" matches the executable rename in Basic.mpc and maintains test harness consistency.

TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl (1)

68-68: LGTM: IPv6 test name updated consistently.

The test name change from "Updates" to "Upd" maintains consistency with the parallel changes in run_test.pl and Basic.mpc.

TAO/orbsvcs/tests/Notify/Basic/.gitignore (1)

10-10: LGTM: Ignore rule updated for renamed executable.

The .gitignore entry correctly reflects the new "Upd" executable name, ensuring the renamed binary remains ignored by version control.

ACE/tests/Reactor_Disp_Order_Test_Dev_Poll.cpp (4)

4-4: LGTM! File header comment updated correctly.

The file name in the header comment has been properly updated to match the renamed file.


236-236: LGTM! Preprocessor directive properly placed.

The #endif directive correctly closes the conditional compilation block started at line 22, with an appropriate comment indicating which condition it closes.


241-241: Test name updated correctly, but AI summary is inconsistent.

The test name has been properly updated to Reactor_Disp_Order_Test_Dev_Poll to match the file rename.

However, the AI summary claims "eliminated the alternate run_main definition and the UNSUPPORTED platform path," but the UNSUPPORTED path is still present at lines 250-251 (ACE_DEBUG printing the unsupported platform message).


244-252: LGTM! Nested preprocessor guards are correctly structured.

The nested preprocessor guards are intentional and appropriate:

  • The outer guard (line 22) prevents compilation of the test implementation when ACE_HAS_DEV_POLL or ACE_HAS_EVENT_POLL is not defined
  • The inner guard (lines 244-252) provides a graceful fallback message when running on unsupported platforms

This structure correctly handles both compile-time and runtime scenarios.

@jwillemsen jwillemsen merged commit 3b55e85 into DOCGroup:master Dec 17, 2025
37 of 38 checks passed
@jwillemsen jwillemsen deleted the jwi-dispatchtests branch December 17, 2025 16:33
jwillemsen added a commit that referenced this pull request Dec 17, 2025
Shorten Dispatch to Disp, Dispatch triggers for a Win32 application t… (backport #2494)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant