Skip to content

feat(orion-server): historical logs API & task_output refactor(#1379)#1398

Merged
benjamin-747 merged 4 commits into
gitmono-dev:mainfrom
slow2342:feat/1379-orion-server-logging
Sep 1, 2025
Merged

feat(orion-server): historical logs API & task_output refactor(#1379)#1398
benjamin-747 merged 4 commits into
gitmono-dev:mainfrom
slow2342:feat/1379-orion-server-logging

Conversation

@slow2342

@slow2342 slow2342 commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

描述

本次提交对 orion-server 模块进行了以下更新:

  • 重新构建了 task-output 接口,修复了之前会返回历史日志的错误,现在接口仅输出实时构建日志。
  • 新增了 task-history-output 接口,用于获取历史日志内容。
  • 编写并完善了对应的接口文档,确保使用方可以参考 API 说明进行调用。
  • 引入了tokio-stream包用于消息通道。

关联 Issue

影响范围

  • 日志输出逻辑(实时与历史日志的分离)
  • API 使用文档更新
  • 引入tokio-stream包

@vercel

vercel Bot commented Sep 1, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mega Ready Ready Preview Comment Sep 1, 2025 2:59am

Copilot AI 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.

Pull Request Overview

This PR refactors the task output logging system to separate real-time and historical log access, addressing issue #1379. The changes improve the API design by providing dedicated endpoints for different log access patterns.

  • Refactored task-output endpoint to only stream real-time build logs using SSE
  • Added new task-history-output endpoint for retrieving historical logs with full or segmented access
  • Updated documentation with comprehensive API usage examples and parameter descriptions

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
orion-server/src/server.rs Added route registration for the new historical logs endpoint
orion-server/src/api.rs Implemented refactored real-time streaming and new historical log retrieval functionality
orion-server/README.md Added comprehensive documentation for both real-time and historical log APIs
orion-server/Cargo.toml Added tokio-stream dependency for improved async stream handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread orion-server/src/api.rs Outdated
Comment thread orion-server/src/api.rs Outdated
Comment thread orion-server/src/api.rs Outdated
Comment thread orion-server/src/api.rs Outdated
@benjamin-747
benjamin-747 added this pull request to the merge queue Sep 1, 2025
Merged via the queue into gitmono-dev:main with commit 1fd56fb Sep 1, 2025
32 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants