Skip to content

[WIP] Add config for constraining media pool#500

Draft
Bslabe123 wants to merge 1 commit into
kubernetes-sigs:mainfrom
Bslabe123:media-pool
Draft

[WIP] Add config for constraining media pool#500
Bslabe123 wants to merge 1 commit into
kubernetes-sigs:mainfrom
Bslabe123:media-pool

Conversation

@Bslabe123
Copy link
Copy Markdown
Contributor

DO NOT REVIEW

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. labels May 21, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Bslabe123
Once this PR has been reviewed and has the lgtm label, please assign sergeykanzhelev for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 21, 2026
@Bslabe123 Bslabe123 force-pushed the media-pool branch 2 times, most recently from 5d81ef1 to 86425b4 Compare May 21, 2026 16:56
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 21, 2026
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 21, 2026
Introduces MediaPoolConfig{size} on the per-modality config so benchmarks
can express a bounded corpus of N distinct synthetic images / videos /
audios reused across requests. Pools are eagerly materialized at datagen
init and sampled uniformly.

Architecture follows the modality-primary scheme from kubernetes-sigs#477: each pool
lives in its own payloads/<modality>/pool.py alongside the modality's
spec and metrics, with a per-process singleton + set/get/reset helpers.
The pool_index field lives only on the Synthetic*Spec variants (the
provenance where bounded pre-rendering is meaningful), not on the bases
or non-synthetic provenances.

Prefix-side bytes still go through the existing seeded deterministic
path (pool is skipped when deterministic=True), so prefix-cache
benchmarks remain unaffected. Legacy mediagen.pool.VideoBytesPool stays
in place when no video.pool is configured.

Refs kubernetes-sigs#498.
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 2, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants