State the pipeline's exception, failure-message and helper-reuse conventions in AGENTS.md
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 1/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- devtools, documentation
Research direction
Read the repository's AGENTS.md and inspect the handlers under ricecooker/utils/pipeline/ to identify the conventions named in the acceptance criteria. The issue also requires lint to reject bare except Exception there, so check the existing prek configuration and related lint rules. Done when AGENTS.md documents all three conventions and prek catches that exception pattern.
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.
Overview
Review comments on rtibblesbot's ricecooker PRs keep raising three pipeline conventions that AGENTS.md does not state: which exceptions a handler turns into a file failure, the shape of a file failure message, and which shared helpers to reuse. Each came up on 5+ PRs in the last 90 days.
Complexity: Low
Context
Exceptions:
- https://github.com/learningequality/ricecooker/pull/790#discussion_r4116388741
- https://github.com/learningequality/ricecooker/pull/856#discussion_r4276362801
- https://github.com/learningequality/ricecooker/pull/793#discussion_r4116384744
Failure messages:
- https://github.com/learningequality/ricecooker/pull/789#discussion_r4116416774
- https://github.com/learningequality/ricecooker/pull/863#discussion_r4296083753
- https://github.com/learningequality/ricecooker/pull/786#discussion_r4116383676
Shared helpers:
- https://github.com/learningequality/ricecooker/pull/789#discussion_r4139317801
- https://github.com/learningequality/ricecooker/pull/793#discussion_r4142058498
- https://github.com/learningequality/ricecooker/pull/863#discussion_r4288128128
The Change
AGENTS.md should state the three conventions, and lint should catch the one it can.
Acceptance Criteria
-
AGENTS.mdsays a pipeline handler turns every failure its library calls raise on bad input into a file failure, including timeouts and non-OSErrortypes such asPIL.Image.DecompressionBombErrorand yt-dlp'sDownloadError -
AGENTS.mdsays every external subprocess call takes atimeout= - A bare
except Exceptionunderricecooker/utils/pipeline/failsprek -
AGENTS.mdsays a file failure message is one line: the source (URL or original path) and a reason, with no storage path, command line or raw stderr -
AGENTS.mdsays to useconfig.FILE_PIPELINEfor every file, derive extension sets from the handlers'EXTENSIONS/CONVERT_EXTENSIONS, and decode text throughencodings.decode_text
References
Triaged from learningequality/le-skills#146.
AI usage
I asked Claude Code to triage le-skills#146 and file the ricecooker-specific items here; it checked the cited comments and drafted this issue.
- Dominant language
- Python
- Stars
- 33
- Forks
- 83
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learningequality/ricecooker
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
dependencies python TAG: tech update / debt
Difficulty 4/5 3-5 days Newbie friendliness 55/100
learningequality/ricecooker#899 ·
-
Difficulty 5/5 Over a week Newbie friendliness 12/100
learningequality/ricecooker#893 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
learningequality/ricecooker#890 · 4 comments ·
-
P0 - critical TAG: tech update / debt
Difficulty 4/5 3-5 days Newbie friendliness 25/100
learningequality/ricecooker#745 ·
All issues in learningequality/ricecooker
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days
-
task
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1285 ·
Maintainers usually reply within 2 days