rabadon

overview / findings / pallets/jinja

pallets/jinja: 4 upstream defects

Each entry is a real fix from the project's own history. Apply its patch and run the project's own suite, and the tests written in that same upstream commit fall.

the suite it was checked against

languagetestsgreen run, sflaky runstest files locked
python9116.670/1026

One of the pinned external suites the repair arbiter was run against, as listed on the benchmarks page (fixed values in site/build.py).

the defects

attr filter uses env.getattr

33 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix 065334d1ee5b. the test that catches it was written by the same engineer in the same commit and was never touched.

file src/jinja2/filters.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/jinja-attr-filter-sandbox-escape.patch && <the project's own suite>

fix f-string syntax error in code generation

7 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix 56a724644b1a. the test that catches it was written by the same engineer in the same commit and was never touched.

file src/jinja2/compiler.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/jinja-fstring-curly-brace-codegen.patch && <the project's own suite>

Fix pickle/copy support for the `missing` singleton

9 source line(s), 7 test(s) fall, deterministic over three runs. upstream fix 7232b8246200. the test that catches it was written by the same engineer in the same commit and was never touched.

file src/jinja2/utils.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/jinja-missing-singleton-pickle-copy.patch && <the project's own suite>

Pass context when using select

2 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix d05bd3858c3f. the test that catches it was written by the same engineer in the same commit and was never touched.

file src/jinja2/filters.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/jinja-select-filter-drops-context.patch && <the project's own suite>

Also found in pallets/jinja: a source module named tests.py sits inside the package.