Hi community,

CI is the foundation of our quality.

As more and more code is generated by AI, every functional change
needs its own E2E
coverage, so that compatibility and regression issues are caught early.

But the CI now verifies too much, and that slows it down.

Example: when only `seatunnel-engine` is changed, CI still runs
Flink/Spark, although
the change cannot affect them. And since Flink and Spark run the same
connector tests
across several versions, that verification is repeated 1 × N times.

I propose splitting the E2E engine CI:

1. The `changes` job computes a `RUN_ENGINES` list from the changed
paths, and every
   container-based E2E job passes it to the tests.
2. `ContainerUtil#discoverTestContainers` keeps only the containers of
the engines in
   that list. When it is unset or empty, today's behaviour is kept;
when the list has
   no intersection with the discovered containers, every container is kept.
3. The mapping rules live in a unit-tested script
   (`tools/update_modules_check/run_engines.py`).
4. No new jobs and no job renames, so required checks and the merge queue are
   unaffected. The same variable can be used for local debugging, e.g.
   `RUN_ENGINES=zeta`.
5. The module rules are:

| Module / condition | Engines |
| --- | --- |
| Shared code 
(api/common/config/core/formats/plugin-discovery/transforms-v2/pom/workflows/tools/dist/e2e-common)
| flink + spark + zeta |
| `seatunnel-translation/**` | flink + spark |
| `seatunnel-translation-flink` / `-spark` | flink only / spark only |
| `seatunnel-engine/**`, engine-e2e | zeta |
| connector/transform e2e module matched | flink + spark + zeta |
| Multiple conditions matched | union (translation + engine = all
three engines) |
| Not matched / cannot determine | all engines |

PR: https://github.com/apache/seatunnel/pull/12812

Looking forward to your suggestions and feedback!

Best regards,
Zhiwei Niu

Reply via email to