Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebookresearch/ProgramBench
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: facebookresearch/ProgramBench
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.1
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 49 files changed
  • 1 contributor

Commits on Oct 27, 2026

  1. 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.
    john-b-yang committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    238b097 View commit details
    Browse the repository at this point in the history
  2. 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.
    john-b-yang committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    2857790 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2026

  1. 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).
    john-b-yang committed Oct 30, 2026
    Configuration menu
    Copy the full SHA
    3cb30dd View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2026

  1. Retry branches when pytest-xdist aborts with assert not crashitem

    pytest-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.
    john-b-yang committed Nov 2, 2026
    Configuration menu
    Copy the full SHA
    aee4313 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2026

  1. 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).
    john-b-yang committed Nov 9, 2026
    Configuration menu
    Copy the full SHA
    5454e50 View commit details
    Browse the repository at this point in the history
  2. 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.
    john-b-yang committed Nov 9, 2026
    Configuration menu
    Copy the full SHA
    69c277e View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2026

  1. 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.
    john-b-yang committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    8a9a96b View commit details
    Browse the repository at this point in the history
  2. 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.
    john-b-yang committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    229f1f4 View commit details
    Browse the repository at this point in the history
  3. 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).
    john-b-yang committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    1682212 View commit details
    Browse the repository at this point in the history
  4. 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.
    john-b-yang committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    feefa6f View commit details
    Browse the repository at this point in the history
  5. 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.
    john-b-yang committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    ceec32a View commit details
    Browse the repository at this point in the history
  6. 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.
    john-b-yang committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    44e148d View commit details
    Browse the repository at this point in the history
  7. 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.
    john-b-yang committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    212f604 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2026

  1. 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.
    john-b-yang committed Nov 11, 2026
    Configuration menu
    Copy the full SHA
    3b8bccf View commit details
    Browse the repository at this point in the history
Loading