You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "FenjuFu (via GitHub)" <gi...@apache.org> on 2026/09/10 05:24:47 UTC

[PR] [Improve][Zeta] Preserve per-fork benchmark diagnostics [seatunnel]

FenjuFu opened a new pull request, #12248:
URL: https://github.com/apache/seatunnel/pull/12248

   ### Purpose of this pull request
   
   Refs #12086. Preserve JMH fork boundaries in normalized reports and expose the evidence needed to distinguish variation within a fork from shifts between forks.
   
   The normalized metric currently flattens rawData. This adds an optional fork_samples field and a collapsible table with sample counts, per-fork means/CVs and the CV of unweighted fork means. ABBA diagnostics remain separate for every baseline/candidate run. Existing Score, Error, overall CV and comparison formulas are unchanged.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Benchmark reports gain fork diagnostics when grouped samples are available. Old schema-version-1 reports still render without inventing missing grouping. CV is unavailable for insufficient observations or a zero mean; non-finite observations are not treated as evidence of stability. English and Chinese benchmark guides explain the fields and limits.
   
   This is a reporting improvement on dev. It does not modify engine behavior or claim a production speedup or root cause.
   
   ### How was this patch tested?
   
   - 14 focused normalizer/reporter tests passed, including equal aggregate distributions with different fork structure, unequal fork lengths, missing/zero/non-finite observations, legacy reports and ABBA run separation.
   - Replayed the [Java 11 artifact from run 33750118527](https://github.com/apache/seatunnel/actions/runs/33750118527): all 11 normalized JMH metrics retain every prior field exactly, while each now preserves its three groups of five samples.
   - For runningJobGrowth with initialStoredJobCount=0, the existing overall CV remains 14.72%. New within-fork CVs are 11.31%, 11.09%, 20.90%, and fork-mean CV is 4.04%. These are descriptive results from the existing artifact, not a fresh benchmark or causal conclusion.
   - Python syntax/undefined-name checks and git diff --check passed.
   - The full 35-test script suite was attempted locally: 7 unchanged profiling tests fail on Windows path conventions; affected normalizer/reporter tests pass. Linux CI is pending. Local whole-repository Spotless was stopped while traversing unrelated Java sources under heavy disk load; no successful local Maven verification is claimed.
   
   Reproduce the focused tests:
   
   ```bash
   python3 -m unittest discover -s tools/benchmarks -p 'test_save_jmh_result.py'
   python3 -m unittest discover -s tools/benchmarks -p 'test_regression_report.py'
   ```
   
   ### Check list
   
   - [x] New behavior has focused regression coverage.
   - [x] Updated English and Chinese documentation.
   - [x] No new dependency, JAR, connector or incompatible format change.
   - [x] Commit includes a matching Signed-off-by trailer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][Zeta] Preserve per-fork benchmark diagnostics [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx closed pull request #12248: [Improve][Zeta] Preserve per-fork benchmark diagnostics
URL: https://github.com/apache/seatunnel/pull/12248


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][Zeta] Preserve per-fork benchmark diagnostics [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx commented on PR #12248:
URL: https://github.com/apache/seatunnel/pull/12248#issuecomment-5658402729

   Thank you for the effort you have put in for thisπŸ”₯
   
   There is currently no clear issue pointing to the need for confirmation through each fork round to reduce troubleshooting costs. Let's observe for a period of time first!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][Zeta] Preserve per-fork benchmark diagnostics [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx commented on PR #12248:
URL: https://github.com/apache/seatunnel/pull/12248#issuecomment-5632743268

   Hello, I have some thoughts that I would like to discuss with you regarding the original design idea of the report:
   
   A. I first asked myself several questions:
   
   1. How can we use the most concise daily report to intuitively identify problems at a glance?
      My answer to myself is that the fewer metrics we focus on, and the more those metrics can truly express meaningful information and provide long-term value, the more appropriate they are to be reflected in the report. The detailed process should be handled by downloading the detailed artifacts for investigation once a problem has been identified.
   
   2. How much runner fluctuation do we consider acceptable?
      Based on my own long-term observation, fluctuations within 5% are very common.
   
   3. Are different JDKs comparable?
      They are not. The servers they run on almost always have different CPUs/models/core counts/memory for each run, so the scores between different JDKs are naturally not comparable, and Error/CV fluctuations are also related to machine load.
   
   B. Have we currently found that there are somewhat too many scenarios in the long-term `benchmarks_core` report?
   
   Yes, they can be simplified. I think the long-term value lies in stable benchmarks, for example:
   
   CheckpointingTime.checkpointSingleInput
   CheckpointingTime.checkpointSingleInput
   Pipeline.sourceSink
   Pipeline.sourceTransformSink
   
   They have been very stable recently, with both Error/CV around 1%. I think these are suitable to remain in the long-term report, and they help us identify regressions.
   
   Summary:
   
   I think the intention of this PR is very clear. It wants people who see CV fluctuations to further diagnose the fluctuation based on the details, but there is a maintainability issue here, as well as the question of what kind of problem it ultimately provides value in identifying. In fact, it is trying to identify the case where only one fork is high while the others are very stable, but here I want to give an example: in my observation, the case where one fork is high has almost never occurred.
   
   1.Pipeline.sourceTransformSink
   This JMH benchmark has been very stable during my observations over the past few weeks and has not shown this kind of problem, so this further reduces the intention of the new report to reduce investigation costs.
   
   2.IntermediateQueue.disruptorRecordHandoff
   This JMH benchmark has been consistently unstable during my observations over the past few weeks, which is intended to demonstrate that the current CV metric already fully expresses this situation.
   
   I look forward to your reply. I would like to seriously discuss this with you, and I also look forward to your suggestions.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][Zeta] Preserve per-fork benchmark diagnostics [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12248:
URL: https://github.com/apache/seatunnel/pull/12248#issuecomment-5633092606

   Hi @nzw921rx, thanks for engaging with this so thoroughly β€” these are exactly the right questions to ask about a diagnostics feature before it becomes permanent maintenance surface.
   
   To your direct question first: no, this report on its own cannot determine the *cause* of a discrepancy, and it isn't meant to. Looking at the implementation and the docs added in this PR (`docs/en/engines/zeta/benchmark.md`), the per-fork breakdown is explicitly framed as descriptive evidence, not a regression gate or a root-cause verdict. What it changes is the first triage step: today, when Score/Error/CV alone look suspicious, there's no way to tell β€” without pulling the raw JSON yourself β€” whether the variance is spread evenly across forks (consistent with something environmental affecting the whole run) or concentrated in one fork (consistent with a noisy neighbor on that specific fork). The table answers "is this within-fork noise or between-fork drift?" in one glance; it doesn't answer "why" β€” `benchmarks_diagnostics.yml` is still the next step once that first question comes back "yes, something looks off."
   
   On your broader point about `benchmarks_core` having too many scenarios, and whether `Pipeline.sourceTransformSink` / `IntermediateQueue.disruptorRecordHandoff` actually validate this feature's premise β€” that's a fair challenge, and it's genuinely a separate proposal (curating the long-term report) from what this PR does. To be precise about scope: this PR doesn't add, remove, or reorder any benchmark in the long-term report, and it doesn't change the existing Score/Error/CV output at all β€” I checked this myself in review, the new test `test_fork_diagnostics_distinguish_within_and_between_fork_variation` asserts byte-identical `jmh_report_lines()` output for two datasets with different fork boundaries. The fork table is an additional, collapsed-by-default section that only shows up when `fork_samples` data exists, so even if `benchmarks_core` does get trimmed down to fewer, more stable metrics, that's orthogonal and wouldn't conflict with merging this β€” the new section just 
 travels with whichever benchmarks remain.
   
   Your empirical observation that you haven't seen a single-fork-high case in your own monitoring is useful signal, though, and it's really a question for @FenjuFu rather than something I can answer from the diff alone: whether this was motivated by a specific past investigation (the PR references #12086) where a one-fork-high situation actually occurred, since that would be the strongest justification for keeping the maintenance cost either way. I'd encourage continuing this thread with them directly on that point.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org