Skip to content

refactor(sfde): decompose SFDEProcessor into workers package + PipelineContext#74

Open
liftaris wants to merge 6 commits into
devfrom
sfde-refactor
Open

refactor(sfde): decompose SFDEProcessor into workers package + PipelineContext#74
liftaris wants to merge 6 commits into
devfrom
sfde-refactor

Conversation

@liftaris
Copy link
Copy Markdown
Owner

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

…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
@supabase
Copy link
Copy Markdown

supabase Bot commented Apr 18, 2026

This pull request has been ignored for the connected project dzklnkhayqmwldnjxywr because there are no changes detected in supabase/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

  - 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)
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