Skip to content

[dummy_ci 6/7] Add GET /status API and mock GET /logs endpoint - #5234

Open
ievdokdm wants to merge 1 commit into
197798-5-dummy-ci-webhookfrom
197798-6-dummy-ci-status-logs
Open

ievdokdm wants to merge 1 commit into
197798-5-dummy-ci-webhookfrom
197798-6-dummy-ci-status-logs

Conversation

@ievdokdm

@ievdokdm ievdokdm commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds the GET /status?uid=<uid> reconciliation API and unauthenticated GET /logs/<uid>/<testName> synthetic log viewer to dummy_ci (RFC 610.0002 §§ 3.2.4, 4.1.3, 8.1.3).

Summary

  • Implements dummy_ci/lib/src/handlers/status_handler.dart verifying Authorization: Bearer <Signed JWT> via CocoonJwtVerifier (aud == <SERVICE_BASE_URL>/status), enforcing query uid matches JWT data.uid, reading from TaskStore, and returning the RFC 8.1.3 status JSON (omitting message when null).
  • Implements dummy_ci/lib/src/handlers/logs_handler.dart serving unauthenticated synthetic plain-text logs (text/plain; charset=utf-8) for stored tasks and test suites (404 if missing).
  • Wires /status and /logs/<uid>/<testName> into server.dart and tool/local_server.dart.
  • Adds unit tests in test/handlers/status_handler_test.dart, test/handlers/logs_handler_test.dart, and expands test/server_test.dart.

Stack

Testing

  • dart pub get, dart format --set-exit-if-changed ., dart analyze --fatal-infos, dart test --test-randomize-ordering-seed=random --reporter expanded
  • dart --enable-asserts analyze.dart and dart run dev/cocoon_code_health/bin/check.dart

Towards flutter/flutter#197798

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new API endpoints to the Dummy CI service: /status for retrieving task status and /logs/<uid>/<testName> for serving synthetic execution logs. The changes include the implementation of the corresponding handlers, registration of these routes in the server, and comprehensive unit testing for both new features. As there were no review comments provided, I have no feedback to offer.

@ievdokdm
ievdokdm force-pushed the 197798-5-dummy-ci-webhook branch from 67a51e2 to e22e0f6 Compare December 4, 2026 00:37
@ievdokdm
ievdokdm force-pushed the 197798-6-dummy-ci-status-logs branch from e22d890 to a09848a Compare December 4, 2026 00:37
@ievdokdm
ievdokdm force-pushed the 197798-6-dummy-ci-status-logs branch from a09848a to c33c25a Compare December 4, 2026 01:07
@ievdokdm
ievdokdm force-pushed the 197798-5-dummy-ci-webhook branch from e22e0f6 to 20046ef Compare December 4, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant