rabadon

overview / findings / pallets/click

pallets/click: 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
python1,96517.930/1046

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

Fix double-bracketing of choices in synopsis

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

file src/click/core.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/click-argument-double-bracket-metavar.patch && <the project's own suite>

Use non-shadowed help option name in error hint

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

file src/click/exceptions.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/click-help-hint-shadowed-option-name.patch && <the project's own suite>

Fix speculative speculative empty string check

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

file src/click/core.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/click-show-default-empty-string-type-check.patch && <the project's own suite>

Fix `HelpFormatter.write_usage` producing spurious characters

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

file src/click/formatting.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/click-write-usage-spurious-chars.patch && <the project's own suite>