Skip to content

Warn when a server plugin class implements no plugin type - #576

Open
Hisham-InfoGleam wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
Hisham-InfoGleam:fix/398-warn-untyped-server-plugin
Open

Hisham-InfoGleam wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
Hisham-InfoGleam:fix/398-warn-untyped-server-plugin

Conversation

@Hisham-InfoGleam

Copy link
Copy Markdown

Fixes #398.

A server class that implements ServerPlugin but none of the plugin type interfaces is instantiated by initPlugins() and then ignored. It is never started or stopped, and nothing in the log says why.

This change logs a warning that names the plugin and the class. It follows the direction in the issue: the behaviour stays the same, and only the silent part is fixed. The compile-time check is left out.

Tests

  • A class with no plugin type logs the warning and stays unregistered.
  • A ResourcePlugin logs no warning and is registered.
  • ./gradlew :server:test passes locally (851 tests).
@Hisham-InfoGleam
Hisham-InfoGleam marked this pull request as ready for review November 13, 2026 04:53
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Test Results

  146 files  ±0    146 suites  ±0   4m 54s ⏱️ + 1m 15s
  993 tests +2    993 ✅ +2  0 💤 ±0  0 ❌ ±0 
1 311 runs  +2  1 305 ✅ +2  6 💤 ±0  0 ❌ ±0 

Results for commit 68c8972. ± Comparison against base commit 1e014f0.

♻️ This comment has been updated with latest results.

gibson9583
gibson9583 previously approved these changes Nov 16, 2026
mgaffigan
mgaffigan previously approved these changes Nov 20, 2026
initPlugins registers a server class once for each plugin type
interface it implements. A class that implements ServerPlugin but none
of those interfaces was instantiated and then ignored: it was never
added to serverPlugins, so start() and stop() were never called, and
nothing in the log said why.

Log a warning that names the plugin and the class. Which plugins are
registered, started and stopped does not change.

Fixes OpenIntegrationEngine#398

Assisted-by: Claude:claude-fable-5-2
Signed-off-by: Hisham Alrashdan <hisham@infogleam.com>
@Hisham-InfoGleam
Hisham-InfoGleam force-pushed the fix/398-warn-untyped-server-plugin branch from e3b1ef4 to 68c8972 Compare November 21, 2026 19:37
@Hisham-InfoGleam

Copy link
Copy Markdown
Author

Rebased onto the current main to resolve the conflict with the temporary-folder changes in DefaultExtensionControllerTest. The fix itself is unchanged. The two new tests now sit on top of the updated test class. ./gradlew :server:test passes locally (877 tests).

@Hisham-InfoGleam

Copy link
Copy Markdown
Author

Friendly ping: this is rebased on main and all checks pass. The rebase only resolved a conflict in the test class, and it dismissed the two earlier approvals. @gibson9583 @mgaffigan, could you take another look when you have time? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants