Recurring review comments: 2 proposed changes

Open
#893 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
12/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

This is a meta issue: the header states it is not open for contribution and the work is assigned to the review bot. Each checklist item becomes an AGENTS.md/CLAUDE.md rule or a lint rule, justified by the linked review threads on ricecooker/chefs.py, ricecooker/utils/pipeline/convert.py, ricecooker/utils/videos.py and ricecooker/utils/youtube.py. Start by reading those threads and the current AGENTS.md to see which rules already exist; done means each proposed rule is either landing as a documented or linted check, or is declined with a comment here.

Written by the indexing model from the issue text.

Description

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Reviewers keep making these points on PRs to this repo, each on 3+ PRs by 2+ authors, or by the bot alone, in the last 90 days, people and not only the review bot on 2+ of them. Each proposes an AGENTS.md or CLAUDE.md rule, a lint rule, or both, that would have prevented them. Assigned to the bot, each rule ships only once agents are measured to make the mistake without it and stop with it.

Acceptance criteria

Each change is made, or declined in a comment here.

  • Don't silently change what a chef asked for
  • Bound every subprocess and clean it up

Proposed changes

Don't silently change what a chef asked for (5 PRs, 1 authors)

Rule: Chef-facing behaviour changes must be opt-in or listed under Chef-facing changes: --no-compress disables all re-encoding, already-compliant media passes through unchanged, explicit chef fields (title, entry, kind) win over inferred ones, and dropped resources are warned about.

Bound every subprocess and clean it up (3 PRs, 1 authors)

Rule: Every ffmpeg/ffprobe call, including ones yt-dlp spawns, needs a timeout, stdin=subprocess.DEVNULL, and a kill on any exception with bounded post-kill waits.

Dominant language
Python
Stars
33
Forks
83
Avg merge
5d 16h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/ricecooker

All issues in learningequality/ricecooker

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.