rabadon

overview / findings / yaml/pyyaml

yaml/pyyaml: 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,2873.660/1025

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 issue with representing Enum types

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

file lib/yaml/representer.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/pyyaml-enum-representer.patch && <the project's own suite>

Fix float resolver for '.' and '._'

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

file lib/yaml/resolver.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/pyyaml-float-resolver-dot.patch && <the project's own suite>

Dos in merge key (#937)

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

file lib/yaml/constructor.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/pyyaml-merge-key-dos.patch && <the project's own suite>

Fix handling of __slots__ (#161)

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

file lib3/yaml/constructor.py · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/pyyaml-slots-setattr.patch && <the project's own suite>