refactor(sfde): decompose SFDEProcessor into workers package + PipelineContext#74
Open
liftaris wants to merge 6 commits into
Open
refactor(sfde): decompose SFDEProcessor into workers package + PipelineContext#74liftaris wants to merge 6 commits into
liftaris wants to merge 6 commits into
Conversation
…neContext
Split into:
- workers/{streamlink,ffmpeg,opencv,result}.py — each a run(ctx) function
- workers/context.py — PipelineContext dataclass holding all shared state
- sfde_config.py — config/profile loading, crop geometry
- image_utils.py — pure jpeg/crop helpers
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
- pyproject.toml: ruff (F/E9/I/B) wired into test-sfde.yml; 25 auto-fixes applied - requirements.txt: upper bounds on streamlink, pyyaml, opentelemetry - supabase/functions/deno.json: fmt + lint config (deno task check) - tests/test_imports.py: smoke test for refactored modules - tests/test_image_utils.py: pure-function coverage (percent_to_pixels, jpeg, slice) - tests/test_sfde_config.py: compute_combined_crop geometry invariants - tests/test_workers.py: result worker batching + opencv IGD state machine
…o _shared
- _shared/github.ts: triggerGithubWorkflow, OLD_TEMPLATES_CUTOFF constant
- _shared/supabase.ts: getPendingChunksForVod, fetchVodProcessingConfig
(deduplicates the identical VOD+profile fetch that existed in both
processStreamOffline and handleInternalRequest)
- process-vod/index.ts: 644 → 441 lines; pure routing + handler logic
- error catches typed as unknown (TS safety)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split into:
- workers/{streamlink,ffmpeg,opencv,result}.py — each a run(ctx) function
- workers/context.py — PipelineContext dataclass holding all shared state
- sfde_config.py — config/profile loading, crop geometry
- image_utils.py — pure jpeg/crop helpers