Skip to content

[Studio] Integrate FastAPI service with Studio Runtime - #316

Merged
isLinXu merged 3 commits into
Tencent:mainfrom
9-71:studio/fastapi-runtime-integration
Oct 15, 2026
Merged

isLinXu merged 3 commits into
Tencent:mainfrom
9-71:studio/fastapi-runtime-integration

Conversation

@9-71

@9-71 9-71 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Integrate the existing FastAPI service with the merged Studio Runtime (#310, #312, #313), replacing the legacy F1 execution backend with a unified job lifecycle owner.

  • Route HTTP jobs through studio.JobsManager for scheduling, persistence, cancellation, restart recovery, and graceful shutdown.
  • Preserve existing REST API compatibility, F1 configuration aliases, and historical job records.
  • Maintain secure artifact access, log retrieval, and download behavior.
  • Add integration and regression tests for service lifecycle, API compatibility, and security boundaries.

Validation

Studio Core CI at d97d66f2:

  • Ubuntu / Python 3.10: 429 passed, 4 skipped.
  • Windows / Python 3.10: 426 passed, 7 skipped.
  • Doctests: 5 passed on both platforms.
  • Ruff, formatting, and codespell checks passed.
  • Manual Windows integration: real CPU prediction, React and Gradio compatibility, service restart, job recovery, and artifact downloads passed.

Scope and limitations

  • Designed for a single trusted-local service process; multi-user authentication and isolation are not included.
  • GPU/DDP and some failure-recovery edge cases remain outside the verified scope.
  • Launcher and additional UI improvements are deferred to next PR.

Related to #299.

@9-71

9-71 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

CI update for dd649a91:

  • Studio Compatibility CI: PASS — 422 passed, 1 skipped.
  • Studio Core (Windows): PASS — 426 passed, 7 skipped.
  • Studio Core (Ubuntu): The upstream run had one failure in test_real_service_signal_budget_and_cleanup[cooperative].
  • Independent rerun: The same commit passed the full Studio Core workflow on both Ubuntu (429 passed, 4 skipped) and Windows (426 passed, 7 skipped).

Successful rerun: https://github.com/9-71/YOLO-Master/actions/runs/38697113129

The isolated Ubuntu failure appears timing-sensitive, but its root cause has not been established. No production changes were made for this rerun.

The remaining general CI failures have been compared with failures on the upstream main baseline.

The PR is ready for maintainer review. Feedback is welcome.

@isLinXu

isLinXu commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

LGTM

@isLinXu
isLinXu merged commit a82f9a5 into Tencent:main Oct 15, 2026
12 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants