Skip to content

Related to #6875: Cover default selector namespace in node listeners - #7359

Merged
Aias00 merged 8 commits into
apache:masterfrom
BobSong-dev:fix/6875-selector-listener-namespace-default
Sep 30, 2026
Merged

Aias00 merged 8 commits into
apache:masterfrom
BobSong-dev:fix/6875-selector-listener-namespace-default

Conversation

@BobSong-dev

@BobSong-dev BobSong-dev commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Related to #6875

Background

Master already defaults a selector's null namespace correctly. This PR retains a regression test for publishing such selectors under the system-default namespace rather than a null namespace prefix.

Changes

  • Add a regression test covering both the selector list key and selector detail key when namespaceId is null.
  • Merge current master, including the MCP MessageHandlingResult mapper-constructor fix. The effective PR diff is test-only; it does not duplicate the production fix already on master.

Verification

  • Local: ./mvnw.cmd -pl shenyu-admin-listener/shenyu-admin-listener-api -am clean test -Dtest=AbstractNodeDataChangedListenerTest -Dsurefire.failIfNoSpecifiedTests=false — BUILD SUCCESS; 3 tests, 0 failures, 0 errors, 0 skipped. Checkstyle passed.

  • Local: git diff --check origin/master...HEAD passed.

  • Local: ./mvnw.cmd -pl shenyu-plugin/shenyu-plugin-mcp-server -am compile -DskipTests — BUILD SUCCESS; the previously reported constructor compilation failure is resolved.

GitHub checks verified on 14fe046b1: every triggered check has completed successfully; workflow-skipped jobs remain skipped.

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed at head 6fe4ea0. The current effective diff is a focused regression test for null selector namespace fallback; the production listener already uses SYS_DEFAULT_NAMESPACE_ID for null namespaces on the target branch. Verification passed: git diff --check origin/master...HEAD, 0 diagnostics from the available diagnostics backend for the changed test file, and ./mvnw -pl shenyu-admin-listener/shenyu-admin-listener-api -Dtest=AbstractNodeDataChangedListenerTest test. I am not merging because GitHub checks are still in progress / mergeState is BLOCKED.

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The net diff is a valid regression test, but this head is stale and cannot pass current CI. A fresh rerun still fails compiling shenyu-plugin-mcp-server because ShenyuStreamableHttpServerTransportProvider calls the old three-argument MessageHandlingResult constructor while the current contract requires McpJsonMapper as a fourth argument. Please rebase onto current master, keep the test-only diff, and rerun the required workflows.

@BobSong-dev BobSong-dev changed the title Fixes #6875: Default the selector namespace when node listeners publish config Related to #6875: Cover default selector namespace in node listeners Sep 30, 2026

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving — the net change is a focused regression test covering the default selector namespace in the node listeners, which is exactly the gap #6875 describes. CI is green on this head now.

@Aias00
Aias00 merged commit b2f7041 into apache:master Sep 30, 2026
39 checks passed
@Aias00 Aias00 added this to the 2.7.2 milestone Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants