Skip to content

[Task][Java Client] Decouple main CI and gateway tests from client-owned example sources #8420

Open

Description

@Aias00

Description

Parent: #7602, preparation for its P4/P6 cutover. Keep main-owned gateway regression coverage runnable after client-facing examples move to shenyu-client-java. Separate gateway testing from independent-client compatibility testing without introducing a main-to-client dependency.

Current Evidence

At main 9dd9a12fb7c64e8a0e26449caa906fe562350dca, the migration inventory lists 19 client-facing example roots for migration, but existing infrastructure still builds or reads those paths:

  • E2E case selection selects in-tree HTTP, Spring Cloud, Dubbo, gRPC and WebSocket example Maven projects, including HTTP examples reused by logging and cluster cases.
  • K8s workflow builds shenyu-examples-http and reads manifests/health checks beneath its directory.
  • Main CI still names the client reactor. Integration Compose files also consume images built from migrating examples.

These references currently work with the staged sources. This is a migration blocker, not a claim that today's build fails. Merely deleting the examples or disabling their test jobs would lose coverage or leave broken paths.

Task List

  • Inventory each affected workflow, case resolver, Maven preparation script, Dockerfile/Compose configuration, K8s manifest and health-check path. Record its owning test behavior and replacement location.
  • Keep gateway/plugin/cluster regression scenarios in main using main-owned fixtures that do not import or resolve business client artifacts. Use existing Admin fixtures/APIs where appropriate; do not reimplement the client SDK in the test backend.
  • Move independent-client registration/compatibility lanes to the client repository or an external workflow, reusing candidate fix bug #16's harness and [Task] Verify independent Java client against main repo admin/bootstrap #6366/[Task] Add cross-repo compatibility test strategy #6367 contracts. Keep builds and classpaths separate and identify the exact artifacts under test.
  • Separate reusable server/K8s test infrastructure from client-example assets. Update image production, paths, case selection and failure diagnostics together with the relevant cutover.
  • Preserve retained SDK consumer and shared example/API-helper behavior; ownership must follow actual dependencies, not a directory-name match.
  • Add meaningful regression checks for case selection, missing paths and forbidden client dependencies. Preparation changes may land early while preserving the current runnable setup.

Acceptance Criteria

  • Every affected pre-migration scenario has a documented retained or migrated owner and a runnable replacement; no scenario silently disappears to make CI green.
  • Main-owned production code, tests, bootstrap and retained examples do not depend on published independent-client artifacts, directly or through an inactive profile or fixture build.
  • On the candidate cutover tree, workflows contain no executable reference to removed source paths. Run the affected E2E/integration/K8s lanes and retain actual startup, route and gateway-response evidence; YAML parsing alone is insufficient.
  • Report any lane not run and the environments it still blocks. Distinguish source-candidate runs from released-pair compatibility certification.

Dependencies and Boundaries

This task owns test/build consumers of the migrating sources. Final module deletion and publication belong to sibling #7602 tasks. It may be implemented in coordinated slices so each merged tree remains buildable. It does not replace #6366's overall client release verification or authorize publishing client artifacts.

Evidence here is source inspection. The existing staged source/POM boundary check passed during the preceding review; that does not verify shell/YAML/image references or a post-removal tree. No Docker/K8s deployment was executed for this report.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions