shuke987 opened a new pull request, #70977:
URL: https://github.com/apache/doris/pull/70977

   ### Background
   
   The community CI report turns a finished build into an HTML page with test 
results and diagnostic downloads. The publisher uploads the attachments before 
making the page visible so readers can open its links.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #70949 (introduced the report generator)
   PR Type: Bugfix
   
   Problem Summary:
   
   A GoogleTest environment failure with zero registered tests used to stop the 
report with `Inconsistent JUnit counters`. The page now shows that failure 
under **Build problems**. Suppressed tests are counted separately from passed 
tests. Large attachments now use multipart upload so a raw core above the 5 GB 
PutObject limit can be published with the report.
   
   ### Details
   
   - **Frequency:** Deterministic for GoogleTest 1.12.1 global failure XML, 
suppressed test rows, and attachments larger than the single-request limit.
   - **Root cause:** GoogleTest excludes its synthetic global failure from the 
root counters and can emit a suppressed case without a skipped element. The 
publisher previously used one PutObject request with a 60-second deadline for 
every file.
   - **Why existing tests missed it:** The JUnit tests used ordinary case 
failures and skipped elements. Upload tests used small attachments and mocked 
successful commands.
   - **Fix:** Keep global diagnostics outside registered test totals, respect 
explicit case outcomes, and leave ambiguous summary-only outcomes unknown. 
Attachments above 64 MiB use numbered parts, conditional creation and 
completion, and cleanup on failure. The existing byte comparison still handles 
a competing publish to the same key.
   - **Other paths and branches:** The change covers all JUnit inputs and all 
public attachment types in the common renderer. The local tracking refs for 
branch-3.1, 4.0, 4.1 and 4.2 do not contain this script.
   - **Behavior change:** HTML exposes global failures and separates tests that 
did not run. Large-file transfer duration is governed by individual ossutil 
requests. The agent role needs permission to abort an incomplete multipart 
upload for cleanup.
   
   ### Testing
   
   - Ran `python3 -m unittest discover -s regression-test/pipeline/common -p 
test_render_ci_report.py` locally. All 28 tests passed. The three regression 
tests for global failures, suppressed tests and selection of multipart upload 
for a sparse 6 GiB core each failed on the original renderer.
   - Rendered both upstream GoogleTest 1.12.1 XML fixtures. The global failure 
produced one build problem with zero registered tests. The mixed fixture 
reported 26 tests: 17 passed, 5 failed, 2 skipped and 2 not run.
   - Ran the publisher with the official ossutil 2.4.0 binary against a 
loopback OSS test server, lowering the multipart threshold for the test. 
Verified the reconstructed attachment byte for byte, both overwrite guards, and 
the final HTML upload. An injected part failure resulted in an abort and no 
HTML upload.
   
   ### Release note
   
   Community CI reports now show GoogleTest global failures and suppressed 
cases correctly and support multipart uploads for large diagnostic attachments.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details)
   - Does this need documentation: No
   - Pre-submission status: Partially verified: the publisher agent's actual 
OSS role and production bucket have not been exercised.
   
   ### AI Disclosure
   
   - Tool: OpenAI Codex (GPT-6)
   - Generated: Implementation, tests and PR description, based on the review 
of #70949.
   - Human review: Pending.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to