Skip to content

Conversation

ad-astra-video
Copy link
Collaborator

@ad-astra-video ad-astra-video commented Jul 28, 2025

Bare bones required changes to enable data_url in go-livepeer PR

Enables livepeer/go-livepeer#3689

@Copilot Copilot AI review requested due to automatic review settings July 28, 2025 21:45
Copy link
Contributor

@Copilot Copilot AI left a comment

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 adds support for a data_url parameter to the live video-to-video pipeline functionality to enable data publishing via the Trickle protocol. The change adds the new parameter across the API specification, route definitions, and pipeline implementation.

  • Adds data_url field to OpenAPI specifications for both runner and gateway
  • Updates the route parameter model to include the new data_url field
  • Modifies the pipeline implementation to accept and pass through the data_url parameter

Reviewed Changes

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

File Description
runner/openapi.yaml Adds data_url field definition to API schema
runner/gateway.openapi.yaml Adds data_url field definition to gateway API schema
runner/app/routes/live_video_to_video.py Adds data_url parameter to route model
runner/app/pipelines/live_video_to_video.py Updates pipeline method signature and data passing to include data_url

Comment on lines 1158 to +1165
description: URL for publishing events via Trickle protocol for pipeline
status and logs.
default: ''
data_url:
type: string
title: Data Url
description: URL for publishing data via Trickle protocol for pipeline status
and logs.
Copy link
Preview

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

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

The description for data_url is identical to events_url except for the word 'data' vs 'events'. This doesn't clearly explain what distinguishes data_url from events_url or what type of data will be published through this URL.

Suggested change
description: URL for publishing events via Trickle protocol for pipeline
status and logs.
default: ''
data_url:
type: string
title: Data Url
description: URL for publishing data via Trickle protocol for pipeline status
and logs.
description: URL for publishing event-related information, such as pipeline
status updates and logs, via the Trickle protocol.
default: ''
data_url:
type: string
title: Data Url
description: URL for publishing data outputs generated by the pipeline, such as
processed video frames or analysis results, via the Trickle protocol.

Copilot uses AI. Check for mistakes.

Comment on lines 1000 to +1007
description: URL for publishing events via Trickle protocol for pipeline
status and logs.
default: ''
data_url:
type: string
title: Data Url
description: URL for publishing data via Trickle protocol for pipeline status
and logs.
Copy link
Preview

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

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

The description for data_url is identical to events_url except for the word 'data' vs 'events'. This doesn't clearly explain what distinguishes data_url from events_url or what type of data will be published through this URL.

Suggested change
description: URL for publishing events via Trickle protocol for pipeline
status and logs.
default: ''
data_url:
type: string
title: Data Url
description: URL for publishing data via Trickle protocol for pipeline status
and logs.
description: URL for publishing events, such as pipeline status updates and
logs, via the Trickle protocol.
default: ''
data_url:
type: string
title: Data Url
description: URL for publishing processed data or intermediate results via
the Trickle protocol.

Copilot uses AI. Check for mistakes.

Comment on lines 58 to +65
description="URL for publishing events via Trickle protocol for pipeline status and logs.",
),
]
data_url: Annotated[
str,
Field(
default="",
description="URL for publishing data via Trickle protocol for pipeline status and logs.",
Copy link
Preview

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

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

The description for data_url is identical to events_url except for the word 'data' vs 'events'. This doesn't clearly explain what distinguishes data_url from events_url or what type of data will be published through this URL.

Suggested change
description="URL for publishing events via Trickle protocol for pipeline status and logs.",
),
]
data_url: Annotated[
str,
Field(
default="",
description="URL for publishing data via Trickle protocol for pipeline status and logs.",
description="URL for publishing pipeline status updates and logs via the Trickle protocol.",
),
]
data_url: Annotated[
str,
Field(
default="",
description="URL for publishing processed data or results generated by the pipeline via the Trickle protocol.",

Copilot uses AI. Check for mistakes.

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.

1 participant