shuke987 opened a new pull request, #70949: URL: https://github.com/apache/doris/pull/70949
### Background Contributors investigating a Doris CI failure use TeamCity for the failed build step, case details, and diagnostic downloads. If TeamCity becomes private, a public PR still needs a way to show those results. ### What problem does this PR solve? Issue Number: None Related PR: None PR Type: Build/CI/Chore Problem Summary: Add a standalone Python command that turns a finished build into one shareable HTML report. It preserves TeamCity's failure messages and case counts and links the full build log, Doris log archive, and core when supplied. A debugger backtrace lets contributors see the crash frames and source lines before downloading the core. ### Details - **Change map:** 623 lines implement the renderer and publisher. Input validation and HTML rendering associate failures with the selected build. Attachment handling preserves downloads and publishes the entry page last. The other 382 lines contain tests. There are no generated files or documentation changes. - **Affected:** The shared Python tooling in `regression-test/pipeline/common`. Local rendering uses the Python standard library. An explicit `--upload` uses `ossutil` and the agent's ECS role. - **Developer and release impact:** Developers can preview a report locally. Production pipeline adoption and changes to GitHub status links are separate rollout steps. - **License and third-party:** Both files use the ASF license header. No new third-party dependency. - **Rollback:** Revert the two added files. ### Testing - Ran `python3 -m unittest discover -s scripts -p test_render_ci_report.py` on macOS with Python 3.12.3 before placing the two files in the Doris tree. All 23 tests passed. In the repository, use `regression-test/pipeline/common` as the discovery directory. Coverage includes build identity, HTML escaping, signed download origins, core frames, attachment publication order, and conflicting uploads. - Rendered two historical builds locally. The P0 report contained all 81 failure entries, including the muted entry. The Compile report retained the failed step's original Java error. ### Release note None ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Partially verified: local rendering and unit tests passed. Upload from a real agent and anonymous retrieval of its published report remain to be tested. ### AI Disclosure - Tool: OpenAI Codex (GPT-6) - Generated: Report renderer, unit tests, and PR description. - Human review: The contributor specified the report fields, download behavior, and staged rollout. Line-by-line human review has not been confirmed. -- 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]
