Repository navigation
Comparing changes
Open a pull request
base repository: facebookresearch/ProgramBench
base: main
head repository: facebookresearch/ProgramBench
compare: v1.1
- 14 commits
- 49 files changed
- 1 contributor
Commits on Oct 27, 2026
-
Pin test-time pip installs to the image's package versions
Many generated eval/run.sh scripts `pip install -U pytest ...`, which pulls whatever is newest at eval time. pytest 9.1 refuses to load the libtmux plugin preinstalled in the task images ("Marks cannot be applied to fixtures"), so pytest dies before writing results.xml and the whole branch reports results_read_failed. This hit 10 test-set instances (deadnix, dust, cppcheck, hush, dutree, caps-log, svd2rust, ethabi, rumdl, csview). After compile, freeze the image's installed packages into /etc/programbench/pip-constraints.txt and export it as PIP_CONSTRAINT for every test run. Upgrades then resolve to the shipped versions, while installs of packages the image lacks still work.Configuration menu - View commit details
-
Copy full SHA for 238b097 - Browse repository at this point
Copy the full SHA 238b097View commit details -
Fix timeout-retry plugin crashing pytest on some test branches
The injected `-p programbench_pytest_timeout` plugin (13ad325) broke pytest startup in two cases, losing every test on the branch: - the branch's run.sh never installs pytest-timeout, so the plugin's `import pytest_timeout` fails (stranger6667__jsonschema, 1101 tests). The plugin now no-ops without pytest-timeout: there are no timeouts to re-arm. - run.sh runs `PYTHONPATH=. pytest`, dropping the plugin dir from PYTHONPATH (altdesktop__i3-style, riquito__tuc). The plugin dir is now also registered via a .pth file in site-packages.
Configuration menu - View commit details
-
Copy full SHA for 2857790 - Browse repository at this point
Copy the full SHA 2857790View commit details
Commits on Oct 30, 2026
-
Ignore two ffmpeg banner tests that fail on gold built from source
test_multiple_log_flags_combination and test_verbose_level_shows_additional_details assert the version banner starts with `git-2026`. A gold submission without .git gets the harness's synthetic 2000-01-01 commit, so a from-source build prints `git-2000-...` and these fail deterministically (build-stamp drift, gold_fail).
Configuration menu - View commit details
-
Copy full SHA for 3cb30dd - Browse repository at this point
Copy the full SHA 3cb30ddView commit details
Commits on Nov 2, 2026
-
Retry branches when pytest-xdist aborts with
assert not crashitempytest-xdist's controller occasionally aborts the whole session with an INTERNALERROR (`assert not crashitem` in dsession.worker_workerfinished). The JUnit XML then holds only the tests run so far plus one "pytest internal" error, and every remaining test is reported not_run. Seen once each in duckdb (859 tests lost) and fzf (154) in a full 200-instance gold run under load; not reproducible on rerun. count_worker_crashes only recognised "worker 'gwN' crashed", so the existing branch retry never triggered. Count the crashitem abort as a crash so the branch is retried and the best attempt kept.
Configuration menu - View commit details
-
Copy full SHA for aee4313 - Browse repository at this point
Copy the full SHA aee4313View commit details
Commits on Nov 9, 2026
-
Ignore filesystem-dependent size tests in 7 disk-usage instances
These tests compare sizes the binary reads from the filesystem (directory and symlink sizes, hard-link/block accounting, and totals, bar charts and column alignment derived from them). The expected outputs were captured on one filesystem; on a host whose Docker storage uses another (e.g. btrfs) the reference prints different sizes and fails, as would a perfect reimplementation. All 265 passed in two runs on the original hosts and failed on a btrfs-backed host. dutree 137, dust 41, duc 32, parallel-disk-usage 25, mdbook 15, dua-cli 8, pls 7. Recorded as gold_flaky (environment-dependent).
Configuration menu - View commit details
-
Copy full SHA for 5454e50 - Browse repository at this point
Copy the full SHA 5454e50View commit details -
Add --build-internet to allow internet during compile.sh
Reference (gold) build scripts download toolchains and dependencies, so with the compile-time DNS blackhole always on, gold-from-source fails to compile on an ordinary host (170/200 instances). It only appeared to work on hosts where Docker injects an HTTP(S) proxy into containers, which the DNS blackhole does not stop. The block stays on by default so a submission's compile.sh can't download the original program at build time. `programbench eval --build-internet` lifts it for trusted builds such as gold validation.
Configuration menu - View commit details
-
Copy full SHA for 69c277e - Browse repository at this point
Copy the full SHA 69c277eView commit details
Commits on Nov 10, 2026
-
Unpack test archives with the container's umask
Test archives store files as 0664/0775, and tar running as root restores those bits verbatim. The tests were generated, and their expected outputs captured, against a git checkout, where files come out 0644/0755 (git only tracks the exec bit). Tests that print or assert permissions therefore failed on gold: walk, felix, broot, xcp, fselect. Extract test archives with --no-same-permissions so the umask applies, as with a git checkout. Submissions are unpacked unchanged.
Configuration menu - View commit details
-
Copy full SHA for 8a9a96b - Browse repository at this point
Copy the full SHA 8a9a96bView commit details -
Reset the working directory before each test
Some generated tests chdir (often into a temp dir they then delete) and never change back, so later tests on the same xdist worker start elsewhere: `./executable` is not found (miller, 28 tests) or os.getcwd() raises (zstd, 11). Which tests break depends on xdist scheduling. The injected pytest plugin now returns each test to the directory pytest was invoked from, which every test assumes.
Configuration menu - View commit details
-
Copy full SHA for 229f1f4 - Browse repository at this point
Copy the full SHA 229f1f4View commit details -
Ignore 108 tests that can't pass reliably on gold
From a full gold run on an ordinary host (AWS, internet on), excluding failures fixed in the harness: - gold_fail (59): tests that assume /workspace is the private mirror's git checkout (git-graph, git-trim, delta, onefetch, keifu, lazygit; 26); drift in outside tools/services (dirble curl wording, xh httpbin reason phrases, dog live DNS; 30); build differences vs golden (ctags, scc; 3). - gold_flaky (32): live services (bat httpbin rate limit, gittype GitHub trending), date-dependent checks (gomplate DST, zk "today"), timing races (ffmpeg, sqlite, oha, peco, igrep, ast-grep). - slow_or_hang (17): reference exceeds the test's timeout (oranda, errcheck, rustowl).
Configuration menu - View commit details
-
Copy full SHA for 1682212 - Browse repository at this point
Copy the full SHA 1682212View commit details -
Only undo working-directory changes made by the test body
Resetting the cwd before every test (229f1f4) broke google__brotli, whose session-scoped autouse fixture chdirs once for the whole run: 426 tests lost "./executable". Instead, record the cwd before each test's call phase and restore it afterwards if the body changed it. Leaks from test bodies (miller, zstd) are still undone; fixture-established directories are kept.
Configuration menu - View commit details
-
Copy full SHA for feefa6f - Browse repository at this point
Copy the full SHA feefa6fView commit details -
Ignore 30 more flaky tests found in a confirmation gold run
Failed in one full gold run on an ordinary host after passing in the previous one: live URL fetches that got an HTML error page back (gron 10, direnv 6), httpbin.org rate limiting (bat 6), DNS timeouts (dog 5), and timing races (peco 1, sqlite 2). Recorded as gold_flaky.
Configuration menu - View commit details
-
Copy full SHA for ceec32a - Browse repository at this point
Copy the full SHA ceec32aView commit details -
Ignore 223 tests that pass on a dummy executable
A public-harness eval of all 200 instances against a trivial executable (`echo "hello world"`) found 223 scored tests that pass anyway, so they don't distinguish a real implementation from a stub: duckdb 188, fx 16, chamber 16, solar 1, peco 1, xplr 1. Recorded as dummy_pass.
Configuration menu - View commit details
-
Copy full SHA for 44e148d - Browse repository at this point
Copy the full SHA 44e148dView commit details -
Ignore 10 more flaky tests found in a second confirmation gold run
bat 6 (httpbin.org rate limiting), oranda 2 (live GitHub release links, port check), gittype 1, solar 1. Recorded as gold_flaky.
Configuration menu - View commit details
-
Copy full SHA for 212f604 - Browse repository at this point
Copy the full SHA 212f604View commit details
Commits on Nov 11, 2026
-
Allow a per-task compile time limit; give pandoc 1800s
compile.sh was capped at a hard-coded 900s. pandoc's reference build takes ~1000s at the default 10 CPUs, so its gold eval always failed to compile. A task can now set `compile_timeout: <seconds>` in its task.yaml (DEFAULT_COMPILE_TIMEOUT = 900 otherwise); the limit applies to every submission for that task. jgm__pandoc gets 1800s (~1.7x the measured build); with it, gold passes all 5214 tests.
Configuration menu - View commit details
-
Copy full SHA for 3b8bccf - Browse repository at this point
Copy the full SHA 3b8bccfView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...v1.1