Skip to content

ci : select the http integration suite for plugin changes that match no protocol keyword - #8081

Merged
Aias00 merged 1 commit into
apache:masterfrom
cloudbase-ai:ci/plugin-changes-run-http-integration-test
Oct 24, 2026
Merged

Aias00 merged 1 commit into
apache:masterfrom
cloudbase-ai:ci/plugin-changes-run-http-integration-test

Conversation

@cloudbase-ai

Copy link
Copy Markdown
Contributor

Why

.github/scripts/resolve-test-case-matrix.sh selects integration cases from the changed files. In mode=integration, a shenyu-plugin/** change only selects a case when it is shenyu-plugin/pom.xml, plugin-api, plugin-base, or when the path itself contains a protocol keyword (http|divide|springmvc|dubbo|grpc|websocket|rocketmq|logging|rewrite|tracing|https|cluster).

A change under shenyu-plugin/shenyu-plugin-cache/** matches none of them, so integration_cases stays empty, run_integration=false, and every build (shenyu-integrated-test-*) job is skipped.

That is how the current master breakage got in. #7662 (CachedResponse.capture) started rejecting responses that carry Vary; the change lives in shenyu-plugin-cache, so its PR ran no integration suite at all. #7901 then made CrossFilter add Vary: Origin unconditionally, which turned that rejection into "nothing is ever cached", and CachePluginTest.testMemoryModle:54 / testRedisModle:73 went red. The regression could only surface through a PR that happened to select the full matrix — never through the plugin change that caused it.

What

A fallback at the end of map_domain_path: a shenyu-plugin/** change that matched no earlier rule now selects shenyu-integrated-test-http, in integration mode only.

The http suite is the one that drives the whole plugin chain against a real gateway end to end, and it already hosts the combination tests (including CachePluginTest), so it is the natural default for a plugin that names no protocol.

Impact

  • Only applies to plugin changes that currently select nothing. Existing mappings (divide, *http*, grpc, dubbo, rewrite, tracing, …) are matched earlier and keep their current behaviour.
  • e2e and k8s-ingress matrices are untouched — this does not add compose runs.
  • Cost: one extra shenyu-integrated-test-http job (~10 minutes) for plugin PRs that used to run no integration test. If that is considered too broad, the same one-line rule can be narrowed to shenyu-plugin/shenyu-plugin-cache/*.

Verification

Ran the script under bash 5 with jq, feeding CHANGED_FILES_JSON / CI_CASE_MODE directly:

changed files mode run_integration cases
shenyu-plugin-cache/.../CachedResponse.java integration true (was false) shenyu-integrated-test-http
two shenyu-plugin-cache files integration true (was false) shenyu-integrated-test-http
shenyu-plugin-cache/pom.xml integration true shenyu-integrated-test-http
shenyu-plugin-divide/.../DividePlugin.java integration true http, sdk-http (unchanged)
shenyu-plugin-api/... integration true, full_required=true all 11 (unchanged)
shenyu-web/.../CrossFilter.java integration true, full_required=true all 11 (unchanged)
docs/readme.md integration false none (unchanged)
shenyu-plugin-cache + shenyu-web integration true, full_required=true all 11
shenyu-plugin-cache/... e2e false, run_e2e=false none (unchanged)
shenyu-web/... e2e true, full_required=true unchanged

This PR only touches .github/, which is_ignored_change skips, so its own it workflow will select nothing — the table above is the verification.

Related

#8079 fixes the Vary regression itself. With this change, a future shenyu-plugin-cache PR would exercise shenyu-integrated-test-http and fail before merge instead of after.

@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.

@/tmp/rv8079/review_8081.md

@Aias00
Aias00 merged commit 77611e9 into apache:master Oct 24, 2026
26 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